Large expressions in exception reporting crash the CIF simulator
The following discussion from !618 (merged) should be addressed.
The evaluation of large expressions is solved in !618 (merged), but in case of exceptions encountered during runtime, the full original CIF expression is printed in the exception message. This might again be a string too large for the JVM to handle.
From the discussion: (+4 comments)
But it touches upon a todo at the exception before in the code. Originally, the exception refered to the failing expression evaluation by printing the complete expression in the exception message. If expressions are small, we can still do this, but once they get too big, the string also gets too big for Java to handle. Maybe we can create a new exception message that can pinpoint to the problematic expression that does not scale with the size of the expression.
The problem is highlighted with a TODO
in the AutomatonNormalCodeGenerator
class. Other code generators have similar funtionalities.
Addresses #611 (closed).