Scope Logic: Extending Hoare Logic for Pointer Program Verification

Computer Science – Logic in Computer Science

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Scientific paper

This paper presents an extension to Hoare logic for pointer program verification. First, the Logic for Partial Function (LPF) used by VDM is extended to specify memory access using pointers and memory layout of composite types. Then, the concepts of data-retrieve functions (DRF) and memory-scope functions (MSF) are introduced in this paper. People can define DRFs to retrieve abstract values from interconnected concrete data objects. The definition of the corresponding MSF of a DRF can be derived syntactically from the definition of the DRF. This MSF computes the set of memory units accessed when the DRF retrieves an abstract value. This memory unit set is called the memory scope of the abstract value. Finally, the proof rule of assignment statements in Hoare's logic is modified to deal with pointers. The basic idea is that a virtual value keeps unmodified as long as no memory unit in its scope is over-written. Another proof rule is added for memory allocation statements. The consequence rule and the rules for control-flow statements are slightly modified. They are essentially same as their original version in Hoare logic. An example is presented to show the efficacy of this logic. We also give some heuristics on how to verify pointer programs.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Scope Logic: Extending Hoare Logic for Pointer Program Verification does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Scope Logic: Extending Hoare Logic for Pointer Program Verification, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Scope Logic: Extending Hoare Logic for Pointer Program Verification will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-302694

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.