stop processing if we substitute a unary op with a lead. closes #20

parent 7c9f272e
Pipeline #939 passed with stage
in 1 minute and 28 seconds
......@@ -3489,6 +3489,12 @@ UnaryOpNode::substituteUnaryOpNodes(DataTree &static_datatree, diff_table_t &nod
if (it == nodes.end())
return buildSimilarUnaryOpNode(argsubst, datatree);
if (arg->maxLead() > 0)
{
cerr << "Cannot substitue unary operations that contain leads" << endl;
exit(EXIT_FAILURE);
}
string unary_op = "";
switch (op_code)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment