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

package IR2;

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

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