Patents
US 8,516,229 B2#44939423 Most CitedActiveUnited States (USPTO)Utility

Two pass test case generation using self-modifying instruction replacement

2Forward Citations (#44939423 Global)
0.1/yrCitation Velocity (#39035115 Global)
0.88Citation PageRank (#48946825 Global)
36Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A test code generation technique that replaces instructions having a machine state dependent result with special redirection instructions provides generation of test code in which state dependent execution choices are made without a state model. Redirection instructions cause execution of a handler than examines the machine state and replaces the redirection instruction with a replacement instruction having a desired result resolved in accordance with the current machine state. The instructions that are replaced may be conditional branch instructions and the result a desired execution path. The examination of the machine state permits determination of a branch condition for the replacement instruction so that the next pass of the test code executes along the desired path. Alternatively, the handler can execute a jump to the branch instruction, causing immediate execution of the desired branch path. The re-direction instructions may be illegal instructions, which cause execution of an interrupt handler that performs the replacement.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 2.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer performed method performed by a general-purpose computer system that generates an output set of program code for execution by a processor, the method comprising: generating the output set of program code by replacing a particular instruction in the output set of program code with a redirecting instruction for redirecting execution to a handling routine, wherein the particular instruction is an instruction having a result dependent on a machine state of the processor; executing the program code, wherein when the redirecting instruction is executed, the handling routine is entered; de

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (36)

PatentTitleYearCitations
US 3,909,802 ADiagnostic maintenance and test apparatus197532
US 4,607,332 ADynamic alteration of firmware programs in Read-Only Memory based systems198657
US 5,247,627 ADigital signal processor with conditional branch decision unit and storage of conditional branch decision results199368
US 5,274,815 ADynamic instruction modifying controller and operation method199376
US 5,471,593 AComputer processor with an efficient means of executing many instructions simultaneously1995424
US 5,692,167 AMethod for verifying the correct processing of pipelined instructions including branch instructions and self-modifying code in a microprocessor199757
US 5,770,894 AParallel processing method having arithmetical conditions code based instructions substituted for conventional branches199823
US 5,826,073 ASelf-modifying code handling system199838
US 5,850,553 AReducing the number of executed branch instructions in a code sequence199835
US 5,920,716 ACompiling a predicated code with direct analysis of the predicated code199996
US 6,023,758 AMethod and processor for changing program by replacing instruction stored in ROM with predetermined value to be interpreted as an instruction200011
US 6,173,395 B1Mechanism to determine actual code execution flow in a computer200148
US 2003145286 A1Self-contained embedded test design envoronment and environment setup utility—39
EP 0,926,592 B1Software emulation system20041
US 2004103410 A1Program conversion apparatus and method as well as recording medium—59
US 6,748,583 B2Monitoring execution of an hierarchical visual program such as for debugging a message flow2004113
US 2005081104 A1Test diversity software testing method and apparatus—44
US 2005086455 A1Method and apparatus for generating interrupts for specific types of instructions—8
US 2005154812 A1Method and apparatus for providing pre and post handlers for recording events—48
US 7,010,787 B2Branch instruction conversion to multi-threaded parallel instructions200651
US 7,058,925 B2System and method for generating a predicate abstraction of a program200627
US 7,168,009 B2Method and system for identifying errors in computer software200730
US 7,180,867 B2Apparatus and method for flow path based fault detection and service restoration in a packet based switching system200713
US 7,197,586 B2Method and system for recording events of an interrupt using pre-interrupt handler and post-interrupt handler200710
US 7,290,255 B2Autonomic method and apparatus for local program code reorganization using branch count per instruction hardware20077
US 2007271553 A1Method and system for translating assembler code to a target language—24
US 2008034357 A1Method and Apparatus for Generating Data Parallel Select Operations in a Pervasively Data Parallel System—77
US 7,401,322 B1Software debugging tool200848

Non-Patent Literature (3)

  • Bertolino, Antonia,"Automatic Generation of Path Covers Based on the Control Flow Analysis of Computer Programs", IEEE Transactions on Software Engineering, Dec. 1994, pp. 885-899, vol. 20, No. 12, IEEE Press, US.
  • Wikipedia's article on 'Control Flow' from Dec. 18, 2008 discloses self-modifying code being used to affect control flow.
  • Wikipedia's article on 'Self-modifying code' from Feb. 20, 2010 discloses self-modifying code being a way to alter a compare and branch to an unconditional branch.