Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in check-sat-assuming #433

Open
georgerennie opened this issue Mar 18, 2023 · 1 comment
Open

Bug in check-sat-assuming #433

georgerennie opened this issue Mar 18, 2023 · 1 comment
Labels
Milestone

Comments

@georgerennie
Copy link

georgerennie commented Mar 18, 2023

I have the following example minimised from some BMC work where the presence of a check-sat-assuming call is changing the result of a following check-sat call.

(set-option :produce-models true)
(set-logic QF_UFBV)

(declare-sort State 0)
(declare-fun a (State) Bool)
(declare-fun b (State) Bool)
(declare-fun c (State) (_ BitVec 1))

(declare-const s0 State)

(assert (bvult (c s0) #b1))
(assert (distinct (c s0) #b0))

(declare-const s1 State)
(define-fun s1-eq () Bool (= (a s1) (b s1)))

(check-sat-assuming (s1-eq))
(check-sat)
(get-value ((c s0)))

Yices produces

unsat
sat
(((c s0) #b0))

Whereas z3 produces (as expected)

unsat
unsat
(error "line 19 column 19: model is not available")

This is for a build of yices taken straight from the latest commit on this repo, run with yices-smt2 --incremental bug.smt2

$ yices-smt2 --version
Yices 2.6.4
Copyright SRI International.
Linked with GMP 6.2.1
Copyright Free Software Foundation, Inc.
Build date: 2023-03-18
Platform: x86_64-pc-linux-gnu (release)
Revision: ae6aa42219c7aa260a5056564c1a76911261f0ef
@ahmed-irfan ahmed-irfan added this to the Yices 2.7 milestone Mar 21, 2023
@ahmed-irfan
Copy link
Member

Thanks for reporting the issue.

I am able to reproduce the issue. We will look into this soon.

@ahmed-irfan ahmed-irfan modified the milestones: Yices 2.7, Yices 2.6.5 Jan 23, 2024
@ahmed-irfan ahmed-irfan modified the milestones: Yices 2.6.5, Yices 2.7 Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants