No Subject

When I try to execute these statements

for(s=f->firstStatement(); s ; s = s->lexNext()){
	       if(sfor = isSgForStmt(s)){

the program is going into as infinite loop around the 2nd statement. that
is it gets a statement and sees if it is a for loop after that it gets
another and checks and it keeps doing that but it never goes ahead.

This happens only a few times and not all the times. It is the same case
with isSgWhileStmt.

What could possibly be the reason for this.

thanks a lot
Shashi Mazumdar                                   E-mail:smaz@dcs.uky.edu
700 Woodland Ave #B-10                            Phone:(off)606-257-4926
Lexington KY 40508       			        (res)606-323-9903
URL : http://www.dcs.uky.edu/~smaz