Open daniel-raffler opened 1 year ago
Hi Daniel, The functionality to compute models for arrays is not yet implemented in OpenSMT. Support for arrays has been added relatively recently and we have not tried computing models for theories with arrays, yet. This is yet another TODO.
What you see in the output is most likely some fallback mechanism. OpenSMT should probably report an error with an unsupported message instead.
Thanks for the quick reply! I'll then just disable model generation for array for now.
Hello, as mentioned in #614 I'm currently working on adding OpenSMT support to the JavaSMT framework. One of the issues I've run into is with the way OpenSMT represents array variables in its model. Most solvers will return a nested "store expression" that represents the value, but for OpenSMT only an abstract value is provided.
Here's a simple example:
Z3 will print this model:
But for OpenSMT we only get abstract values:
Is there any way to "unwind" the abstract values into proper terms? This would probably also require support for "const" as a built-in function?
Thanks, Daniel