You need to sign in or sign up before continuing.
Debug mode: catch all numerical errors
LFortran should give a nice runtime error in Debug mode on any of the numerical errors from this list:
- division by zero
- functions out of domain access (things like
sqrt(-1)
) - integer overflow
- creation of
NaN
These errors can be caught either by inserting some runtime checks (for integer overflow) or possibly some hardware checks (hardware exception on NaN).