-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hernan Ponce de Leon <[email protected]> Co-authored-by: Hernan Ponce de Leon <[email protected]> Co-authored-by: Thomas Haas <[email protected]>
- Loading branch information
1 parent
eb15f40
commit 6582d4a
Showing
35 changed files
with
657 additions
and
22 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
#include <stdint.h> | ||
#include <assert.h> | ||
#include <dat3m.h> | ||
|
||
volatile int32_t x = 0; | ||
|
||
int main() | ||
{ | ||
int i = 0; | ||
int jumpIntoLoop = __VERIFIER_nondet_bool(); | ||
if (jumpIntoLoop) goto L; | ||
|
||
__VERIFIER_loop_bound(6); | ||
for (i = 1; i < 5; i++) { | ||
L: | ||
x++; | ||
} | ||
|
||
assert ((jumpIntoLoop && x == 5) || (!jumpIntoLoop && x == 4)); | ||
return 0; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,58 @@ | ||
#include <assert.h> | ||
#include <dat3m.h> | ||
|
||
int main() | ||
{ | ||
unsigned int x = __VERIFIER_nondet_uint(); | ||
A: | ||
if (x >= 1) { | ||
x = 4; | ||
goto B; | ||
} else { | ||
goto C; | ||
} | ||
B: | ||
// 3, 4, 5, 6 | ||
if (x > 3) { | ||
goto D; | ||
} else { | ||
goto E; | ||
} | ||
D: | ||
// 3, 4, 5, 6 | ||
x++; | ||
|
||
if (x > 5) { | ||
goto Halt; | ||
} else { | ||
goto E; | ||
} | ||
E: | ||
// 3, 4, 5 | ||
if (x < 4) { | ||
goto D; | ||
} else { | ||
goto F; | ||
} | ||
F: | ||
// 4, 5 | ||
if (x < 3) { | ||
goto C; | ||
} else { | ||
goto G; | ||
} | ||
G: | ||
// 0, 1, 2, 4, 5 | ||
x++; | ||
goto C; | ||
C: | ||
// 0, 1, 2, 3, 5, 6 | ||
if (x > 2) { | ||
goto B; | ||
} else { | ||
goto G; | ||
} | ||
Halt: | ||
// 6, 7 | ||
assert(x == 6); | ||
} |
File renamed without changes.
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
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
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
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
Oops, something went wrong.