#include <metal_stdlib>

using namespace metal;
kernel void tint_symbol() {
  int i = 0;
  for(int i_1 = 0; (i_1 < 2); i_1 = as_type<int>((as_type<uint>(i_1) + as_type<uint>(1)))) {
    switch(i_1) {
      case 0: {
        continue;
        break;
      }
      default: {
        break;
      }
    }
    switch(i_1) {
      case 0: {
        continue;
        break;
      }
      default: {
        break;
      }
    }
  }
  return;
}

