Skip to content

Commit

Permalink
Graphviz generation help relation build_gr_strlist
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@626 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Nov 23, 2001
1 parent beb43a2 commit dfd3d04
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modeq/dae.rml
Expand Up @@ -64,6 +64,7 @@ module DAE:
relation is_parameter: Element => ()
relation is_comp: Element => ()
relation find_element: (Element list, Element => ()) => Element option
relation build_gr_strlist : ('a list, 'a => string, int) => (string list, 'a list)
end


Expand Down Expand Up @@ -607,27 +608,26 @@ relation build_gr_vars : Element list => Graphviz.Node list =

axiom build_gr_vars [] => []

rule build_gr_strlist (vars, build_gr_var_str, 10) => strlist
rule build_gr_strlist (vars, build_gr_var_str, 10) => (strlist,_)
---------------------------
build_gr_vars vars => [Graphviz.LNODE("VARS",strlist,[Graphviz.box],[])]

end

relation build_gr_strlist : ('a list, 'a => string, int) => (string list, 'a list) =

relation build_gr_strlist : (Element list, Element => string, int) => string list =

axiom build_gr_strlist ([], _, _) => []
axiom build_gr_strlist ([], _, _) => ([],[])

rule int_le (count, 0) => true
-------------------------------------
build_gr_strlist (var::rest, printer, count) => ["..."]
build_gr_strlist (ignored, printer, count) => (["..."], ignored)

rule int_gt (count, 0) => true &
int_sub (count, 1) => count' &
build_gr_strlist (rest, printer, count') => strlist &
build_gr_strlist (rest, printer, count') => (strlist, ignored) &
printer (var) => str
-------------------------------------
build_gr_strlist (var::rest, printer, count) => str::strlist
build_gr_strlist (var::rest, printer, count) => (str::strlist, ignored)

end

Expand Down

0 comments on commit dfd3d04

Please sign in to comment.