summaryrefslogtreecommitdiff
path: root/Test/linear/typecheck.bpl.expect
diff options
context:
space:
mode:
authorGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 21:20:35 +0100
committerGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 21:20:35 +0100
commit5c9156cb9422477f0fc1cd34d50753a6f7de09dc (patch)
tree1c71c6c8f8d8caf3c526f3e15c66a96a804e428d /Test/linear/typecheck.bpl.expect
parentf6f1765d810714facbb30fa53c663598d04b8158 (diff)
Enabled "linear type checking" lit tests.
Diffstat (limited to 'Test/linear/typecheck.bpl.expect')
-rw-r--r--Test/linear/typecheck.bpl.expect16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/linear/typecheck.bpl.expect b/Test/linear/typecheck.bpl.expect
new file mode 100644
index 00000000..dddbd163
--- /dev/null
+++ b/Test/linear/typecheck.bpl.expect
@@ -0,0 +1,16 @@
+typecheck.bpl(33,9): Error: Only simple assignment allowed on linear variable b
+typecheck.bpl(35,6): Error: Only variable can be assigned to linear variable a
+typecheck.bpl(37,6): Error: Only linear variable can be assigned to linear variable a
+typecheck.bpl(41,6): Error: Linear variable of domain D2 cannot be assigned to linear variable of domain D
+typecheck.bpl(47,9): Error: Linear variable x can occur only once in the right-hand-side of an assignment
+typecheck.bpl(51,4): Error: Linear variable a can occur only once as an input parameter
+typecheck.bpl(53,4): Error: Only variable can be passed to linear parameter b
+typecheck.bpl(55,4): Error: The domains of formal and actual parameters must be the same
+typecheck.bpl(57,4): Error: The domains of formal and actual parameters must be the same
+typecheck.bpl(59,4): Error: Only a linear argument can be passed to linear parameter a
+typecheck.bpl(64,4): Error: Linear variable a can occur only once as an input parameter of a parallel call
+typecheck.bpl(71,0): Error: Output variable d must be available at a return
+typecheck.bpl(80,0): Error: Global variable g must be available at a return
+typecheck.bpl(85,7): Error: unavailable source for a linear read
+typecheck.bpl(86,0): Error: Output variable r must be available at a return
+15 type checking errors detected in typecheck.bpl