Packages

  • package root
    Definition Classes
    root
  • package be
    Definition Classes
    root
  • package opimedia
    Definition Classes
    be
  • package scala_par_am
    Definition Classes
    opimedia
  • class SeqAAM[Exp, Abs, Addr, Time] extends EvalKontMachine[Exp, Abs, Addr, Time]

    SeqAAM: Sequential AAM (with list)

    SeqAAM: Sequential AAM (with list)

    This is a reimplementation of the AAM class of Scala-AM written by Quentin Stiévenart. A fork of the original version of Scala-AM used is available here: https://bitbucket.org/OPiMedia/scala-am. The subsumption part has been removed. So this class corresponds in fact to the AAMNS (AAM No Subsumption) class of Scala-AM in this copy repository.

    Compared to AAMNS of Scala-AM this class used Set Scala native data structures instead to specific WorkList and VisitedSet. The recursive loop has been replaced by a for loop.

    The worklist is implemented by an immutable list of states.

    This sequential machine (or the SeqAAMS and SeqAAMLS alternative) is the comparison point for the different version of parallel machines implemented in Scala-Par-AM.

    The original description by Quentin Stiévenart: Implementation of a CESK machine following the AAM approach (Van Horn, David, and Matthew Might. "Abstracting abstract machines." ACM Sigplan Notices. Vol. 45. No. 9. ACM, 2010).

    A difference with the paper is that we separate the continuation store (KontStore) from the value store (Store). That simplifies the implementation of both stores, and the only change it induces is that we are not able to support first-class continuation as easily (we don't support them at all, but they could be added).

    Also, in the paper, a CESK state is made of 4 components: Control, Environment, Store, and Kontinuation. Here, we include the environment in the control component, and we distinguish "eval" states from "continuation" states. An eval state has an attached environment, as an expression needs to be evaluated within this environment, whereas a continuation state only contains the value reached.

    Source https://bitbucket.org/OPiMedia/scala-par-am/src/master/scala-par-am/src/main/scala/machine/SeqAAM.scala

    Definition Classes
    scala_par_am
  • AbstractMachineStats
  • AbstractMachineStatsDisabledTrait
  • AbstractMachineStatsEnabledTrait
  • Control
  • ControlError
  • ControlEval
  • ControlKont
  • KontAddr
  • Output
  • SeqAAMOutput
  • SeqAAMStats
  • SeqAAMStatsDisabled
  • SeqAAMStatsEnabled
  • State

case class SeqAAMOutput(halted: Set[State], numberOfStates: Int, time: Double, graphOption: Option[Graph[State]], timedOut: Boolean, stats: SeqAAM.AbstractMachineStats) extends Output with Product with Serializable

The output of the abstract machine.

Attributes
protected
Linear Supertypes
Serializable, Serializable, Product, Equals, SeqAAM.Output, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SeqAAMOutput
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Output
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SeqAAMOutput(halted: Set[State], numberOfStates: Int, time: Double, graphOption: Option[Graph[State]], timedOut: Boolean, stats: SeqAAM.AbstractMachineStats)

Value Members

  1. def compareToReference(optionReference: Option[SeqAAM.Output]): (Option[SeqAAM.Output], String)

    If optionReference is Some() then compare this output with it value and return (optionReference, separated semi-colon list of possible errors), else return (this output, "")

    If optionReference is Some() then compare this output with it value and return (optionReference, separated semi-colon list of possible errors), else return (this output, "")

    Definition Classes
    Output
  2. def errorValues: List[SemanticError]

    Return error values (ordered by string representation)

    Return error values (ordered by string representation)

    Definition Classes
    SeqAAMOutputOutput
  3. def finalValues: List[Abs]

    Return final values in "forced" total order (to have a deterministic return "corresponding" to the real partial order)

    Return final values in "forced" total order (to have a deterministic return "corresponding" to the real partial order)

    Definition Classes
    SeqAAMOutputOutput
  4. def graphInfo: Option[GraphInfo]

    Returns information about the final graph (if it computed).

    Returns information about the final graph (if it computed).

    Definition Classes
    SeqAAMOutputOutput
  5. val graphOption: Option[Graph[State]]
  6. val halted: Set[State]
  7. def machineStats: SeqAAM.AbstractMachineStats

    Returns the stats keep on the evaluation (if it computed).

    Returns the stats keep on the evaluation (if it computed).

    Definition Classes
    SeqAAMOutputOutput
  8. def nbErrorState: Int

    Return number of error states

    Return number of error states

    Definition Classes
    SeqAAMOutputOutput
  9. def nbFinalState: Int

    Return number of final states

    Return number of final states

    Definition Classes
    SeqAAMOutputOutput
  10. val numberOfStates: Int

    Returns the number of states visited to evaluate the program.

    Returns the number of states visited to evaluate the program.

    Definition Classes
    SeqAAMOutputOutput
  11. val stats: SeqAAM.AbstractMachineStats
  12. def statsToTsv(escaped: Boolean): String

    Returns a TSV representation of the stats, used to print results

    Returns a TSV representation of the stats, used to print results

    Definition Classes
    Output
  13. val time: Double

    Returns the time it took to evaluate the program.

    Returns the time it took to evaluate the program.

    Definition Classes
    SeqAAMOutputOutput
  14. val timedOut: Boolean

    Does this output comes from a computation that timed out?

    Does this output comes from a computation that timed out?

    Definition Classes
    SeqAAMOutputOutput
  15. def toFile(path: String)(config: Option[MachineConfig], output: GraphOutput): Unit

    Outputs the graph computed by the machine in a file, according to the given output format.

    Outputs the graph computed by the machine in a file, according to the given output format.

    Definition Classes
    SeqAAMOutputOutput
  16. def toTsv(includeValues: Boolean, afterValues: List[String]): String

    Returns a TSV representation, used to print results

    Returns a TSV representation, used to print results

    Definition Classes
    Output