Skip to content

Commit

Permalink
FlattenMapper: claim everything is an integer
Browse files Browse the repository at this point in the history
(for now, matches existing behavior, but is clearly incorrect)
  • Loading branch information
inducer committed Nov 7, 2024
1 parent 575d0c3 commit 2bdcc8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loopy/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def map_resolved_function(self, expr, *args, **kwargs):


class FlattenMapper(FlattenMapperBase, IdentityMapperMixin):
pass
# FIXME: Lies! This needs to be made precise.
def is_expression_integer_valued(self, expr: ExpressionT) -> bool:
return True


def flatten(expr: ArithmeticOrExpressionT) -> ArithmeticOrExpressionT:
Expand Down

0 comments on commit 2bdcc8e

Please sign in to comment.