annotate python/tests/testcode.c @ 156:1b4a85bdd99c

change types
author Windel Bouwman
date Sun, 03 Mar 2013 15:50:34 +0100
parents f2d980eef509
children
rev   line source
106
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
1
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
2 int Calculate(int a, int b, int c)
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
3 {
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
4 int d, e;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
5 d = a + b;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
6 e = d * c - a;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
7 return a + b + c + d + e;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
8 }
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
9