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

package IR2;

public abstract class ArithOpExpr extends BinaryOpExpr {
  public ArithOpExpr(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.INT; }
}
