Back to results
US 8,752,026 B2Granted
Efficient code instrumentation
AssigneeInternational Business Machines Corporation
InventorsAdi Sharabani, Omer Tripp
Life of this patent
Estimating the term…
Abstract
A method for instrumenting a computer program, the method including identifying a program slice within a computer program, and instrumenting the program slice within the program.
Claims13
A method for instrumenting a computer program, the method comprising:
- identifying a program slice within a computer program wherein said program slice includes any statements in said computer program that meet at least one predefined slicing criterion, and wherein identifying the program slice comprises applying said at least one predefined slicing criterion to include within said program slice any statements in said computer program that directly or indirectly relate to a predefined input vector and entry point of said computer program;
- instrumenting, by an instrumentation engine, said program slice within said computer program prior to executing said instrumented computer program, wherein said instrumenting does not instrument unreachable code;
- and
- executing said instrumented computer program.
1 more element
A system for instrumenting a computer program, the system comprising:
- a processor;
- and
- a computer readable memory device, having computer readable program code embodied therewith, said computer readable program code configured to:
- identify, by a program slicer, a program slice within a computer program, wherein said program slice includes any statements in said computer program that meet at least one predefined slicing criterion, and wherein identifying the program slice comprises applying said at least one predefined slicing criterion to include within said program slice any statements in said computer program that directly or indirectly relate to a predefined input vector and entry point of said computer program;
- instrument, by an instrumentation engine, said program slice within said computer program prior to executing said instrumented computer program, wherein said instrumenting does not instrument unreachable code;
- and
- execute said instrumented computer program.
4 more elements
A computer program product for instrumenting a computer program, the computer program product comprising:
- a computer readable memory device having computer readable program code embodied therewith, said computer readable program code configured to:
- identify a program slice within a computer program, wherein said program slice includes any statements in said computer program that meet at least one predefined slicing criterion, and wherein identifying the program slice comprises applying said at least one predefined slicing criterion to include within said program slice any statements in said computer program that directly or indirectly relate to a predefined input vector and entry point of said computer program;
- instrument, by an instrumentation engine, said program slice within said computer program prior to executing said instrumented computer program, wherein said instrumenting does not instrument unreachable code;
- and
- execute said instrumented computer program.
2 more elements
Dependencies are inferred from the claim text.