<div dir="ltr">Hi All, <div><br></div><div>In my VisitBinaryOperator I want to treat assignments in IfStmt's predicate check part differently </div><div>than the assignments in its body. For example: </div><div><br></div><div>if( (*ptrI = malloc(sizeof(int) * 10)) == NULL)  // => this assignment is within predicate </div><div>        msg = "success"; // assignment in body (treat it differently than the above)</div><div>else</div><div>        msg = "fail"; // assignment in body</div><div><br></div><div><br></div><div>Here, I would like to handle the ptrI = malloc assignment differently than the other two assignments of 'msg'. I tries setting a flag in VisitIfStmt, but that can't distinguish between the two different kind of assignments. </div><div><br></div><div>Thanks!</div></div>