Commit 6a5c1ea5 authored by John van Groningen's avatar John van Groningen
Browse files

fix bug in the reuse unique nodes optimisation

parent 9dd7ec91
......@@ -1960,9 +1960,16 @@ static Bool insert_unique_fill_node (NodeP node,FreeUniqueNodeIdsP *f_node_ids,i
# else
DetermineSizeOfState (node_id_p->nid_state,&e_a_size2,&e_b_size2);
# endif
if (e_a_size1!=e_a_size2 || e_b_size1!=e_b_size2 ||
((e_a_size1 | e_a_size2)!=0 && a_size1!=a_size2) ||
((e_b_size1 | e_b_size2)!=0 && b_size1+node_a_size!=b_size2+total_a_size2))
if (e_a_size1!=e_a_size2 ||
e_b_size1!=e_b_size2 ||
(e_a_size1!=0 && (a_size1!=a_size2 ||
((a_size1==1 || (a_size1==0 && e_a_size1>1)) &&
((node_size==2) != (total_a_size2+total_b_size2==2)))
)) ||
(e_b_size1!=0 && (b_size1+node_a_size!=b_size2+total_a_size2 ||
((b_size1+node_a_size==1 || (b_size1+node_a_size==0 && e_b_size1>1)) &&
((node_size==2) != (total_a_size2+total_b_size2==2)))
)))
{
argument_overwrite_bits|=1<<n;
} else {
......
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