compiler/passes/normalize.cpp
// Collect the distinct stmts that contain logical AND/OR expressions
Collect the distinct stmts that contain logical AND/OR expressions
Collect the distinct stmts that contain logical AND / OR expressions
forv_Vec(CallExpr, call, gCallExprs) {
    if (call->primitive == 0) {
      if (UnresolvedSymExpr* expr = toUnresolvedSymExpr(call->baseExpr)) {
        if (strcmp(expr->unresolved, "&&") == 0 ||
            strcmp(expr->unresolved, "||") == 0) {
          stmts.insert(call->getStmtExpr());
        }
      }
    }
  }
forv_Vec ( CallExpr , call , gCallExprs ) { if ( call -> primitive == 0 ) { if ( UnresolvedSymExpr * expr = toUnresolvedSymExpr ( call -> baseExpr ) ) { if ( strcmp ( expr -> unresolved , " " ) == 0 || strcmp ( expr -> unresolved , " " ) == 0 ) { stmts . insert ( call -> getStmtExpr ( ) ) ; } } } }
Collect the distinct stmts that contain logical AND/OR expressions
Collect the distinct stmts that contain logical AND / OR expressions