summaryrefslogtreecommitdiff
path: root/test/regress/regress0/expect/scrub.08.sy
blob: 3b9574cdf9e9e65557d2e068b843e5a22f975e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; COMMAND-LINE: --cegqi-si=all --no-dump-synth
; SCRUBBER: sed -e 's/The fact in question: .*$/The fact in question: TERM/' -e 's/in a linear logic: .*$/in a linear logic: TERM/'
; EXPECT: (error "A non-linear fact (involving div/mod/divisibility) was asserted to arithmetic in a linear logic: TERM
; EXPECT: if you only use division (or modulus) by a constant value, or if you only use the divisibility-by-k predicate, try using the --rewrite-divk option.
; EXPECT: The fact in question: TERM
; EXPECT: ")
; EXIT: 1
(set-logic LIA)
(declare-var n Int)

(synth-fun f ((n Int)) Int)
(constraint (= (/ n n) 1))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback