test/regress/cli/regress1/bags/fold2.smt2
raw| 1 | (set-logic HO_ALL) |
| 2 | (set-info :status sat) |
| 3 | (set-option :fmf-bound true) |
| 4 | (set-option :uf-lazy-ll true) |
| 5 | |
| 6 | (define-fun min ((x String) (y String)) String (ite (str.< x y) x y)) |
| 7 | (declare-fun A () (Bag String)) |
| 8 | (declare-fun x () String) |
| 9 | (declare-fun minimum () String) |
| 10 | (assert (= minimum (bag.fold min "zzz" A))) |
| 11 | (assert (str.< "aaa" minimum )) |
| 12 | (assert (str.< minimum "zzz")) |
| 13 | (assert (distinct x minimum)) |
| 14 | (assert (= (bag.count x A) 2)) |
| 15 | (check-sat) |