Packages

c

edu.cmu.cs.ls.keymaerax.codegen

FormulaTermGenerator

abstract class FormulaTermGenerator extends CodeGenerator

Generates formula and term evaluation code. termContainer configures the location where primitive terms are looked up (e.g., structs, classes).

Linear Supertypes
CodeGenerator, (Expression) ⇒ (String, String), AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormulaTermGenerator
  2. CodeGenerator
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FormulaTermGenerator(termContainer: (Expression) ⇒ String, defs: Declaration)

Abstract Value Members

  1. abstract def apply(expr: Expression, stateVars: Set[BaseVariable], inputVars: Set[BaseVariable], modelName: String): (String, String)

    Translate expression expr into code.

    Translate expression expr into code. Symbols in stateVars are treated as mutable states, all others are constant parameters. inputVars is a subset of stateVars whose value is nondeterministically chosen in the original program. The model name modelName is added to the file header comment.

    Definition Classes
    CodeGenerator
  2. abstract def nameIdentifier(s: NamedSymbol): String

    Identifier corresponding to a NamedSymbol

    Identifier corresponding to a NamedSymbol

    Attributes
    protected
  3. abstract def printSort(s: Sort): String

    Prints the sort s.

    Prints the sort s.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: ((String, String)) ⇒ A): (Expression) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(expr: Expression, stateVars: Set[BaseVariable], inputVars: Set[BaseVariable]): (String, String)

    Translate expression expr into code.

    Translate expression expr into code. Symbols in stateVars are treated as mutable states, all others are constant parameters. inputVars is a subset of stateVars whose value is nondeterministically chosen in the original program.

    Definition Classes
    CodeGenerator
  6. def apply(expr: Expression, stateVars: Set[BaseVariable]): (String, String)

    Translate expression expr into code.

    Translate expression expr into code. Symbols in stateVars are treated as mutable states, all others are constant parameters.

    Definition Classes
    CodeGenerator
  7. def apply(expr: Expression): (String, String)

    Translate expression expr into code.

    Translate expression expr into code. All symbols in expr are treated as constant parameters.

    Definition Classes
    CodeGenerator → Function1
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def compileFormula(f: Formula): CFormula

    Compile a formula to a C expression checking it (in the same arithmetic)

    Compile a formula to a C expression checking it (in the same arithmetic)

    Attributes
    protected
  11. def compilePower(base: Term, exp: Term): CTerm

    Compile exponentials

    Compile exponentials

    base

    base of the exponential

    exp

    index of the exponential

    returns

    simplified generation of exponential

    Attributes
    protected
  12. def compileTerm(t: Term): CTerm

    Compile a term to an expression evaluating it (in the same arithmetic).

    Compile a term to an expression evaluating it (in the same arithmetic).

    Attributes
    protected
  13. def compose[A](g: (A) ⇒ Expression): (A) ⇒ (String, String)
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from CodeGenerator

Inherited from (Expression) ⇒ (String, String)

Inherited from AnyRef

Inherited from Any

Ungrouped