Debian Codegraph @

test/regress/cli/regress1/bags/all1.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_bag () 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 (assert
16 (= IntBag
17 (bag.union_disjoint
18 (bag.union_disjoint (bag 1 1) (bag 2 1))
19 (bag.union_disjoint (bag 4 1) (bag 5 1)))))
20
21 ; get the minumum of FiltMapIntBag
22 (assert (bag.member min_bag FiltMapIntBag))
23 (assert (bag.all (lambda ((i Int)) (>= i min_bag)) FiltMapIntBag))
24 (check-sat)