Created
May 17, 2014 15:16
-
-
Save smcc/901e471273743fac922f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Trimmed-down example that triggers failures in many different | |
% STP versions because it causes STP to think about dividing | |
% by zero. | |
y : BV(8); | |
% Should be equivalent to "t4 : BV(8) = 0h01": | |
t4 : BV(8) = BVPLUS(8, y, BVUMINUS(y), 0h01); | |
% Should be invalid. Definitely by y = 0h01, but potentially | |
% also with y = 0h00, if the semantics of divide-by-zero are | |
% either "always 1" or "could be anything". | |
QUERY(BVDIV(16, (0h00 @ t4),(0h00 @ y))[0:0] = 0b0); | |
COUNTEREXAMPLE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment