Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ast.hh:198: T* MiniZinc::Expression::cast() [with T = MiniZinc::VarDecl]: Assertion `isa<T>()' failed. #77
When running the attached model with -Dmeh_par=9740, the following assertion is triggered:
This was originally found in a quite large and complex model, that I've since tried to trim down to as small an example as I could. Sadly the length of variable-names seems to have an effect on this issue, thus it was not trivial to make a trivial test. Adding or removing a few variables will of course imply that the relevant -D-parameter may need a slight adjustment.
Thanks for the bug report. This was a garbage collection problem, I've fixed it in the develop branch. If you want to apply the fix to your working copy and you're not up to date with develop, just add a line