Skip to content
Snippets Groups Projects

Reduction Support

Merged Richard Angersbach requested to merge rangersbach/reductions into v2.0-dev
Viewing commit bb984679
Show latest version
3 files
+ 9
5
Preferences
Compare changes
Files
3
@@ -206,10 +206,10 @@ class FreezeExpressions:
# TODO: unsure if sp.Min & sp.Max are mapped by map_Min/map_Max afterwards
case "min":
op = sp.Min
init_val = NumericLimitsFunctions("min")
init_val = PsCall(PsMathFunction(NumericLimitsFunctions.Min), [])
case "max":
op = sp.Max
init_val = NumericLimitsFunctions("max")
init_val = PsCall(PsMathFunction(NumericLimitsFunctions.Max), [])
case _:
raise FreezeError(f"Unsupported reduced assignment: {expr.op}.")