1414#include " expr2smv.h"
1515#include " smv_parser.h"
1616#include " smv_typecheck.h"
17+ #include " smv_types.h"
1718
1819/* ******************************************************************\
1920
@@ -69,8 +70,9 @@ void smv_languaget::dependencies(
6970
7071 for (smv_parse_treet::mc_varst::const_iterator it=smv_module.vars .begin ();
7172 it!=smv_module.vars .end (); it++)
72- if (it->second .type .id ()==" submodule" )
73- module_set.insert (it->second .type .get_string (" identifier" ));
73+ if (it->second .type .id () == ID_smv_submodule)
74+ module_set.insert (
75+ id2string (to_smv_submodule_type (it->second .type ).identifier ()));
7476}
7577
7678/* ******************************************************************\
@@ -145,7 +147,7 @@ void smv_languaget::show_parse(std::ostream &out, message_handlert &)
145147
146148 for (smv_parse_treet::mc_varst::const_iterator it=module .vars .begin ();
147149 it!=module .vars .end (); it++)
148- if (it->second .type .id ()!= " submodule " )
150+ if (it->second .type .id () != ID_smv_submodule )
149151 {
150152 symbol_tablet symbol_table;
151153 namespacet ns{symbol_table};
@@ -160,7 +162,7 @@ void smv_languaget::show_parse(std::ostream &out, message_handlert &)
160162 for (smv_parse_treet::mc_varst::const_iterator
161163 it=module .vars .begin ();
162164 it!=module .vars .end (); it++)
163- if (it->second .type .id ()== " submodule " )
165+ if (it->second .type .id () == ID_smv_submodule )
164166 {
165167 symbol_tablet symbol_table;
166168 namespacet ns (symbol_table);
0 commit comments