Debian Codegraph @

test/regress/cli/regress1/sygus/interpol1-push-pop.smt2

raw
1 ; COMMAND-LINE: --produce-interpolants --interpolants-mode=default --sygus-enum=fast --check-interpolants -i
2 ; SCRUBBER: grep -v -E '(\(define-fun)'
3 ; EXIT: 0
4 (set-logic NIA)
5 (declare-fun x ( ) Int)
6 (declare-fun y ( ) Int)
7 (declare-fun z ( ) Int)
8 (push)
9 (assert (= (* 2 x) y))
10 (get-interpolant A (distinct (+ (* 2 z) 1) y)
11
12 ; the grammar for the interpol-to-synthesize
13 ((Start Bool) (StartInt Int))
14 (
15 (Start Bool ((< StartInt StartInt)))
16 (StartInt Int
17 (y (+ StartInt StartInt) (div StartInt StartInt) (mod StartInt StartInt) 0 1 2))
18 )
19 )
20 (pop)
21
22 (assert (= (* 2 y) x))
23 (get-interpolant A (distinct (+ (* 2 z) 1) x)
24 ; the grammar for the interpol-to-synthesize
25 ((Start Bool) (StartInt Int))
26 (
27 (Start Bool ((< StartInt StartInt)))
28 (StartInt Int
29 (x (+ StartInt StartInt) (div StartInt StartInt) (mod StartInt StartInt) 0 1 2))
30 )
31 )