source: CIVL/examples/slice/subsumption.c@ d2ef00b

1.23 2.0 main test-branch
Last change on this file since d2ef00b was 9ea79e9, checked in by Mitchell Gerrard <mitchellgerrard@…>, 10 years ago

Adding two test cases checking the path condition from a ControlDependence object against an oracle stored in a '.slice' file created within ./CIVLREP after running: civl replay -sliceAnalysis foo.c.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@3750 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 285 bytes
Line 
1extern void __VERIFIER_error() __attribute__ ((__noreturn__));
2extern void __VERIFIER_assume(int);
3extern int __VERIFIER_nondet_int();
4
5int main( ) {
6 int input = __VERIFIER_nondet_int();
7
8 if (input < 3) {
9 if (input < 0) {
10 __VERIFIER_error();
11 }
12 }
13
14 return 0;
15}
16
Note: See TracBrowser for help on using the repository browser.