Back to results
US 8,015,553 B2Granted
Method and apparatus for testing execution flow of program
AssigneeSamsung Electronics Co., Ltd.
InventorsMyung-june Jung, Hyun-jin Choi, Kyung-im Jung
Life of this patent
Estimating the term…
Abstract
A method and apparatus for testing an execution flow of a program are provided. The method includes measuring the execution flow that reflects instruction values constituting the program and an execution order of the instructions; and verifying the measured execution flow.
Claims20
A method of testing an execution flow of a program using a test apparatus comprising a processor, the method comprising:
- measuring the execution flow, under control of the processor, by:
- measuring values of a plurality of instructions constituting the program;
- and
- calculating test values for the plurality of instructions at a plurality of time points during execution of the program by using the measured values;
- and
- verifying the measured execution flow, under control of the processor, by comparing the test values with a reference value,
- wherein, in the calculating the test values, each of the test values at a corresponding time point of the plurality of time points, except a test value at a first time point of the plurality of time points, is calculated by further using a test value which is calculated at a previous time point of the plurality of time points by using a value of a corresponding instruction among the plurality of instructions, and
- wherein the plurality of instructions comprise a measurement-start instruction which instructs starting the measuring the execution flow, and a measurement-end instruction which instructs terminating the measuring the execution flow.
5 more elements
An apparatus for testing an execution flow of a program, the apparatus comprising:
- a processor;
- an execution-flow-measuring module that measures the execution flow, under control of the processor, by:
- measuring values of a plurality of instructions constituting the program;
- and
- calculating test values for the plurality of instructions at a plurality of time points during execution of the program by using the measured values;
- and
- an execution-flow-verifying module that verifies the measured execution flow, under control of the processor, by comparing the test values with a reference value,
- wherein, in the calculating the test values, the execution-flow-measuring module calculates each of the test values at a corresponding time point of the plurality of time points, except a test value at a first time point of the plurality of time points, by further using a test value which the execution-flow-measuring module calculates at a previous time point of the plurality of time points by using a value of a corresponding instruction among the plurality of instructions, and
- wherein the plurality of instructions comprise a measurement-start instruction which instructs starting the measuring the execution flow, and a measurement-end instruction which instructs terminating the measuring the execution flow.
6 more elements
Dependencies are inferred from the claim text.