~ubuntu-branches/debian/sid/frama-c/sid

« back to all changes in this revision

Viewing changes to tests/pdg/sets.c

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy
  • Date: 2009-06-03 08:19:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090603081925-kihvxvt0wy3zc4ar
Tags: upstream-20081201.dfsg
ImportĀ upstreamĀ versionĀ 20081201.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* run.config
 
2
   EXECNOW: make -s tests/pdg/sets.opt
 
3
   CMD: tests/pdg/sets.opt
 
4
   OPT: -lib-entry -main f -pdg-debug -pdg -inout -journal-disable
 
5
*/
 
6
 
 
7
int b, c, x, y, z, t;
 
8
void f(int a) {
 
9
  y = 0;        // 1, node 9
 
10
  if (a) y = 1; // 2 puis 3, (y = 1: node 11)
 
11
  z = y;        // 5
 
12
  y++;          // 6 (node 14)
 
13
  x = z;        // 8
 
14
  b = a;        // 9
 
15
  t = b + y;    // 11
 
16
  y = 5;        // 12
 
17
  c = 8;        // shouldn't have any relation with node 14...
 
18
}