Publication | Closed Access
Checking object invariants
22
Citations
2
References
1997
Year
Software MaintenanceProgram CheckingEngineeringVerificationComputer-aided VerificationSoftware EngineeringInstance VariablesObject OrientationModel VerificationObject InvariantsSoftware AnalysisFormal VerificationEquivalence CheckingStatic CheckingProgramming LanguagesMachine VisionStatic AnalysisComputer ScienceStatic Program AnalysisSoftware DesignAutomated ReasoningProgram AnalysisSoftware TestingFormal MethodsObject-oriented ProgrammingModular Checking
When writing computer programs, programmers make assumptions about the relations among variables. In object-oriented programs, these assumptions include relations among the instance variables of a single object, relations often referred to as object invariants. It is a good idea to explicitly annotate a program with these assumptions. Then, a static program-analysis tool can inspect the annotated program to check that routines preserve object invariants. This paper considers two issues that affect what object invariants a program analysis tool can check: object construction and modular checking. The paper suggests some programming idioms and program annotations that widen the range of object invariants that a static program checker can check. The paper also suggests a simple extension to the Java programming language that makes the language more amenable to object-
| Year | Citations | |
|---|---|---|
Page 1
Page 1