コード例 #1
0
  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;
       }
     }
   }
 }
コード例 #5
0
  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;
  }