Open BowenZhang-UST opened 1 year ago
Hi @BowenZhang-UST, thanks for the report. As for a more updated implementation, check https://github.com/lac-dcc/wyvern/tree/master/passes
Thank you for reviewing this issue and providing an updated implementation! @guilhermeleobas
Commit
Lattest Main
Location
Description
The code at
ProgramSlicing/ProgramSlicing.cpp
Line 419 tries to cast thecondition
of an conditional branch intoInstruction
. However, the condition ofBranchInst
is not alwaysInstruction
. When the condition is anArgument
, there would be a cast exception.The code at
DAG/inter_profile.cpp
Line 487 is similar.Proposed Fix
Turn the cast into a dynamic cast, and use an if-check to guard it.