#include <metal_stdlib>

using namespace metal;
int f() {
  int i = 0;
  int j = 0;
  while (true) {
    __asm__("");
    if ((i > 4)) {
      return 1;
    }
    while (true) {
      __asm__("");
      if ((j > 4)) {
        return 2;
      }
      {
        j = as_type<int>((as_type<uint>(j) + as_type<uint>(1)));
      }
    }
    {
      i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
    }
  }
}

