class AllocAndContext {

  public final AllocNode alloc;

  public final ImmutableStack<Integer> context;

  public AllocAndContext(AllocNode alloc, ImmutableStack<Integer> context) {
    this.alloc = alloc;
    this.context = context;
  }

  public String toString() {
    return alloc + ", context " + context;
  }

  public int hashCode() {
    final int PRIME = 31;
    int result = 1;
    result = PRIME * result + alloc.hashCode();
    result = PRIME * result + context.hashCode();
    return result;
  }

  public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}
}

    if (this == obj) {
      return true;
    }
    if ((obj == null) || (getClass() != obj.getClass())) {
      return false;
    }
    final AllocAndContext other = (AllocAndContext) obj;
    if (!alloc.equals(other.alloc) || !context.equals(other.context)) {
      return false;
    }
    return true;
  
<no_super_class>