Go to the documentation of this file.
27 for(
const auto &sub_irep : irep.
get_sub())
78 #if NAMED_SUB_IS_FORWARD_LIST
79 irept::named_subt::iterator before = named_sub.before_begin();
85 #if NAMED_SUB_IS_FORWARD_LIST
97 #if NAMED_SUB_IS_FORWARD_LIST
110 return irept(std::move(
id), std::move(named_sub), std::move(sub));
139 unsigned char value=u&0x7f;
148 out.put(value | 0x80);
159 unsigned shift_distance=0;
163 if(shift_distance >=
sizeof(res) * CHAR_BIT)
166 unsigned char ch=
static_cast<unsigned char>(in.get());
167 res|=(size_t(ch&0x7f))<<shift_distance;
184 for(std::string::const_iterator it=s.begin();
188 if(*it==0 || *it==
'\\')
204 while((c=
static_cast<char>(in.get()))!=0)
250 std::pair<bool, irep_idt>(
false,
irep_idt()));
256 std::pair<bool, irep_idt>(
true, s);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
irep_idt read_gb_string(std::istream &)
reads a string from the stream
std::vector< char > read_buffer
Thrown when failing to deserialize a value from some low level format, like JSON or raw bytes.
ireps_on_readt ireps_on_read
const irept & reference_convert(std::istream &)
static std::size_t read_gb_word(std::istream &)
Interpret a stream of byte as a 7-bit encoded unsigned number.
typename dt::named_subt named_subt
irept read_irep(std::istream &)
const std::string & id2string(const irep_idt &d)
named_subt & get_named_sub()
void write_gb_string(std::ostream &out, const std::string &s)
outputs the string and then a zero byte.
ireps_on_writet ireps_on_write
void write_irep(std::ostream &, const irept &irep)
void write_gb_word(std::ostream &out, std::size_t u)
Write 7 bits of u each time, least-significant byte first, until we have zero.
const irep_idt & id() const
irep_full_hash_containert irep_full_hash_container
dstring_hash irep_id_hash
std::size_t number(const irept &irep)
string_rev_mapt string_rev_map
irep_idt read_string_ref(std::istream &)
Read a string reference from the stream.
There are a large number of kinds of tree structured or tree-like data in CPROVER.
const irept & get_nil_irep()
ireps_containert & ireps_container
void write_string_ref(std::ostream &, const irep_idt &)
Output a string and maintain a reference to it.