| 1 |
; DISABLE-TESTER: dump |
| 2 |
; REQUIRES: no-competition |
| 3 |
; COMMAND-LINE: --finite-model-find |
| 4 |
; EXPECT: sat |
| 5 |
; EXPECT: (((_ fmf.card (to_ nat_ term_) 1) false) ((_ fmf.card (to_ nat_ term_) 2) true)) |
| 6 |
; EXPECT: ((as |@(to_ nat_ term_)_0| (to_ nat_ term_)) (as |@(to_ nat_ term_)_1| (to_ nat_ term_))) |
| 7 |
; EXPECT: ((as |@(to_ nat_ term_)_0| (to_ nat_ term_)) (as |@(to_ nat_ term_)_1| (to_ nat_ term_))) |
| 8 |
; EXPECT: (error "Parse Error: get-model-domain-elements.smt2:43.13: Symbol '@(to_ nat_ term_)_0' not declared as a variable") |
| 9 |
; EXIT: 1 |
| 10 |
; generated by Nunchaku |
| 11 |
(set-option :produce-models true) |
| 12 |
(set-option :interactive-mode true) |
| 13 |
(set-option :finite-model-find true) |
| 14 |
|
| 15 |
(set-logic UFCDT) |
| 16 |
|
| 17 |
(declare-datatypes ((nat_ 0)) (((S_ (_select_S__0 nat_)) (Z_ )))) |
| 18 |
(declare-datatypes ((term_ 0)) |
| 19 |
(((App_ (_select_App__0 term_) (_select_App__1 term_)) |
| 20 |
(Lam_ (_select_Lam__0 term_)) (Var_ (_select_Var__0 nat_))))) |
| 21 |
|
| 22 |
(declare-sort to_ 2) |
| 23 |
(declare-fun app_0_ ((to_ nat_ term_) nat_) term_) |
| 24 |
(declare-fun __nun_card_witness_0_ () (to_ nat_ term_)) |
| 25 |
|
| 26 |
(declare-fun __nun_card_witness_1_ () (to_ nat_ term_)) |
| 27 |
(assert (distinct __nun_card_witness_0_ __nun_card_witness_1_)) |
| 28 |
|
| 29 |
(define-sort to_nat_term_ () (to_ nat_ term_)) |
| 30 |
(assert (_ fmf.card to_nat_term_ 2)) |
| 31 |
|
| 32 |
; TODO: this should cause a contradiction. Otherwise, |
| 33 |
; 'fmf.card' should be converted into a command. |
| 34 |
(define-sort |(to_ nat_ term_)| () (to_ nat_ term_)) |
| 35 |
(assert (_ fmf.card |(to_ nat_ term_)| 3)) |
| 36 |
|
| 37 |
(check-sat) |
| 38 |
|
| 39 |
(get-value ((_ fmf.card |(to_ nat_ term_)| 1) (_ fmf.card to_nat_term_ 2))) |
| 40 |
(get-model-domain-elements (to_ nat_ term_)) |
| 41 |
(get-model-domain-elements to_nat_term_) |
| 42 |
; TODO: this should work! |
| 43 |
(get-value (|@(to_ nat_ term_)_0|)) |