forked from uuverifiers/ostrich
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparse-ecma-cases.smt2
57 lines (40 loc) · 2.08 KB
/
parse-ecma-cases.smt2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(set-logic QF_S)
(declare-const w String)
(assert (not (and
(= (str.in_re w (re.from_ecma2020 '[a-z]'))
(str.in_re w (re.range "a" "z")))
(= (str.in_re w (re.from_ecma2020 ' *'))
(str.in_re w (re.* (str.to_re " "))))
(= (str.in_re w (re.from_ecma2020 '[^A-Za-z]'))
(str.in_re w (re.inter re.allchar
(re.comp
(re.union (re.range "a" "z") (re.range "A" "Z"))))))
(= (str.in_re w (re.from_ecma2020 '\d'))
(str.in_re w (re.range "0" "9")))
(= (str.in_re w (re.from_ecma2020 '\cg\cG\x07'))
(= w "\u{7}\u{7}\u{7}"))
(= (str.in_re w (re.from_ecma2020 '(?:\^|\\A)([a-z]*)(?:\$|\\z)'))
(str.in_re w (re.++ (re.union (str.to_re "^") (str.to_re '\A'))
(re.* (re.range "a" "z"))
(re.union (str.to_re "$") (str.to_re '\z')))))
(= (str.in_re w (re.from_ecma2020 '(?=.*[a-z])X.*[A-Z].*'))
(str.in_re w (re.inter (re.++ (re.from_ecma2020 '.*[a-z]') re.all)
(re.from_ecma2020 'X.*[A-Z].*'))))
(= (str.in_re w (re.from_ecma2020 '\,'))
(str.in_re w (str.to.re ",")))
(= (str.in_re w (re.from_ecma2020 '[\u{61}-\u007A0-9]'))
(str.in_re w (re.union (re.range "a" "z") (re.range "0" "9"))))
(= (str.in_re w (re.from_ecma2020 '((?=.*?[A-Z])).{8,}'))
(and (str.in_re w (re.from_ecma2020 '.{8,}'))
(str.in_re w (re.++ re.all (re.range "A" "Z") re.all))))
(= (str.in_re w (re.from_ecma2020 '()'))
(str.in_re w (str.to.re "")))
(= (str.in_re w (re.from_ecma2020 '\b[ ab]*\b'))
(and (str.in_re w (re.from_ecma2020 '[ ab]+'))
(not (str.prefixof " " w))
(not (str.suffixof " " w))))
(= (str.in_re w (re.from_ecma2020 '\B[ a]*'))
(and (str.in_re w (re.from_ecma2020 '[ a]*'))
(not (str.prefixof "a" w))))
)))
(check-sat)