3
OPT: -security-analysis -lib-entry -main f -security-lattice weak -journal-disable
4
OPT: -security-analysis -lib-entry -main f -security-lattice strong -journal-disable
7
/*@ requires security_status(x) == public; */
10
/*@ ensures security_status( *x ) == public; */
13
/*@ ensures security_status( *x ) == private; */
20
int x = (int /*@ public */) 0;
24
send(y); /* faille averee */
26
crypt(&y); /* y devient public */
29
if (x) uncrypt(&y); /* code mort */
33
send(y); /* faille potentielle */
35
crypt(&y); /* y devient public */
37
send(y); /* faille potentielle si dep de ctrl */
45
compile-command: "../../bin/toplevel.opt -security-analysis -lib-entry -main f \
46
-security-lattice weak simple_example.c"