source: CIVL/examples/library/civlc/havoc.cvl@ fffb3b88

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since fffb3b88 was c84ae6e2, checked in by Manchun Zheng <zmanchun@…>, 10 years ago

added system function $havoc; added tests accordingly; made random() function use $havoc.

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

  • Property mode set to 100644
File size: 171 bytes
Line 
1#include<civlc.cvh>
2#include<stdio.h>
3
4int main(){
5 int x;
6
7 $havoc(&x);
8 printf("x=%d\n", x);
9 for(int i=0; i<5; i++){
10 $havoc(&x);
11 printf("x=%d\n", x);
12 }
13}
Note: See TracBrowser for help on using the repository browser.