abs-haskell-formal-0.0.1: Translating ABS to Haskell to prove correctness & resource consumption

Safe HaskellNone
LanguageHaskell98

Eval

Description

Contains the single-step evaluator/interpreter of ABS terms (from AST)

Synopsis

Documentation

eval Source

Arguments

:: ObjRef

the object to execute

-> Heap

inside a heap

-> Int

the fixed number of possible attributes

-> IO (Stmt, [ObjRef], Heap)

(executed-statement,objects-to-be-(re)scheduled,new-heap)

eval takes an object and a heap and executes the 1st only statement of the 1st process of that object. Returns the executed statement, max 2 objects to reschedule, and a new heap