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 611cba2 commit d0da778Copy full SHA for d0da778
src/goto-programs/graphml_witness.cpp
@@ -66,7 +66,21 @@ std::string graphml_witnesst::convert_assign_rec(
66
{
67
std::string result;
68
69
- if(assign.rhs().id()==ID_array)
+ if(assign.rhs().id() == ID_array_list)
70
+ {
71
+ const array_list_exprt &array_list = to_array_list_expr(assign.rhs());
72
+ const auto &ops = array_list.operands();
73
+
74
+ for(std::size_t listidx = 0; listidx != ops.size(); listidx += 2)
75
76
+ const index_exprt index{assign.lhs(), ops[listidx]};
77
+ if(!result.empty())
78
+ result += ' ';
79
+ result +=
80
+ convert_assign_rec(identifier, code_assignt{index, ops[listidx + 1]});
81
+ }
82
83
+ else if(assign.rhs().id() == ID_array)
84
85
const array_typet &type = to_array_type(assign.rhs().type());
86
0 commit comments