Computing program equivalence based on a hierarchy of program semantics and related canonical representations
Abstract
Methods, systems, and articles of manufacture for computing program equivalence based on a hierarchy of program semantics and related canonical representations are provided herein. A method includes defining a program semantic representation for a first program; generating a search query based on said semantic representation for the first program; executing said search query against an index of multiple programs to determine a set of candidate programs among the multiple programs, wherein said index comprises a program semantic representation defined for each of the multiple programs; and identifying one or more programs among the set of candidate programs that match the first program by performing one or more comparisons, across the set of candidate programs, of a canonical representation associated with each program in the identified set of candidate programs to a canonical representation associated with the first program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for determining program equivalence between a first program and multiple candidate programs, the method comprising steps of: defining a program semantic representation for the first program; generating a search query based on said program semantic representation; executing said search query against an index of multiple programs, wherein said index comprises a program semantic representation for each of the multiple programs; outputting a set of candidate programs, among the multiple programs, as a result of executing said search query against the index; refactoring (i) the first progr
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,970,047 B2 | Lossless bi-directional formatting of program source code | 2021 | 0 |
References Cited — Backward Prior Art (13)
Non-Patent Literature (3)
- Nomikos et al. Strong Equivalence of Logic Programs under the Infinite-Valued Semantics, Information Processing Letters 109: 576-581, 2009.
- Santanu et al. "A framework for source code search using program patterns." Jun. 1994, IEEE Transactions on Software Engineering 20.6 (1994): pp. 463-475.
- Yao et al. "Towards a semantic-based approach for software reusable component classification and retrieval." Apr. 2004, Proceedings of the 42nd annual Southeast regional conference, ACM.