Skip to content

Commit f6da458

Browse files
committed
FlattenMapper: claim everything is an integer
(for now, matches existing behavior, but is clearly incorrect)
1 parent 575d0c3 commit f6da458

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

loopy/symbolic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ def map_resolved_function(self, expr, *args, **kwargs):
205205

206206

207207
class FlattenMapper(FlattenMapperBase, IdentityMapperMixin):
208-
pass
208+
# FIXME: Lies! This needs to be made precise.
209+
def is_expr_integer_valued(self, expr: ExpressionT) -> bool:
210+
return True
209211

210212

211213
def flatten(expr: ArithmeticOrExpressionT) -> ArithmeticOrExpressionT:

0 commit comments

Comments
 (0)