ConditionalExpression m2 = bbo1.getExpression();
if(igc.getTrueTarget(bbo2) == bbo1) {
if(igc.getFalseTarget(bbo1) == igc.getFalseTarget(bbo2)) {
LogicalGateConditionalExpression expression = new LogicalGateConditionalExpression(m1, m2, LogicalGateType.AND);
bbo1.setExpression(expression);
}
else if(igc.getFalseTarget(bbo2) == igc.getTrueTarget(bbo1)) {
m1.negate();
LogicalGateConditionalExpression expression = new LogicalGateConditionalExpression(m1, m2, LogicalGateType.OR);
bbo1.setExpression(expression);
}
else {
return;
}