Skip to content

Commit 8a362bf

Browse files
author
x02lucpo
committed
redone the If...then...else to ...?...:... (c++)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1350 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 4974333 commit 8a362bf

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

modeq/tornado.rml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,6 @@ relation generate_compute_methods: (string,DAELow.DAELow,Absyn.Program) => strin
453453

454454
translate_dae(dae) => dae' &
455455

456-
Debug.fprint("bltdump", "++++++++++++++++++++++++++++++++++blt_states\n") &
457-
Debug.fcall("bltdump", DAELow.dump_components, blt_states) &
458-
Debug.fprint("bltdump", "++++++++++++++++++++++++++++blt_no_states\n") &
459-
Debug.fcall("bltdump", DAELow.dump_components, blt_no_states) &
460-
461-
462-
463456
generate_compute_output(cname,dae',p,ass1,ass2,blt_no_states) => coutput &
464457
generate_compute_initial(cname,dae',p) => cinitial &
465458
generate_compute_state(cname,dae',p,ass1,ass2,blt_states) => cstate &
@@ -951,7 +944,7 @@ relation build_assignment: (Exp.ComponentRef, (* varname *)
951944
print_exp_cpp_str(exp) => exp_str &
952945
(*Exp.print_exp_str(exp) => exp_str & *)
953946
Util.string_append_list([" ",cr_str, " = ", exp_str, ";\n"]) => eqn_str &
954-
print "\n build_assigment: " & print(eqn_str)
947+
print "\n build_assigment: " & print(eqn_str) & print("-------------------------\n")
955948
--------------------------------
956949
build_assignment(cr,exp,origname) => eqn_str
957950

@@ -980,7 +973,7 @@ end
980973

981974
relation print_exp2_str : (Exp.Exp,int) => string =
982975

983-
axiom print_exp2_str(END,_) => "end"
976+
axiom print_exp2_str(Exp.END,_) => "end"
984977

985978
rule int_string(x) => s
986979
----------------------------

0 commit comments

Comments
 (0)