3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 04:56:03 +00:00

Initial exploration of recursive function hanging issue

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-18 01:00:03 +00:00
parent 943ba1027c
commit 830ede6623
3 changed files with 6 additions and 0 deletions

2
test_infinite.smt2 Normal file
View file

@ -0,0 +1,2 @@
(define-funs-rec ((g ((a Int) (b Int)) Bool)) ((g a b)))
(assert (g 2 2))

2
test_issue.smt2 Normal file
View file

@ -0,0 +1,2 @@
(define-funs-rec ((g ((a Int) (b Int)) Bool)) ((or (= a b) (ite (> a b) (g (- a 1) b) (g a (- b 1))))))
(assert (g 2 2))

2
test_recfun_simple.smt2 Normal file
View file

@ -0,0 +1,2 @@
(define-funs-rec ((f ((x Int)) Int)) ((ite (= x 0) 0 (+ 1 (f (- x 1))))))
(assert (= (f 2) 2))