Skip to content

Interpolants with CHCs and Lists #5093

Answered by agurfinkel
basus asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @basus, hopefully this will help: https://github.com/agurfinkel/spacer-on-jupyter/blob/master/Dagstuhl2019.ipynb
There is an example of how to compute an interpolant. You have to use spacer as the engine. With bmc, the formula is unrolled and no intermediate solutions (i.e., interpolants) are computed.

Support for ADTs, and the combination of ADTs and Arrays is experimental at best. The current implementation might be sufficient for interpolation, but I think you would be the first user for it. We are working on improving support for ADTs, but the code is not yet in the main z3 repo.

If you run into problems, post a more complete example, and hopefully we will be able to help.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@basus
Comment options

@basus
Comment options

@agurfinkel
Comment options

@basus
Comment options

@basus
Comment options

Answer selected by agurfinkel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants