test/regress/cli/regress0/parser/issue8820-err.smt2
raw| 1 | ; DISABLE-TESTER: dump |
| 2 | ; SCRUBBER: grep -o '(error "Parse Error:' |
| 3 | ; EXPECT: (error "Parse Error: |
| 4 | ; EXIT: 1 |
| 5 | (set-logic AUFDTLIA) |
| 6 | |
| 7 | (declare-datatypes ((Maybe 1)) |
| 8 | ((par (T) ((Nothing) |
| 9 | (Just (value T)))))) |
| 10 | |
| 11 | (define-fun f ((optional (Maybe Int))) (Maybe Int) |
| 12 | (match optional |
| 13 | ((Nothing Nothing) |
| 14 | ((Just value) (Just value))))) |
| 15 | |
| 16 | (declare-const c1 (Maybe Int)) |
| 17 | (assert (= c1 (f (Just 1)))) |
| 18 | ;(assert (= c1 Nothing)) |
| 19 | |
| 20 | (check-sat) |