#include <metal_stdlib>
using namespace metal;

void f() {
  {
    int i0520 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i62 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i0520 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i62 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i62 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i60 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i62 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
  {
    int i60 = 0;
    while(true) {
      if (false) {
      } else {
        break;
      }
      {
      }
      continue;
    }
  }
}
