Skip to content

Commit be5f194

Browse files
Add double quotes to output_dot
1 parent 4b342f7 commit be5f194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solvers/refinement/string_refinement_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ void string_dependenciest::output_dot(std::ostream &stream) const
398398
const auto node_to_string = [&](const nodet &n) { // NOLINT
399399
std::stringstream ostream;
400400
if(n.kind == nodet::BUILTIN)
401-
ostream << builtin_function_nodes[n.index].data->name() << n.index;
401+
ostream << '"' << builtin_function_nodes[n.index].data->name() << '_'
402+
<< n.index << '"';
402403
else
403404
ostream << '"' << format(string_nodes[n.index].expr) << '"';
404405
return ostream.str();

0 commit comments

Comments
 (0)