blob: fd60089fd09ad9e2d9387e86eb9bf6af0071f5d6 (
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.loop re.allchar 6 ) (re.opt (re.union re.nostr (re.++ (str.to.re "") (str.to.re "") ) ) ) ) ) ) ) ) ) )
(assert (not (strinre "6O\1\127\n?")))
(check-sat)
|