Debian Codegraph @

test/regress/cli/regress1/bags/all2.smt2

raw
1 (set-logic HO_ALL)
2 (set-info :status sat)
3 (define-fun map_fun ((i Int)) Int (+ i 1))
4 (define-fun filter_fun ((i Int)) Bool (and (>= i 0) (<= i 10)))
5
6 (declare-fun IntBag () (Bag Int))
7 (declare-fun FiltMapIntBag () (Bag Int))
8
9 (declare-fun min_set () Int)
10
11 (assert (distinct IntBag (as bag.empty (Bag Int))))
12
13 (assert (= FiltMapIntBag (bag.map map_fun (bag.filter filter_fun IntBag))))
14
15 ; get the minumum of FiltMapIntBag
16 (assert (bag.member min_set FiltMapIntBag))
17 (assert (bag.all (lambda ((i Int)) (>= i min_set)) FiltMapIntBag))
18
19 (check-sat)