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

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

Added out of bounds checking to mem_havoc. Fixed mem tests.

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

  • Property mode set to 100644
File size: 139 bytes
RevLine 
[5257f98]1#include<mem.cvh>
2#include<stdlib.h>
3#include<pointer.cvh>
4
5int a[100];
6
7int main() {
8 $mem m;
9
10 m = &a[(0 .. 99)];
11 $mem_havoc(m);
12}
Note: See TracBrowser for help on using the repository browser.