We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f8cd4 commit 3c61cf2Copy full SHA for 3c61cf2
src/solvers/refinement/string_refinement_util.h
@@ -263,6 +263,23 @@ class string_dependenciest
263
: kind(STRING), index(string_node.index)
264
{
265
}
266
+
267
+ bool operator==(const nodet &n) const
268
+ {
269
+ return n.kind == kind && n.index == index;
270
+ }
271
+ };
272
273
+ /// Hash function for nodes
274
+ // NOLINTNEXTLINE(readability/identifiers)
275
+ struct node_hash
276
277
+ size_t
278
+ operator()(const string_dependenciest::nodet &node) const optional_noexcept
279
280
+ return 2 * node.index +
281
+ (node.kind == string_dependenciest::nodet::STRING ? 0 : 1);
282
283
};
284
285
mutable std::vector<optionalt<exprt>> eval_string_cache;
0 commit comments