Extract the stmts related to each IfStmt