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 ee28415 commit 6df6405Copy full SHA for 6df6405
src/solvers/refinement/string_refinement_util.h
@@ -251,6 +251,22 @@ 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 operator()(const string_dependenciest::nodet &node) const noexcept
266
267
+ return 2 * node.index +
268
+ (node.kind == string_dependenciest::nodet::STRING ? 0 : 1);
269
270
};
271
272
mutable std::vector<optionalt<exprt>> eval_string_cache;
0 commit comments