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 6576044 commit 0174050Copy full SHA for 0174050
src/solvers/refinement/string_refinement_util.cpp
@@ -413,10 +413,15 @@ void string_dependenciest::for_each_dependency(
413
stack.emplace_back(if_expr->true_case());
414
stack.emplace_back(if_expr->false_case());
415
}
416
- else if(const auto string_node = node_at(to_array_string_expr(current)))
417
- f(*string_node);
418
else
419
- UNREACHABLE;
+ {
+ const auto string_node = node_at(to_array_string_expr(current));
+ INVARIANT(
420
+ string_node,
421
+ "dependencies of the node should have been added to the graph at node creation "
422
+ + current.get().pretty());
423
+ f(*string_node);
424
+ }
425
426
427
0 commit comments