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

opt.dump_models sat.ddfw_search sat.xor.solver Segementation fault #3660

Closed
muchang opened this issue Apr 1, 2020 · 1 comment
Closed

opt.dump_models sat.ddfw_search sat.xor.solver Segementation fault #3660

muchang opened this issue Apr 1, 2020 · 1 comment

Comments

@muchang
Copy link

muchang commented Apr 1, 2020

Hi,
For this formula:

(set-option :opt.dump_models true) 
(set-option :sat.ddfw_search true) 
(set-option :sat.xor.solver true) 
(define-fun s1 () Int 67) 
(define-fun s3 () Int 5) 
(declare-fun s0 () Int) 
(declare-fun s13 () Int) 
(define-fun s2 () Bool (<= s0 s1)) 
(define-fun s4 () Bool (>= s0 s3)) 
(define-fun s10 () Bool s4) 
(define-fun s11 () Bool (and s2 s10)) 
(assert s11) 
(assert (= s0 s13)) 
(maximize s13) 
(check-sat) 

Z3 throws out a segmentation fault:

$ ./z3/build/z3 small.smt2 
Segmentation fault
$ cat small.smt2 
(set-option :opt.dump_models true) 
(set-option :sat.ddfw_search true) 
(set-option :sat.xor.solver true) 
(define-fun s1 () Int 67) 
(define-fun s3 () Int 5) 
(declare-fun s0 () Int) 
(declare-fun s13 () Int) 
(define-fun s2 () Bool (<= s0 s1)) 
(define-fun s4 () Bool (>= s0 s3)) 
(define-fun s10 () Bool s4) 
(define-fun s11 () Bool (and s2 s10)) 
(assert s11) 
(assert (= s0 s13)) 
(maximize s13) 
(check-sat)

OS: Ubuntu 18.04
Commit: 65b2037

@rainoftime
Copy link
Contributor

According to #3635,

as I wrote before: ddfw is experimental and not useful to spend time fixing nits.

NikolajBjorner added a commit that referenced this issue Apr 1, 2020
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants