void xml_symbol_convertt::convert(const symbolt& sym, xmlt &root) { xmlt &xmlsym = root.new_element("symbol"); irepcache.push_back(irept()); sym.to_irep(irepcache.back()); irepconverter.reference_convert(irepcache.back(), xmlsym); }
void symbol_serializationt::convert(const symbolt& sym, std::ostream &out) { irepcache.push_back(irept()); sym.to_irep(irepcache.back()); irepconverter.reference_convert(irepcache.back(), out); }