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

issue#70
Houtan Bastani 2019-03-05 15:20:32 +01:00
parent 7c9f272e15
commit 68850536e6
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 6 additions and 0 deletions

View File

@ -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)
{