Changes between Version 3 and Version 4 of The MiniMP Intermediate Representation


Ignore:
Timestamp:
01/08/10 16:34:04 (16 years ago)
Author:
zirkel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • The MiniMP Intermediate Representation

    v3 v4  
    44== Processes ==
    55Processes are numbered 0,1,...,n-1, where n is the number of processes.  The number n is fixed when the model is created and can never change.  The unique number associated to a process is known as the process's "pid."
     6
     7Each process contains a number of process variables, and a number of functions.  One of the functions is designated the "main" function (though that function's name does not have to be "main").  In particular, every process must contain at least one function.
    68== Variables ==
    79 * !BoundVariable
     
    4244 * !SendStatement
    4345== Functions ==
     46A function specifies a number of formal parameters, or "formal variables."  In addition, it specifies a number of "proper local variables."  All of these (formal and proper locals) are referred to as "local variables."  The local variables can only be accessed within the function body.
     47
     48The function body itself is a transition system.  The function contains a set of locations and a set of statements.  These define a directed graph in which the locations are nodes and the statements are edges.  A function has a designated "start location," and thus every function must have at least one location.