Inferring object invariant method and system
Abstract
A local analysis analyzes the values of objects paying attention to program flow and a global analysis analyses the object independent of the flow. The local and global analysis interact to infer the invariants of objects used within a computer program. The local analysis is given the known invariants of an object by the global analysis when the object transitions from a valid to a mutable state. It then keeps track of all of the values of objects encountered until the object transitions from mutable to a valid state, when the information known to the local analysis is passed to the global analysis, which may use the new object values to add to the current list of invariants for the given object.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 34 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for determining invariants within an object oriented program in a computer, comprising: at least partially running a local analysis of the program wherein the local analysis notes at least one local value of at least one object field of an object within the program at at least one program point wherein the state of the object is either mutable or valid; at least partially running a global analysis of the program, wherein the global analysis stores invariants in a global analysis invariant storage which the at least one object field has held by the local analysis w
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (34)
Non-Patent Literature (5)
- "Fugue - Protocol Checking for .NET Code," downloaded from the World Wide Web on Aug. 9, 2005, 1 page.
- "Vault - A Programming Language for Reliable Systems," printouts of pages from the World Wide Web, downloaded on Aug. 9, 2005, 47 pages.
- Abrahám-Mumm et al., "Verification for Java's Reentrant Multithreading Concept," in Foundations of Software Science and Computation Structures, 5th International Conference, FoSSaCS 2002, vol. 2303 of Lecture Notes in Computer Science, pp. 5-20, Springer (Apr. 2002)16 pages.
- Bachmair et al., "Abstract Congruence Closure and Specializations," Conference on Automated Deduction, Cade 2000, vol. 1831, pp. 64-78 (Jun. 2000) 15 pages.
- Barnett et al., "Friends Need a Bit More: Maintaining Invariants Over Shared State," Mathematics of Program Construction 2004, Feb. 6, 2004.