next up previous
Next: Compiled code Up: Example1 Previous: High Level C Program

LANCE Generated IR

/* 1 "LANCEV2" */
/* $
     IR file generated by LANCE V2.0 (./compile) on
     Friday, Mar 17, 2006 at 12:44:21
$ */

int max(int ,int );
void main();

static char *lance_static_t2 = "%d%d";

static char *lance_static_t6 = "%d";

int max(int a_2,int b_3)
{
 int t1;


 /* 3 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ if(a>b)$ */

	t1 = a_2 > b_3;
	if (t1) goto LL1;


 /* 6 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ return b;$ */

	return b_3;


 /* 3 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ if(a>b)$ */

	goto LL2;

 LL1:

 /* 4 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ return a;$ */

	return a_2;


 /* 3 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ if(a>b)$ */

 LL2:

 /* 0 "???" */
 /* $ ???$ */

	return;
}

void main()
{
 int x_6;
 int y_7;
 int *t3;
 int *t4;
 int t5;
 int t7;
 int t8;


 /* 11 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ scanf("%d%d",&x,&y);$ */

	t3 = &x_6;
	t4 = &y_7;
	t5 = scanf(lance_static_t2,t3,t4);

 /* 12 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ printf("%d",max(x,y));$ */

	t7 = max(x_6,y_7);
	t8 = printf(lance_static_t6,t7);

 /* 13 "/users/pg05/rameshg/ta/vm/tt.c" */
 /* $ return ;$ */

	return;

}



2006-03-18