Using AST how i convert conventional code in SSA form
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Safeeullah_Soomro
Posted On:   Thursday, August 5, 2004 03:33 AM

I want to parse Java class in SSA form thats why i want to walk through ANTLR AST and i want to pick the next child of AST but i think there is no any method for next child in the documentation. i want to convert conventional code in SSA form, suppose SSA test method (conventional Code) int x; int y; x = 4; y = 3; x = x + 1; y = y + 5; (SSA form) int x_0; int y_0; x_0 = 4; y_0 = 3; x_1 = x_0 + 1; y_1 = y_0 + 5; first i want to walk through AST through each node t   More>>



I want to parse Java class in SSA form thats why i
want to walk through ANTLR AST and i want to pick the
next child of AST but i think there is no any method
for next child in the documentation.


i want to convert conventional code in SSA form,
suppose

SSA test method



(conventional Code)

int x;

int y;


x = 4;

y = 3;

x = x + 1;

y = y + 5;


(SSA form)


int x_0;

int y_0;

x_0 = 4;

y_0 = 3;

x_1 = x_0 + 1;

y_1 = y_0 + 5;


first i want to walk through AST through each node
then i think i can convert conventional code in SSA
form, SSA form is that in which every variable has
unique value.


Can any one help me about this stuff that how i can
convert any code in SSA form


I will be grateful to you all.

Thanks in advance

   <<Less
About | Sitemap | Contact