// $Id: CondOpExpr.java,v 1.1.1.1 1999/12/05 22:19:51 mpp Exp $

package IR2;

public abstract class CondOpExpr extends BinaryOpExpr {
  public CondOpExpr(RValue a1, RValue a2) throws SemanticTypeException {
	super(a1, a2);
	if (a1 != null && a1.get_type() != Typed.BOOLEAN || 
	    a2 != null && a2.get_type() != Typed.BOOLEAN)
	  throw new SemanticTypeException("non-boolean type passed to binary boolean operation");
  }

  public int get_type() { return Typed.BOOLEAN; }
}
