seal5.transform.infer_types.visitor
A transformation module for simplifying M2-ISA-R behavior expressions. The following simplifications are done:
Resolvable
m2isar.metamodel.arch.Constants are replaced by m2isar.metamodel.arch.IntLiteral s representing their valueFully resolvable arithmetic operations are carried out and their results represented as a matching
m2isar.metamodel.arch.IntLiteralConditions and loops with fully resolvable conditions are either discarded entirely or transformed into code blocks without any conditions
Ternaries with fully resolvable conditions are transformed into only the matching part
Type conversions of
m2isar.metamodel.arch.IntLiterals apply the desired type directly to theIntLiteraland discard the type conversion
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|