lenaRB / crml-compiler

Implementation of the CRML to Modelica compiler supported by the ITEA3 EMBRACE project.
6 stars 7 forks source link

Bug in code generation for BooleanAccumulation.crml file #12

Closed audrey-jardin closed 1 year ago

audrey-jardin commented 1 year ago

Modelica code generated for the spec-doc-examples\BooleanAccumulation.crml file needs to be fixed. BooleanAccumulation.zip

audrey-jardin commented 1 year ago

Note: BooleanAccumulation is using the new syntax "_type _variable_name is external;" which could be not supported yet but the generated code for b_accumulationvariable looks however strange (equation "b_accumulation = b1 +b2" is missing).

audrey-jardin commented 1 year ago

New version of the example (by replacing external with concrete input values) now simulates and gives correct results. @lenaRB