blob: 5bf21ebb9f8237de0a37a69ef413975fff37bb47 (
plain)
1
2
3
4
5
6
7
8
9
10
|
(set-info :smt-lib-version 2.0)
(set-logic ASLIA)
(set-option :strings-exp true)
(set-info :status sat)
; regex = [\*-,\t\*-\|](.{6,}()?)+
(define-fun strinre ((?s String)) Bool (str.in.re ?s (re.union re.nostr (re.++ (str.to.re "") (str.to.re "") (re.union re.nostr (re.range "*" ",") (str.to.re "\t") (re.range "*" "|") ) (re.+ (re.union re.nostr (re.++ (str.to.re "") (str.to.re "") ((_ re.^ 6) re.allchar) (re.opt (re.union re.nostr (re.++ (str.to.re "") (str.to.re "") ) ) ) ) ) ) ) ) ) )
(assert (not (strinre "6O\1\127\n?")))
(check-sat)
|