Skip to content

Commit

Permalink
Add a failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
izgzhen committed Oct 3, 2019
1 parent 16e175d commit b63e393
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ TIMEOUT ?= 240
listcomp.h: listcomp-flatmap.ds
cozy -t $(TIMEOUT) --allow-big-sets listcomp-flatmap.ds --c++ listcomp.h -p 8080 --verbose --save listcomp.synthesized

select.h: select-flatmap.ds
cozy -t $(TIMEOUT) --allow-big-sets select-flatmap.ds --c++ select.h -p 8080 --verbose --save select.synthesized

listcomp: listcomp.cpp listcomp.h
g++ -std=c++11 -O3 -Werror '$<' -o '$@'

Expand Down
25 changes: 25 additions & 0 deletions examples/select-flatmap.ds
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
SelectFlatmap:
type R = {
A: Int,
B: String
}
type S = {
B: String,
C: Int
}
type Q = {
B: String,
C: Int
}
type W = {
B: String,
C: Int
}

state Rs : Bag<R>
state Ss : Bag<S>
state Qs : Bag<Q>
state Ws : Bag<W>

query q()
[ (r.A, s.C, q.B, w.C) | r <- Rs, s <- Ss, q <- Qs, w <- Ws, r.A == 15, q.B == w.B ]

0 comments on commit b63e393

Please sign in to comment.