Z3 Model Merging #5983
walnutwaldo
started this conversation in
General
Replies: 1 comment 2 replies
-
this wasnt well supported.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, apologies if there is already a builtin way to do this. I at least could not find a way to do it using the Python SDK. I would just like to know if there is a better way to do this that addresses some of the issues I'm facing.
Basically, given two ModelRef objects, I want to be able to merge their definitions into a new ModelRef object (assuming there are no conflicting definitions). The current way I do this is using a very weird workaround that involves creating a new solver object to generate the combined model for me. The code is below:
arity() == 0
. In my exploration, I also have found that there are also often other kinds of things found frommodel.decls()
that don't necessarily correspond directly to variable assignments.Does anyone know of a builtin/better way of doing this sort of model merging?
Beta Was this translation helpful? Give feedback.
All reactions