Debian Codegraph @

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

raw
1 (set-logic HO_ALL)
2 (set-info :status unsat)
3
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 IntBag () (Bag Int))
8 (declare-fun FiltMapIntBag () (Bag Int))
9
10 (declare-fun min_set () Int)
11
12 (assert (distinct IntBag (as bag.empty (Bag Int))))
13
14 (assert (= FiltMapIntBag (bag.map map_fun (bag.filter filter_fun IntBag))))
15
16 (assert (bag.member min_set FiltMapIntBag))
17 (assert (bag.all (lambda ((i Int)) (> i min_set)) FiltMapIntBag))
18 (check-sat)