source: CIVL/examples/mem/mem_tests/mem_havoc_2mallocs.cvl

main
Last change on this file was bb03188, checked in by Alex Wilton <awilton@…>, 9 months ago

Fixed swapped mallocID and heapID.

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

  • Property mode set to 100644
File size: 154 bytes
Line 
1#include<mem.cvh>
2#include<stdlib.h>
3
4int main(void) {
5 int * p = malloc(sizeof(int));
6 int * q = malloc(sizeof(int));
7 $mem m = q;
8 $mem_havoc(m);
9}
Note: See TracBrowser for help on using the repository browser.