We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc9b82c commit cc8dcedCopy full SHA for cc8dced
src/kirin/analysis/const/prop.py
@@ -96,10 +96,12 @@ def eval_stmt(
96
return self.try_eval_const_pure(frame, stmt, values)
97
98
if stmt.has_trait(ir.Pure):
99
- return (Unknown(),) # no implementation but pure
+ return tuple(
100
+ Unknown() for _ in stmt._results
101
+ ) # no implementation but pure
102
# not pure, and no implementation, let's say it's not pure
103
frame.frame_is_not_pure = True
- return (Unknown(),)
104
+ return tuple(Unknown() for _ in stmt._results)
105
106
ret = method(self, frame, stmt)
107
if stmt.has_trait(ir.IsTerminator) or stmt.has_trait(ir.Pure):
0 commit comments