Debian Codegraph @

test/regress/cli/regress0/strings/substr-rewrites.smt2

raw
1 ; COMMAND-LINE:
2 ; EXPECT: unsat
3 (set-logic SLIA)
4 (set-info :status unsat)
5
6 (declare-fun x () String)
7 (declare-fun y () String)
8 (declare-fun z () String)
9
10 ; these should all rewrite to false
11 (assert (or
12
13 (not (= (str.substr (str.++ x "abc" y) 0 (+ (str.len x) 1)) (str.++ x "a")))
14 (not (= (str.substr (str.++ x "abc" y) (+ (str.len x) 1) (+ (* 2 (str.len y)) 7)) (str.++ "bc" y)))
15 (not (= (str.substr (str.++ x y) 0 (+ (str.len z) (* 2 (str.len x)) (* 2 (str.len y)))) (str.substr (str.++ x y) 0 (+ (str.len x) (str.len y)))))
16 (not (= (str.substr x (+ (str.len x) 1) 5) (str.substr y (- (- 1) (str.len z)) 5)))
17 (not (= (str.substr "abc" 100000000000000000000000000000000000000000000000000000000000000000000000000 5) ""))
18
19 ))
20
21 (check-sat)