Debian Codegraph @

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

raw
1 (set-logic HO_ALL)
2
3 (set-info :status sat)
4
5 (set-option :fmf-bound true)
6 (set-option :uf-lazy-ll true)
7
8 ; equivalence relation : inverse
9 (define-fun r ((x Int) (y Int)) Bool (= 0 (+ x y)))
10
11 (declare-fun A () (Bag Int))
12 (declare-fun B () (Bag (Bag Int)))
13 (declare-fun C () (Bag (Bag Int)))
14
15 (assert
16 (= A
17 (bag.union_disjoint
18 (bag 1 20) (bag (- 1) 50)
19 (bag 2 30) (bag (- 2) 60)
20 (bag 3 40) (bag (- 3) 70)
21 (bag 4 100))))
22
23 ;(define-fun B () (Bag (Bag Int))
24 ; (bag.union_disjoint (bag (bag 4 100) 1)
25 ; (bag (bag.union_disjoint (bag 1 20) (bag (- 1) 50)) 1)
26 ; (bag (bag.union_disjoint (bag 2 30) (bag (- 2) 60)) 1)
27 ; (bag (bag.union_disjoint (bag 3 40) (bag (- 3) 70)) 1)))
28
29 (assert (= B (bag.partition r A)))
30 ; (define-fun C () (Bag (Bag Int)) (as bag.empty (Bag (Bag Int))))
31 (assert (= C (bag.partition r (as bag.empty (Bag Int)))))
32
33 (check-sat)
34