#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 */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ glutCreateWindow(char *);
int glutExtensionSupported(char *);
int /*<<< orphan*/ glutInit(int *, char **);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ wrangleExtensionName(char *);
int main(int argc, char **argv) {
  char *extension;
  int rc;
  glutInit(&argc, argv);
  glutCreateWindow("test20");
  extension = "GL_EXT_blend_color";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_abgr";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_blend_minmax";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_blend_logic_op";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_blend_subtract";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_polygon_offset";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_subtexture";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_texture";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_EXT_texture_object";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  extension = "GL_SGIX_framezoom";
  rc = glutExtensionSupported(extension);
  printf("Extension %s is %s by your OpenGL.\n", extension,
         rc ? "SUPPORTED" : "NOT supported");
  if (rc)
    wrangleExtensionName(extension);
  rc = glutExtensionSupported("");
  if (rc) {
    printf("FAIL: test20, null string\n");
    exit(1);
  }
  printf("PASS: test20\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    -0x8(%rbp),%rdi
call   1080 <glutInit@plt>
lea    0xe76(%rip),%rdi
call   1060 <glutCreateWindow@plt>
lea    0xe71(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xe94(%rip),%rdx
lea    0xe83(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     11e3 <main+0x83>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xe6c(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xe40(%rip),%rdx
lea    0xe2f(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1237 <main+0xd7>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xe24(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xdec(%rip),%rdx
lea    0xddb(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     128b <main+0x12b>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xde4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xd98(%rip),%rdx
lea    0xd87(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     12df <main+0x17f>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xda6(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xd44(%rip),%rdx
lea    0xd33(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1333 <main+0x1d3>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xd68(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xcf0(%rip),%rdx
lea    0xcdf(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xcad(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1387 <main+0x227>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xd2a(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xc9c(%rip),%rdx
lea    0xc8b(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     13db <main+0x27b>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xce8(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xc48(%rip),%rdx
lea    0xc37(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     142f <main+0x2cf>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xca3(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xbf4(%rip),%rdx
lea    0xbe3(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xbb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     1483 <main+0x323>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xc65(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%ecx
lea    0xba0(%rip),%rdx
lea    0xb8f(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xb5d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     14d7 <main+0x377>
mov    -0x18(%rbp),%rdi
call   1040 <wrangleExtensionName@plt>
lea    0xb5f(%rip),%rdi
call   1030 <glutExtensionSupported@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1508 <main+0x3a8>
lea    0xc0a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1090 <glutInit@plt>
lea    0xf74(%rip),%rdi
call   1070 <glutCreateWindow@plt>
lea    0xe68(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
lea    0xe96(%rip),%r15
lea    0xe85(%rip),%rbx
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe53(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     11da <main+0x6a>
lea    0xe2b(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xe6e(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xe18(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     1215 <main+0xa5>
lea    0xe3f(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xe3f(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xddd(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     1250 <main+0xe0>
lea    0xe10(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xe18(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xda2(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     128b <main+0x11b>
lea    0xde9(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xdf3(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xd67(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     12c6 <main+0x156>
lea    0xdc4(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xdce(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xd2c(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     1301 <main+0x191>
lea    0xd9f(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xda9(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xcf1(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     133c <main+0x1cc>
lea    0xd7a(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xd80(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xcb6(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     1377 <main+0x207>
lea    0xd51(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xd54(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
mov    %rbx,%rdx
cmove  %r15,%rdx
lea    0xc7b(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     13b2 <main+0x242>
lea    0xd25(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xd2f(%rip),%r14
mov    %r14,%rdi
call   1040 <glutExtensionSupported@plt>
mov    %eax,%ebp
test   %eax,%eax
cmove  %r15,%rbx
lea    0xc43(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
je     13ed <main+0x27d>
lea    0xd00(%rip),%rdi
call   1050 <wrangleExtensionName@plt>
lea    0xc42(%rip),%rdi
call   1040 <glutExtensionSupported@plt>
test   %eax,%eax
jne    1416 <main+0x2a6>
lea    0xcf6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcea(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"test20\00"
@.str.1 = [19 x i8] c"GL_EXT_blend_color\00"
@.str.2 = [36 x i8] c"Extension %s is %s by your OpenGL.\0A\00"
@.str.3 = [10 x i8] c"SUPPORTED\00"
@.str.4 = [14 x i8] c"NOT supported\00"
@.str.5 = [12 x i8] c"GL_EXT_abgr\00"
@.str.6 = [20 x i8] c"GL_EXT_blend_minmax\00"
@.str.7 = [22 x i8] c"GL_EXT_blend_logic_op\00"
@.str.8 = [22 x i8] c"GL_EXT_blend_subtract\00"
@.str.9 = [22 x i8] c"GL_EXT_polygon_offset\00"
@.str.10 = [18 x i8] c"GL_EXT_subtexture\00"
@.str.11 = [15 x i8] c"GL_EXT_texture\00"
@.str.12 = [22 x i8] c"GL_EXT_texture_object\00"
@.str.13 = [18 x i8] c"GL_SGIX_framezoom\00"
@.str.14 = [1 x i8] zeroinitializer
@.str.15 = [27 x i8] c"FAIL: test20, null string\0A\00"
@.str.16 = [14 x i8] c"PASS: test20\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i8**, i8*** %5
%9 = call i32 @glutInit(i32* %4, i8** %8)
%10 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8** %6
%11 = load i8*, i8** %6
%12 = call i32 @glutExtensionSupported(i8* %11)
store i32 %12, i32* %7
%13 = load i8*, i8** %6
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %13, i8* %17)
%19 = load i32, i32* %7
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = load i8*, i8** %6
%23 = call i32 @wrangleExtensionName(i8* %22)
br label %24
24: ; preds = %21, %2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8** %6
%25 = load i8*, i8** %6
%26 = call i32 @glutExtensionSupported(i8* %25)
store i32 %26, i32* %7
%27 = load i8*, i8** %6
%28 = load i32, i32* %7
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %27, i8* %31)
%33 = load i32, i32* %7
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %24
%36 = load i8*, i8** %6
%37 = call i32 @wrangleExtensionName(i8* %36)
br label %38
38: ; preds = %35, %24
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8** %6
%39 = load i8*, i8** %6
%40 = call i32 @glutExtensionSupported(i8* %39)
store i32 %40, i32* %7
%41 = load i8*, i8** %6
%42 = load i32, i32* %7
%43 = icmp ne i32 %42, 0
%44 = zext i1 %43 to i64
%45 = select i1 %43, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %41, i8* %45)
%47 = load i32, i32* %7
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %38
%50 = load i8*, i8** %6
%51 = call i32 @wrangleExtensionName(i8* %50)
br label %52
52: ; preds = %49, %38
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8** %6
%53 = load i8*, i8** %6
%54 = call i32 @glutExtensionSupported(i8* %53)
store i32 %54, i32* %7
%55 = load i8*, i8** %6
%56 = load i32, i32* %7
%57 = icmp ne i32 %56, 0
%58 = zext i1 %57 to i64
%59 = select i1 %57, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %55, i8* %59)
%61 = load i32, i32* %7
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %52
%64 = load i8*, i8** %6
%65 = call i32 @wrangleExtensionName(i8* %64)
br label %66
66: ; preds = %63, %52
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8** %6
%67 = load i8*, i8** %6
%68 = call i32 @glutExtensionSupported(i8* %67)
store i32 %68, i32* %7
%69 = load i8*, i8** %6
%70 = load i32, i32* %7
%71 = icmp ne i32 %70, 0
%72 = zext i1 %71 to i64
%73 = select i1 %71, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %69, i8* %73)
%75 = load i32, i32* %7
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %66
%78 = load i8*, i8** %6
%79 = call i32 @wrangleExtensionName(i8* %78)
br label %80
80: ; preds = %77, %66
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8** %6
%81 = load i8*, i8** %6
%82 = call i32 @glutExtensionSupported(i8* %81)
store i32 %82, i32* %7
%83 = load i8*, i8** %6
%84 = load i32, i32* %7
%85 = icmp ne i32 %84, 0
%86 = zext i1 %85 to i64
%87 = select i1 %85, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %83, i8* %87)
%89 = load i32, i32* %7
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %80
%92 = load i8*, i8** %6
%93 = call i32 @wrangleExtensionName(i8* %92)
br label %94
94: ; preds = %91, %80
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i8** %6
%95 = load i8*, i8** %6
%96 = call i32 @glutExtensionSupported(i8* %95)
store i32 %96, i32* %7
%97 = load i8*, i8** %6
%98 = load i32, i32* %7
%99 = icmp ne i32 %98, 0
%100 = zext i1 %99 to i64
%101 = select i1 %99, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %97, i8* %101)
%103 = load i32, i32* %7
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %94
%106 = load i8*, i8** %6
%107 = call i32 @wrangleExtensionName(i8* %106)
br label %108
108: ; preds = %105, %94
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8** %6
%109 = load i8*, i8** %6
%110 = call i32 @glutExtensionSupported(i8* %109)
store i32 %110, i32* %7
%111 = load i8*, i8** %6
%112 = load i32, i32* %7
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %111, i8* %115)
%117 = load i32, i32* %7
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %108
%120 = load i8*, i8** %6
%121 = call i32 @wrangleExtensionName(i8* %120)
br label %122
122: ; preds = %119, %108
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8** %6
%123 = load i8*, i8** %6
%124 = call i32 @glutExtensionSupported(i8* %123)
store i32 %124, i32* %7
%125 = load i8*, i8** %6
%126 = load i32, i32* %7
%127 = icmp ne i32 %126, 0
%128 = zext i1 %127 to i64
%129 = select i1 %127, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %125, i8* %129)
%131 = load i32, i32* %7
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %122
%134 = load i8*, i8** %6
%135 = call i32 @wrangleExtensionName(i8* %134)
br label %136
136: ; preds = %133, %122
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8** %6
%137 = load i8*, i8** %6
%138 = call i32 @glutExtensionSupported(i8* %137)
store i32 %138, i32* %7
%139 = load i8*, i8** %6
%140 = load i32, i32* %7
%141 = icmp ne i32 %140, 0
%142 = zext i1 %141 to i64
%143 = select i1 %141, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %139, i8* %143)
%145 = load i32, i32* %7
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %150
147: ; preds = %136
%148 = load i8*, i8** %6
%149 = call i32 @wrangleExtensionName(i8* %148)
br label %150
150: ; preds = %147, %136
%151 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0))
store i32 %151, i32* %7
%152 = load i32, i32* %7
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %157
154: ; preds = %150
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%156 = call i32 @exit(i32 1)
unreachable
157: ; preds = %150
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"test20\00"
@.str.1 = [19 x i8] c"GL_EXT_blend_color\00"
@.str.2 = [36 x i8] c"Extension %s is %s by your OpenGL.\0A\00"
@.str.3 = [10 x i8] c"SUPPORTED\00"
@.str.4 = [14 x i8] c"NOT supported\00"
@.str.5 = [12 x i8] c"GL_EXT_abgr\00"
@.str.6 = [20 x i8] c"GL_EXT_blend_minmax\00"
@.str.7 = [22 x i8] c"GL_EXT_blend_logic_op\00"
@.str.8 = [22 x i8] c"GL_EXT_blend_subtract\00"
@.str.9 = [22 x i8] c"GL_EXT_polygon_offset\00"
@.str.10 = [18 x i8] c"GL_EXT_subtexture\00"
@.str.11 = [15 x i8] c"GL_EXT_texture\00"
@.str.12 = [22 x i8] c"GL_EXT_texture_object\00"
@.str.13 = [18 x i8] c"GL_SGIX_framezoom\00"
@.str.14 = [1 x i8] zeroinitializer
@str = [13 x i8] c"PASS: test20\00"
@str.17 = [26 x i8] c"FAIL: test20, null string\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @glutInit(i32* %3, i8** %1)
%5 = call i32 @glutCreateWindow(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
%8 = select i1 %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %8)
br i1 %7, label %12, label %10
10: ; preds = %2
%11 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
%13 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %15)
br i1 %14, label %19, label %17
17: ; preds = %12
%18 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %19
19: ; preds = %17, %12
%20 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
%22 = select i1 %21, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %22)
br i1 %21, label %26, label %24
24: ; preds = %19
%25 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %26
26: ; preds = %24, %19
%27 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* %29)
br i1 %28, label %33, label %31
31: ; preds = %26
%32 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
br label %33
33: ; preds = %31, %26
%34 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i8* %36)
br i1 %35, label %40, label %38
38: ; preds = %33
%39 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
br label %40
40: ; preds = %38, %33
%41 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* %43)
br i1 %42, label %47, label %45
45: ; preds = %40
%46 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
br label %47
47: ; preds = %45, %40
%48 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%49 = icmp eq i32 %48, 0
%50 = select i1 %49, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i8* %50)
br i1 %49, label %54, label %52
52: ; preds = %47
%53 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
br label %54
54: ; preds = %52, %47
%55 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
%57 = select i1 %56, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %57)
br i1 %56, label %61, label %59
59: ; preds = %54
%60 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
br label %61
61: ; preds = %59, %54
%62 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* %64)
br i1 %63, label %68, label %66
66: ; preds = %61
%67 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
br label %68
68: ; preds = %66, %61
%69 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%70 = icmp eq i32 %69, 0
%71 = select i1 %70, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8* %71)
br i1 %70, label %75, label %73
73: ; preds = %68
%74 = call i32 @wrangleExtensionName(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
br label %75
75: ; preds = %73, %68
%76 = call i32 @glutExtensionSupported(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0))
%77 = icmp eq i32 %76, 0
br i1 %77, label %81, label %78
78: ; preds = %75
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.17, i64 0, i64 0))
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %75
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 0
}