In SmtxAA.cpp, setCost function was defined as "unsigned long" but there's no return instruction, which leads to undefined behavior and a SegFault in practice. The bug only manifests when compiled with optimization. We only used debug mode so it was never an issue. The specific bug is fixed in 7c5443f.
However, there are other non-void functions without a return instruction. All need to be fixed.
In SmtxAA.cpp, setCost function was defined as "unsigned long" but there's no return instruction, which leads to undefined behavior and a SegFault in practice. The bug only manifests when compiled with optimization. We only used debug mode so it was never an issue. The specific bug is fixed in 7c5443f.
However, there are other non-void functions without a return instruction. All need to be fixed.