Modifying execution flow in save-to-return code scenarios
Abstract
A computer-implemented method includes, in a code transformation system, identifying save-to-return code instructions, function call code instructions, comparison code instructions, and exceptional code instructions. The function call code instructions are associated with the save-to-return code instructions. The comparison code instructions are associated with the save-to-return code instructions. The exceptional code instructions are associated with the comparison code instructions. A predefined proximity range based on a predefined proximity value as well as a proximity eligibility indicator are determined. The proximity eligibility indicator denotes whether the save-to-return code instructions and the comparison code instructions are within the predefined proximity range. Responsive to the proximity eligibility indicator denoting the save-to-return code instructions and the comparison code instructions are within the predefined proximity range, one or more execution flow relationships between the function call code instructions and the exceptional code instructions are created. A corresponding computer program product and computer system are also disclosed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product, comprising: one or more computer readable storage media and program instructions stored on said one or more computer readable storage media, said program instructions comprising instructions to, in a code transformation system: identify one or more save-to-return code instructions; identify one or more function call code instructions, said one or more function call code instructions being associated with said one or more save-to-return code instructions; identify one or more comparison code instructions, said one or more comparison code instructions being associated
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (4)
- "Failure of setjmp/longjmp", Stack Overflow, Stack Exchange, asked Jun. 21, 2012, 2 pages, printed on Aug. 14, 2015, <http://stackoverflow.com/questions/11139744/failure-of-setjmp-longjmp>.
- IBM, "List of IBM Patents or Patent Applications Treated as Related", Appendix P, 2 pages, dated Mar. 9, 2016.
- Ireland et al., "Modifying Execution Flow in Save-To-Return Code Scenarios", U.S. Appl. No. 15/064,014, filed Mar. 8, 2016, 35 pages.
- Stack Overflow, "Practical usage of setjmp and longjmp in C", 2014, Published at https://stackoverflow.com/questions/14685406/practical-usage-of-setjmp-and-longjmp-in-c.