diff options
author | Teddy <[email protected]> | 2014-05-07 11:55:51 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-05-07 11:55:51 +0800 |
commit | 30ecc9941b8da7a3c0108bc6117a1434e9caab94 (patch) | |
tree | 6a24b25086c63a4aa112fc6173b29c31793099d8 /compile_data/custom_subexp2.c | |
parent | bbb4de0693ba2b010cd2c44805d9a4ee4a2a8904 (diff) | |
parent | 52b29440f8f1310e0c074c8eb409e433c56bdd62 (diff) |
Merge /home/ymf/work/cibic into optimization
Diffstat (limited to 'compile_data/custom_subexp2.c')
-rw-r--r-- | compile_data/custom_subexp2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compile_data/custom_subexp2.c b/compile_data/custom_subexp2.c new file mode 100644 index 0000000..1e4af93 --- /dev/null +++ b/compile_data/custom_subexp2.c @@ -0,0 +1,10 @@ +int flag = 0; +int check(int x, int y) { + return x > 0 && y > 0 && (flag ^= 1); +} +int main() { + int x = 1, y = 2; + printf("%d\n", check(x, y)); + printf("%d\n", check(x, y)); + printf("%d\n", check(x, y)); +} |