Skip to content

Commit

Permalink
Fixed the imports as there are intermediate results from function calls
Browse files Browse the repository at this point in the history
that require additional module imports. Please DO NOT TAKE THEM OUT.

Made the rml2mod translator run ~50% faster.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2245 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 24, 2006
1 parent 13ea309 commit af61583
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/Algorithm.rml
Expand Up @@ -122,8 +122,8 @@ with "Util.rml"
with "Print.rml"
with "Debug.rml"
with "Error.rml"
(* adrpo -- not used
with "Absyn.rml"
(* adrpo -- not used
with "Dump.rml"
*)

Expand Down
1 change: 1 addition & 0 deletions Compiler/DAE.rml
Expand Up @@ -216,6 +216,7 @@ with "Ceval.rml"
with "ModUtil.rml"
with "Debug.rml"
with "Error.rml"
with "SCode.rml"

(** relation: dump
**
Expand Down
1 change: 1 addition & 0 deletions Compiler/Main.rml
Expand Up @@ -76,6 +76,7 @@ with "TaskGraphExt.rml"
with "SimCodegen.rml"
with "ErrorExt.rml"
with "Error.rml"
with "Types.rml"
(* adrpo -- not used
with "ModUtil.rml"
with "Codegen.rml"
Expand Down
2 changes: 2 additions & 0 deletions Compiler/ModUtil.rml
Expand Up @@ -74,6 +74,8 @@ end

with "RTOpts.rml"
with "Util.rml"
with "Algorithm.rml"
with "Types.rml"
(* adrpo -- not used
with "Print.rml"
*)
Expand Down
2 changes: 2 additions & 0 deletions Compiler/SimCodegen.rml
Expand Up @@ -133,6 +133,8 @@ with "Dump.rml"
with "Inst.rml"
with "Error.rml"
with "Settings.rml"
with "Algorithm.rml"
with "Types.rml"

(** relation: generate_makefile
**
Expand Down
1 change: 1 addition & 0 deletions Compiler/VarTransform.rml
Expand Up @@ -106,6 +106,7 @@ with "System.rml"
with "Util.rml"
with "Algorithm.rml"
with "Debug.rml"
with "Absyn.rml"

(** relation: apply_replacements
**
Expand Down
6 changes: 5 additions & 1 deletion tools/rml2mod/rmltomod.rml
Expand Up @@ -1396,6 +1396,8 @@ end

relation is_function =

axiom is_function ("vars_size", _) => false

rule Dictionary.search(dict, mid) => SOME(Absyn.RMLDB_REL(_,_,_,_))
-----------------------------------------------------------------
is_function(mid,PDB(_, dict)) => true
Expand Down Expand Up @@ -1471,12 +1473,14 @@ relation transform_expression =
transform_expression(Absyn.RML_REFERENCE(id),pdb) =>
Absyn.CREF(cref)

(*
rule get_rml_id2(id) => mid &
is_variable(id, pdb) => true &
create_cref(mid) => cref
---------------------------
transform_expression(Absyn.RML_REFERENCE(id),pdb) =>
Absyn.CREF(cref)
Absyn.CREF(cref)
*)

rule get_rml_id2(id) => mid &
is_function(mid, pdb) => true &
Expand Down

0 comments on commit af61583

Please sign in to comment.