codegen progress
This commit is contained in:
+2
-9
@@ -1,6 +1,4 @@
|
||||
int x = 5;
|
||||
|
||||
int add(int a, int b) { return a + b; }
|
||||
int var_x = 5;
|
||||
|
||||
int factorial(int n) {
|
||||
if (n <= 1) {
|
||||
@@ -10,12 +8,7 @@ int factorial(int n) {
|
||||
}
|
||||
|
||||
int main() {
|
||||
int x;
|
||||
x = 5;
|
||||
int x = 5;
|
||||
int result;
|
||||
int result = 5;
|
||||
result = x + factorial(5);
|
||||
int result = var_x + factorial(5);
|
||||
print(result);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user