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

Timeout with simple datatype example #7448

Closed
hiroshi-unno opened this issue Nov 10, 2024 · 0 comments
Closed

Timeout with simple datatype example #7448

hiroshi-unno opened this issue Nov 10, 2024 · 0 comments

Comments

@hiroshi-unno
Copy link

In Z3 version 4.13.3, the following datatype example causes a timeout in satisfiability checking.

(declare-datatypes ((A4_Box<List> 0)
    (A3_List 0)
    (A1_Tuple<Box<Int>-Box<Box<List>>> 0)
    (A5_Box<Box<List>> 0)
    (A0_Box<Int> 0))
   (
    ((box<List> (box_current<List> A3_List)))
    ((List.Nil) (List.Cons (_getList.Cons A1_Tuple<Box<Int>-Box<Box<List>>>)))
    ((tuple<Box<Int>-Box<Box<List>>> (tuple_proj<Box<Int>-Box<Box<List>>>.0 A0_Box<Int>) (tuple_proj<Box<Int>-Box<Box<List>>>.1 A5_Box<Box<List>>)))
    ((box<Box<List>> (box_current<Box<List>> A4_Box<List>)))
    ((box<Int> (box_current<Int> Int)))
   ))
(declare-fun |#tvar3358| () A3_List)
(declare-fun |#tvar3356| () A1_Tuple<Box<Int>-Box<Box<List>>>)
(assert (and (not (= (List.Cons |#tvar3356|) |#tvar3358|))
     (not (= List.Nil |#tvar3358|))))

(check-sat)
(exit)

Simplifying the datatype slightly returns "sat" immediately, suggesting a potential bug.

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

1 participant