Skip to content

Commit

Permalink
Merge pull request #166 from nevillegrech/inliner_bug
Browse files Browse the repository at this point in the history
Fix inliner bug: Add missing facts in InVar_OutVar
  • Loading branch information
sifislag authored Nov 22, 2024
2 parents d6db984 + 5053d43 commit 2b44314
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clientlib/tac-transformers/abstract_function_inliner.dl
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@
stmtId = cat(cat(cat(cat(callerBlock, "S"), phiBlock), "_"), to_string(i)),
defVar = cat(cat(cat(cat(actualRet, "V"), phiBlock), "_"), to_string(i)).

InVar_OutVar(actualRet, "", defVar):-
NewPHIInfo(_, _, actualRet, _, _, defVar, _).

Out_Statement_Defines(outStmt, outVar, i),
InVar_OutVar(inVar, callerBlock, outVar),
VariableToClone(inVar, fromFun, callerBlock, callerFun, outVar):-
Expand Down

0 comments on commit 2b44314

Please sign in to comment.