| 1 |
; COMMAND-LINE: --finite-model-find -q |
| 2 |
(set-logic HO_ALL) |
| 3 |
(set-info :status sat) |
| 4 |
(define-fun map_fun ((i Int)) Int (+ i 1)) |
| 5 |
(define-fun filter_fun ((i Int)) Bool (and (>= i 0) (<= i 10))) |
| 6 |
|
| 7 |
(declare-fun IntSet () (Set Int)) |
| 8 |
(declare-fun FiltMapIntSet () (Set Int)) |
| 9 |
|
| 10 |
(declare-fun min_set () Int) |
| 11 |
|
| 12 |
(assert (not (set.is_empty IntSet))) |
| 13 |
|
| 14 |
(assert (= FiltMapIntSet (set.map map_fun (set.filter filter_fun IntSet)))) |
| 15 |
|
| 16 |
; get the minumum of FiltMapIntSet |
| 17 |
(assert (set.member min_set FiltMapIntSet)) |
| 18 |
(assert (set.all (lambda ((i Int)) (>= i min_set)) FiltMapIntSet)) |
| 19 |
|
| 20 |
(check-sat) |