blob: 77289522138921279fa9f02d27530e39aba490ca [file] [log] [blame]
Antonio Maioranod6f6f002023-09-13 17:50:46 +00001#include <metal_stdlib>
2
3using namespace metal;
Ben Clayton9be037c2024-01-19 20:58:56 +00004
Ben Clayton02262d82024-01-23 18:09:39 +00005#define TINT_ISOLATE_UB(VOLATILE_NAME) \
6 volatile bool VOLATILE_NAME = true; \
7 if (VOLATILE_NAME)
Ben Clayton9be037c2024-01-19 20:58:56 +00008
Antonio Maioranod6f6f002023-09-13 17:50:46 +00009kernel void tint_symbol() {
10 int i = 0;
dan sinclair997bc012024-02-22 02:08:41 +000011 bool tint_continue = false;
Ben Clayton02262d82024-01-23 18:09:39 +000012 TINT_ISOLATE_UB(tint_volatile_true) for(int i_1 = 0; (i_1 < 2); i_1 = as_type<int>((as_type<uint>(i_1) + as_type<uint>(1)))) {
dan sinclair997bc012024-02-22 02:08:41 +000013 tint_continue = false;
Antonio Maioranod6f6f002023-09-13 17:50:46 +000014 switch(i_1) {
15 case 0: {
dan sinclair997bc012024-02-22 02:08:41 +000016 tint_continue = true;
Antonio Maioranod6f6f002023-09-13 17:50:46 +000017 break;
18 }
19 default: {
20 break;
21 }
22 }
dan sinclair997bc012024-02-22 02:08:41 +000023 if (tint_continue) {
24 continue;
25 }
Antonio Maioranod6f6f002023-09-13 17:50:46 +000026 switch(i_1) {
27 case 0: {
dan sinclair997bc012024-02-22 02:08:41 +000028 tint_continue = true;
Antonio Maioranod6f6f002023-09-13 17:50:46 +000029 break;
30 }
31 default: {
32 break;
33 }
34 }
dan sinclair997bc012024-02-22 02:08:41 +000035 if (tint_continue) {
36 continue;
37 }
Antonio Maioranod6f6f002023-09-13 17:50:46 +000038 }
39 return;
40}
41