Debian Codegraph @

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

raw
1 (set-logic HO_ALL)
2 (set-info :status sat)
3
4 (declare-fun A () (Table String Int String Bool))
5 (declare-fun B () (Table Int Bool String String))
6 (declare-fun C () (Table String String))
7 (declare-fun D () Table)
8
9 (assert
10 (= A
11 (bag.union_disjoint
12 (bag (tuple "x" 0 "y" false) 5)
13 (bag (tuple "x" 1 "z" true) 10))))
14
15 ; (bag.union_disjoint (bag (tuple 0 false "x" "y") 5) (bag (tuple 1 true "x" "z") 10)))
16 (assert (= B ((_ table.project 1 3 0 2) A)))
17 ; (bag (tuple "x" "x") 15)
18 (assert (= C ((_ table.project 0 0) A)))
19 ; (bag tuple 15)
20 (assert (= D (table.project A)))
21 (check-sat)