source: CIVL/examples/svcomp17/int2pointerOnSymConst.cvl@ beab7f2

main test-branch
Last change on this file since beab7f2 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

  • Property mode set to 100644
File size: 210 bytes
RevLine 
[368903b1]1int foo(void *p) {
2 void * q[5];
3
4 q[0] = p; // where bug happens
5
6 return (int*)q[0] - (int*)p; // ignore this, just for not pruning
7
8}
9
10int main() {
11 int a;
12
13 $havoc(&a);
14 return foo((void*)a);
15}
Note: See TracBrowser for help on using the repository browser.