Terminates the simulation.
94 {
95 std::string msg("Unknown floating point exception");
96
97 if (info->si_code == FPE_INTDIV) {
98 msg = "integer division by zero";
99 } else if (info->si_code == FPE_FLTDIV) {
100 msg = "floating-point division by zero";
101 } else if (info->si_code == FPE_INTOVF) {
102 msg = "integer overflow";
103 } else if (info->si_code == FPE_FLTOVF) {
104 msg = "floating-point overflow";
105 } else if (info->si_code == FPE_FLTUND) {
106 msg = "floating-point underflow";
107 } else if (info->si_code == FPE_FLTRES) {
108 msg = "floating-point inexact result";
109 } else if (info->si_code == FPE_FLTINV) {
110 msg = "invalid floating-point operation";
111 } else if (info->si_code == FPE_FLTSUB) {
112 msg = " Subscript out of range";
113 }
114
118
120 }
@ SRE_RUNTIME_ERROR
A fatal runtime error occured in the simulated program.
void reportSimulatedProgramError(RuntimeErrorSeverity severity, const std::string &description)
@ RES_FATAL
Fatal runtime error, there is a serious error in the simulated program, thus it makes no sense to go ...
void prepareToStop(StopReason reason)