#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
#define GLX_RGBA_FLOAT_BIT_ARB 129
#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 128
const char *visual_render_type_name(int type) {
  switch (type) {
  case GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT:
    return "ufloat";
  case GLX_RGBA_FLOAT_BIT_ARB:
    return "float";
  case 0x00000001:
    return "rgba";
  case 0x00000002:
    return "ci";
  case 0x00000001 | 0x00000002:
    return "rgba|ci";
  default:
    return "";
  }
}


x86 assembly (clang, -O0):
<visual_render_type_name>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1,%eax
je     1183 <visual_render_type_name+0x83>
jmp    111b <visual_render_type_name+0x1b>
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
je     1193 <visual_render_type_name+0x93>
jmp    112c <visual_render_type_name+0x2c>
mov    -0x10(%rbp),%eax
sub    $0x3,%eax
je     11a3 <visual_render_type_name+0xa3>
jmp    113d <visual_render_type_name+0x3d>
mov    -0x10(%rbp),%eax
sub    $0x80,%eax
je     1163 <visual_render_type_name+0x63>
jmp    1150 <visual_render_type_name+0x50>
mov    -0x10(%rbp),%eax
sub    $0x81,%eax
je     1173 <visual_render_type_name+0x73>
jmp    11b3 <visual_render_type_name+0xb3>
lea    0xe96(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11be <visual_render_type_name+0xbe>
lea    0xe87(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11be <visual_render_type_name+0xbe>
lea    0xe7d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11be <visual_render_type_name+0xbe>
lea    0xe77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11be <visual_render_type_name+0xbe>
lea    0xe62(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11be <visual_render_type_name+0xbe>
lea    0xe51(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<visual_render_type_name>:
cmp    $0x2,%edi
jle    1122 <visual_render_type_name+0x22>
cmp    $0x3,%edi
je     1134 <visual_render_type_name+0x34>
cmp    $0x80,%edi
je     113c <visual_render_type_name+0x3c>
cmp    $0x81,%edi
jne    114c <visual_render_type_name+0x4c>
lea    0xee0(%rip),%rax
ret
cmp    $0x1,%edi
je     1144 <visual_render_type_name+0x44>
cmp    $0x2,%edi
jne    114c <visual_render_type_name+0x4c>
lea    0xede(%rip),%rax
ret
lea    0xed1(%rip),%rax
ret
lea    0xebd(%rip),%rax
ret
lea    0xebc(%rip),%rax
ret
lea    0xeb8(%rip),%rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"ufloat\00"
@.str.1 = [6 x i8] c"float\00"
@.str.2 = [5 x i8] c"rgba\00"
@.str.3 = [3 x i8] c"ci\00"
@.str.4 = [8 x i8] c"rgba|ci\00"
@.str.5 = [1 x i8] zeroinitializer
define i8* @visual_render_type_name(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %10 [
i32 128, label %5
i32 129, label %6
i32 1, label %7
i32 2, label %8
i32 3, label %9
]
5: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %2
br label %11
6: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %11
7: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %11
8: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %11
9: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %11
10: ; preds = %1
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %11
11: ; preds = %10, %9, %8, %7, %6, %5
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
@.str = [7 x i8] c"ufloat\00"
@.str.1 = [6 x i8] c"float\00"
@.str.2 = [5 x i8] c"rgba\00"
@.str.3 = [3 x i8] c"ci\00"
@.str.4 = [8 x i8] c"rgba|ci\00"
@.str.5 = [1 x i8] zeroinitializer
define i8* @visual_render_type_name(i32 %0) {
switch i32 %0, label %6 [
i32 128, label %7
i32 129, label %2
i32 1, label %3
i32 2, label %4
i32 3, label %5
]
2: ; preds = %1
br label %7
3: ; preds = %1
br label %7
4: ; preds = %1
br label %7
5: ; preds = %1
br label %7
6: ; preds = %1
br label %7
7: ; preds = %1, %6, %5, %4, %3, %2
%8 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %8
}