Skip to content

Instantly share code, notes, and snippets.

@glesage
Created May 30, 2015 17:50
Show Gist options
  • Save glesage/8a946dd20a9e3bb800ff to your computer and use it in GitHub Desktop.
Save glesage/8a946dd20a9e3bb800ff to your computer and use it in GitHub Desktop.
test3.c
#include <stdio.h>
int f(int a, int b_b)
{
int answer;
{
if (b_b) goto L_if_true1;
goto L_if_false2;
L_if_true1:
{
int TEMP_UnaryOp_1;
TEMP_UnaryOp_1 = (-a);
answer = TEMP_UnaryOp_1;
}
goto L_if_end3;
return a;
L_if_end3:
;
}
return answer;
}
int main()
{
int i;
i = 0;
{
L_loop_test4:
{
int b_TEMP_BinaryOp_2;
b_TEMP_BinaryOp_2 = (i < 6);
if (b_TEMP_BinaryOp_2) goto L_loop_body5;
}
goto L_loop_exit6;
L_loop_body5:
{
int temp;
temp = f(i, 1);
printf("%d\n", temp);
temp = f(i, 0);
printf("%d\n", temp);
{
int TEMP_BinaryOp_3;
TEMP_BinaryOp_3 = (i + 1);
i = TEMP_BinaryOp_3;
}
}
goto L_loop_test4;
L_loop_exit6:
;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment