Skip to content

Commit 00b36b9

Browse files
committed
Add test calls for all sequence functions
1 parent 1430d42 commit 00b36b9

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

IntegrationTests/data/sequences.sem

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
((Start 0))
33
((($main))))
44

5+
(declare-const X (Seq Int))
6+
57
(define-funs-rec
68
((Start.Sem ((Start_term_0 Start) (rq (Seq Int)) (x (_ BitVec 32))) Bool))
79

@@ -11,7 +13,17 @@
1113
(and (= "Test" (seq.nth rb 7))
1214
(= rb (seq.++ ra (seq.unit "a")))
1315
(= rb (as seq.empty (Seq String)))
14-
(= rq (seq.rev rq)))))))))
16+
(= rq (seq.rev rq))
17+
(= (seq.len ra) (seq.nth rq 1))
18+
(= (seq.update ra 7 rb) rb)
19+
(= ra (seq.extract rb 3 5))
20+
(= (seq.at rb 4) (seq.at ra 3))
21+
(seq.contains ra rb)
22+
(= 12 (seq.indexof ra rb 7))
23+
(= ra (seq.replace ra ra rb))
24+
(= (seq.replace_all ra ra rb) rb)
25+
(seq.prefixof ra rb)
26+
(seq.suffixof rb ra))))))))
1527

1628

1729
(synth-fun MyFunc () Start)

0 commit comments

Comments
 (0)