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 209a971 commit cd7c470Copy full SHA for cd7c470
src/solvers/refinement/string_refinement_util.h
@@ -251,6 +251,23 @@ class string_dependenciest
251
: kind(STRING), index(string_node.index)
252
{
253
}
254
+
255
+ bool operator==(const nodet &n) const
256
+ {
257
+ return n.kind == kind && n.index == index;
258
+ }
259
+ };
260
261
+ /// Hash function for nodes
262
+ // NOLINTNEXTLINE(readability/identifiers)
263
+ struct node_hash
264
265
+ size_t
266
+ operator()(const string_dependenciest::nodet &node) const optional_noexcept
267
268
+ return 2 * node.index +
269
+ (node.kind == string_dependenciest::nodet::STRING ? 0 : 1);
270
271
};
272
273
mutable std::vector<optionalt<exprt>> eval_string_cache;
0 commit comments