protected void h() {
    int i0 = 15 - Container.b((IInventory) this);
    float f0 = 0.98F + (float) i0 * 0.001F;

    this.x *= (double) f0;
    this.y *= 0.0D;
    this.z *= (double) f0;
  }
예제 #2
0
 /** In this case the read should be scheduled in the first block. */
 public static int testSplit1Snippet(int a) {
   try {
     return container.a;
   } finally {
     if (a < 0) {
       container.a = 15;
     } else {
       container.b = 15;
     }
   }
 }
예제 #3
0
 /** Here the read should float to the end. */
 public static int testSplit2Snippet(int a) {
   try {
     return container.a;
   } finally {
     if (a < 0) {
       container.c = 15;
     } else {
       container.b = 15;
     }
     container.obj = null;
   }
 }
예제 #4
0
 /** Here the read should float to the end. */
 public static int testLoop2Snippet(int a, int b) {
   try {
     return container.a;
   } finally {
     for (int i = 0; i < a; i++) {
       if (b < 0) {
         container.b = 10;
       } else {
         container.c = 15;
       }
     }
   }
 }
  public void b() {
    super.b();

    for (int i = 0; i < this.listeners.size(); ++i) {
      ICrafting icrafting = (ICrafting) this.listeners.get(i);

      if (this.g != this.brewingStand.getProperty(0)) {
        icrafting.setContainerData(this, 0, this.brewingStand.getProperty(0));
      }
    }

    this.g = this.brewingStand.getProperty(0);
  }
예제 #6
0
 /** Here the read should not float to the end. */
 public static int testLoop8Snippet(int a, int b) {
   int result = container.a;
   for (int i = 0; i < a; i++) {
     if (b < 0) {
       container.b = 10;
       break;
     } else {
       for (int j = 0; j < b; j++) {
         container.a = 0;
       }
     }
   }
   GraalDirectives.controlFlowAnchor();
   return result;
 }
예제 #7
0
  public static int testAntiDependencySnippet(int a) {
    /*
     * This read must not be scheduled after the following write.
     */
    int res = container.a;
    container.a = 10;

    /*
     * Add some more basic blocks.
     */
    if (a < 0) {
      container.b = 20;
    }
    container.c = 30;
    return res;
  }