-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de9340c
commit 7de085d
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
struct expr | ||
{ | ||
int line; | ||
char comment; | ||
}; | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
struct expr var_expr = {42, 'a'}; | ||
struct expr other_expr = {34, 'b'}; | ||
unsigned int nondet; | ||
int *ref; | ||
if(nondet) | ||
ref = &var_expr.line; | ||
else | ||
ref = &other_expr.line; | ||
__CPROVER_assert(*ref != 34, "expected failure: ref == 34"); | ||
return 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CORE new-smt-backend | ||
address_of.c | ||
|
||
\[main\.assertion\.1\] line \d+ expected failure: ref == 34: FAILURE | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^VERIFICATION FAILED$ | ||
-- | ||
-- |