| 1 |
(set-info :smt-lib-version 2.6) |
| 2 |
(set-logic ALL) |
| 3 |
(set-info :status unsat) |
| 4 |
|
| 5 |
(set-option :re-elim on) |
| 6 |
(declare-const actionName String) |
| 7 |
(declare-const actionNamespace String) |
| 8 |
|
| 9 |
; Action: p0.0 |
| 10 |
(declare-const p0.0.action Bool) |
| 11 |
(assert (= p0.0.action (and (= actionNamespace "foobar") (str.in_re actionName (re.++ (str.to_re "foo") (re.* re.allchar) (re.++ (str.to_re "") re.allchar (str.to_re "bar"))))))) |
| 12 |
|
| 13 |
; Policy: 0 |
| 14 |
(declare-const p0.denies Bool) |
| 15 |
(assert (not p0.denies)) |
| 16 |
(declare-const p0.allows Bool) |
| 17 |
(assert (= p0.allows (and (not p0.denies) p0.0.action))) |
| 18 |
(declare-const p0.neutral Bool) |
| 19 |
(assert (= p0.neutral (and (not p0.allows) (not p0.denies)))) |
| 20 |
|
| 21 |
; Action: p1.0 |
| 22 |
(declare-const p1.0.action Bool) |
| 23 |
(assert (= p1.0.action (and (= actionNamespace "foobar") (str.in_re actionName (re.++ (re.++ (str.to_re "foo") re.allchar (str.to_re "")) (re.* re.allchar) (str.to_re "bar")))))) |
| 24 |
|
| 25 |
; Policy: 1 |
| 26 |
(declare-const p1.denies Bool) |
| 27 |
(assert (not p1.denies)) |
| 28 |
(declare-const p1.allows Bool) |
| 29 |
(assert (= p1.allows (and (not p1.denies) p1.0.action))) |
| 30 |
(declare-const p1.neutral Bool) |
| 31 |
(assert (= p1.neutral (and (not p1.allows) (not p1.denies)))) |
| 32 |
|
| 33 |
; Goals |
| 34 |
(assert p0.allows) |
| 35 |
(assert (or p1.denies p1.neutral)) |
| 36 |
(check-sat) |