Cosette icon indicating copy to clipboard operation
Cosette copied to clipboard

Invalid generated Coq code when subquery contains predicate

Open duremar opened this issue 6 years ago • 2 comments

perhaps something is wrong with processing a predicate with two arguments (b1): cosette_bug

duremar avatar Oct 13 '17 19:10 duremar

Thanks for the bug report! There is a minor mistake in Coq code generation. @duremar I believe this is fixed through 43cbd27. The web frontend deployment takes about 15 mins to work.

stechu avatar Oct 13 '17 21:10 stechu

thank you for quick fix i've found another example of invalid code generation:

schema s(??);
table a(s);
predicate p(s);

query q1
`select * from a x where exists ( select * from a y where p(y) )`;

query q2
`select * from a x`;

verify q1 q2;

it works if where p(y) removed from the program but fails otherwise

duremar avatar Oct 14 '17 00:10 duremar