Back to all issues

Issue 5610

Bug: Negation of the minimum value of a signed integer causes error in simulation


SubmittedProductStatus
2025-01-09Reactis for SimulinkResolved in 2024.2.1 (released Jan 30, 2025; release notes)
Resolved in 2024.0.4 (released Jan 30, 2025; release notes)

When simulating a Stateflow chart using the EML action language, negating an int8 that has the minimum value produces the error:

Computed output does not match expected type.
Output : t1
Expected type : int8
Computed value : 128