Exemplo n.º 1
0
  /*@ helper @*/
  public static Boolean inv_R1(final project.Entrytypes.R2 _r2) {
    Object obj_2 = _r2.t3;
    project.Entrytypes.R4 apply_6 = null;

    if (obj_2 instanceof project.Entrytypes.R3) {
      apply_6 = Utils.copy(((project.Entrytypes.R3) obj_2).r4);
    } else {
      throw new RuntimeException("Missing member: r4");
    }

    return !(Utils.equals(apply_6.x, 1L));
  }
  public static BlankSpaceQuote getInstance() {
    if (Utils.equals(instance, null)) {
      instance = new BlankSpaceQuote();
    }

    return instance;
  }
Exemplo n.º 3
0
  /*@ pure @*/
  public boolean equals(final Object obj) {
    if (!(obj instanceof project.Entrytypes.R1)) {
      return false;
    }

    project.Entrytypes.R1 other = ((project.Entrytypes.R1) obj);

    return Utils.equals(r2, other.r2);
  }
Exemplo n.º 4
0
 protected void assertEqual(final Object expected, final Object actual) {
   if (!(Utils.equals(expected, actual))) {
     IO.print("Valor atingido (");
     IO.print(((Object) actual));
     IO.print(") diferente do esperado (");
     IO.print(((Object) expected));
     IO.println(")");
   } else {
     IO.print("Valor atingido (");
     IO.print(((Object) actual));
     IO.print(") corresponde ao esperado (");
     IO.print(((Object) expected));
     IO.println(")");
   }
 }
Exemplo n.º 5
0
  /*@ helper @*/
  public static Boolean inv_Entry_T3(final Object check_t3) {
    if ((Utils.equals(check_t3, null))
        || !(Utils.is_(check_t3, project.Entrytypes.R3.class)
            || Utils.is_(check_t3, project.Entrytypes.X.class))) {
      return false;
    }

    Object t3 = ((Object) check_t3);

    Boolean andResult_1 = false;

    Boolean orResult_1 = false;

    if (!(Utils.is_(t3, project.Entrytypes.R3.class))) {
      orResult_1 = true;
    } else {
      project.Entrytypes.R4 apply_9 = null;

      if (t3 instanceof project.Entrytypes.R3) {
        apply_9 = ((project.Entrytypes.R3) t3).get_r4();
      } else {
        throw new RuntimeException("Missing member: r4");
      }

      orResult_1 = !(Utils.equals(apply_9.get_x(), 10L));
    }

    if (orResult_1) {
      Boolean orResult_2 = false;

      if (!(Utils.is_(t3, project.Entrytypes.X.class))) {
        orResult_2 = true;
      } else {
        Boolean apply_10 = null;

        if (t3 instanceof project.Entrytypes.X) {
          apply_10 = ((project.Entrytypes.X) t3).get_b();
        } else {
          throw new RuntimeException("Missing member: b");
        }

        orResult_2 = apply_10;
      }

      if (orResult_2) {
        andResult_1 = true;
      }
    }

    return andResult_1;
  }
Exemplo n.º 6
0
 /*@ pure @*/
 public String toString() {
   return "mk_Entry`R1" + Utils.formatFields(r2);
 }
Exemplo n.º 7
0
 /*@ pure @*/
 public int hashCode() {
   return Utils.hashCode(r2);
 }
Exemplo n.º 8
0
 // @ public instance invariant project.Entry.invChecksOn ==> inv_R1(r2);
 public R1(final project.Entrytypes.R2 _r2) {
   r2 = (_r2 != null) ? Utils.copy(_r2) : null;
 }
 public BlankSpaceQuote() {
   if (Utils.equals(hc, 0)) {
     hc = super.hashCode();
   }
 }