Method and apparatus for enforcing safety properties of computer programs by generating and solving constraints
Abstract
A method and apparatus is disclosed herein for generating and solving constraints. In one embodiment, the method comprises modifying program code by inserting one or more dynamic annotations having unsolved variables, generating one or more constraints based on the one or more dynamic annotations using a verifier, solving the one or more generated constraints; and modifying the program code by inserting a dynamic annotation in place of an annotation containing an unsolved variable.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 9.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method comprising: modifying program code by inserting one or more dynamic annotations having unsolved variables, the unsolved variables being in the form of arguments of the dynamic annotations; generating one or more constraints on the unsolved variables based on the one or more dynamic annotations using a verifier, the generated constraints relating the unsolved variables to program variables; statically solving the one or more generated constraints in terms of variables of the program code to determine values for the unsolved variables; and modifying the program code by inserting a dynam
- Claim 2Depends on #1
The method defined in claim 1 wherein modifying the program code
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (5)
- Aho, A., et al., "Foundations of Computer Science" (C Edition). W. H. Freeman, 1995.
- Cormac Flanagan, K. Rustan M. Leino, Mark Lillbridge, Greg Nelson, James B. Saxe, Raymie Stata; Extended static checking for Java; Proceedings of the ACM SIGPLAN 2002 PLDI; Jun. 17-19, 2002; pp. 234-245.
- Crary K., et al. "Resource bound certification"., Conference record of Popl '00: the 27th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. Jan. 2000.
- Czajkowski G., et al "JRes: a resource accounting interface for Java", Proceeding of the ACM OOPSLA Conference. Oct. 1998.
- David Evans; Static Detection of Dynamic Memory Errors; ACM SIGPLAN Notices; vol. 21, issue 5 (May 1996); pp. 44-53.