You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CBMC version: develop (acb3aba)
Operating system: Linux (Ubuntu 18.04)
Exact command line resulting in the issue: cbmc --trace test.c
What behaviour did you expect: It should show a counterexample with the field set to a non-0 value
What happened instead: The counterexample had its field set to 0
Here we have a test with a failing assertion:
//test.c
struct SomeStruct
{
int x;
};
int main(void)
{
struct SomeStruct x;
assert(x.x == 0);
}
cbmc finds the problem (x.x can be non-zero) just fine, but in the produced trace we have
State 21 file test.c function main line 8 thread 0
----------------------------------------------------
x={ .x=0 } ({ 00000000 00000000 00000000 00000000 })
Violated property:
file test.c function main line 9 thread 0
assertion x.x != 0
x.x != 0
A git bisect revealed that this issue was introduced in 6e514de.
EDIT: issue had it wrong before, the problem appears with assert(x.x == 0), not !=
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
CBMC version: develop (acb3aba)
Operating system: Linux (Ubuntu 18.04)
Exact command line resulting in the issue: cbmc --trace test.c
What behaviour did you expect: It should show a counterexample with the field set to a non-0 value
What happened instead: The counterexample had its field set to 0
Here we have a test with a failing assertion:
cbmc
finds the problem (x.x
can be non-zero) just fine, but in the produced trace we haveA git bisect revealed that this issue was introduced in 6e514de.
EDIT: issue had it wrong before, the problem appears with
assert(x.x == 0)
, not!=
The text was updated successfully, but these errors were encountered: