Closed miker2 closed 1 year ago
The code fails when trying to evaluate the mathematical expression in stack::evalBack()
due to the assert(vs_.size() == ops_.size() + 1)
I think the right solution is to check within replaceProtoVar
that an expression (or any type) has no more variables once all proto vars have been resolved.
Example:
Because
$MIN
and$MAX
aren't defined, this leads to a segfault. Instead, a useful exception should probably be thrown to make debugging easier.