Skip to content

asking queries in smtlib2 format and parsing resultant models #5160

Answered by NikolajBjorner
sunbeomso asked this question in Q&A
Discussion options

You must be logged in to vote

maybe you are using an old version of Z3 that didn't properly populate the model with the input declarations?

C:\z3\build\python>python 5160.py
(define-fun x () Int
  1)
(define-fun y () Int
  0)
None
[y = 0, x = 1]
1

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@sunbeomso
Comment options

@NikolajBjorner
Comment options

@sunbeomso
Comment options

Comment options

You must be logged in to vote
1 reply
@sunbeomso
Comment options

Answer selected by sunbeomso
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
Converted from issue

This discussion was converted from issue #5159 on April 08, 2021 16:28.