summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings/str-code-sat.smt2
blob: 7345e25bbe10418f1b052bf2f08f5b46d70841b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(set-logic QF_SLIA)
(set-info :status sat)
(declare-fun x () String)
(declare-fun y () String)
(declare-fun z () String)
(declare-fun w () String)

(assert (>= (str.to_code x) 65))
(assert (<= (str.to_code x) 75))

(assert (>= (str.to_code y) 65))
(assert (<= (str.to_code y) 75))

(assert (>= (str.to_code z) 65))
(assert (<= (str.to_code z) 75))

(assert (= (str.len w) 1))

(assert (= (+ (str.to_code x) (str.to_code y)) 140))
(assert (= (+ (str.to_code x) (str.to_code z)) 141))

(assert (distinct x y z w "A" "B" "C" "D" "AA"))

(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback