aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/076_apple_and_norm.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sysy_lvX/076_apple_and_norm.sy')
-rw-r--r--tests/sysy_lvX/076_apple_and_norm.sy11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sysy_lvX/076_apple_and_norm.sy b/tests/sysy_lvX/076_apple_and_norm.sy
new file mode 100644
index 0000000..81d6594
--- /dev/null
+++ b/tests/sysy_lvX/076_apple_and_norm.sy
@@ -0,0 +1,11 @@
+//sample function of apple and norm
+int main() {
+ int n, x, y;
+ n = 10;
+ x = 4;
+ y = 9;
+ int bad;
+ bad = (y + x - 1) / x;
+ n = n - bad;
+ return n;
+} \ No newline at end of file