Code generation by matching and satisfiability search
Abstract
A tool and method for automatically producing near-optimal code sequences are particularly useful for generating near-optimal code sequences in inner loops, crucial subroutines, and device drivers. As a novel functional and architectural strategy, the invention contemplates applying technologies that would be normally in automatic theorem proving to the problem of automatic code generation. The aspect of the automatic theorem proving is realized by matching followed by planning with satisfiability search. Notably also, the present invention targets a goal-oriented, cycle budget limited code sequence in producing the near-optimal code sequence.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 8.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for producing, for a target computer architecture and a program fragment, a near-optimal code sequence for executing the program fragment on the target computer, comprising: repeatedly invoking an automatic theorem prover for plural cycle budgets to determine a minimum cycle budget that is the lowest of any cycle budget K for which a formalized mathematical conjecture that no code sequence for the target computer architecture executes the program fragment within the cycle budget K is unprovable by the automatic theorem prover, and extract the near optimal code sequence from a countere
- Claim 2Depends on #1
The method of claim 1 , wherein the automatic theorem prover is two-phased, the two phases including instantiating facts by a matcher about machine operations tha
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- "GNU Superoptimizer" Proceedings of ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), (1992).
- Arbib, Michael A. "The Handbook of Brain Theory and Neural Networks", pp. 17-25, 79-85, 711-715, First MIT Press, 1995, ISBN 0262011484.
- Chromsky, Noam "Three Models for the Description of Language", pp. 113-124, MIT, Reprint from IRE Trans. Inform. Theory, IT-2, No. 3, 1956.
- Cleaveland, R., et al., "A Front End Generator for Verification Tools", Tools and Algorithms for the Constrauction and Analaysis of Systems, pp. 153-173, TACAS '95 Denmark Conference, May 1995, Springer-Verlag ISBN 354060630.
- Detlefs, David "An Overview of the Extended Static Checking System", Nov. 1995, http://www.src.dec.com/SRC/personal/David<SUB>-</SUB>Detlefs/home.html.