next up previous
Next: Polaris Assertions and Up: Program Representation Previous: Restrictions on key

Statement list conventions

Every statement contains some basic information about it (which really lives in the Statement class). Specific types of Statements are specialized by deriving them from the Statement class. The Statement class contains the type of the statement, pointers to the lexically next and previous statements, the original line number, a pointer to the immediately outer loop (if any) in which this statement is found, the set of expressions read, the set of expressions written, the set of predecessor and successor statements, the assertions associated with the statement, etc.

The Polaris base keeps the next, prev, predecessors, successors, follow, lead, outer, in_refs, out_refs, and act_refs incrementally correct throughout the compilation process. Th only exception to this is for the in_refs, out_refs, and act_refs when using the assign/pull operations. After those are done, the user must re-build the _refs explicitly.



next up previous
Next: Polaris Assertions and Up: Program Representation Previous: Restrictions on key



Jay Hoeflinger
Mon Apr 21 11:52:18 CDT 1997