#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 */
typedef int uint32_t;
typedef int /*<<< orphan*/ format;

/* Variables and functions */
int djb2(char const *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ showhelp(int /*<<< orphan*/);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char const *, char *);
int strlen(char const *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ toupper(char const);
int main(int argc, const char *argv[]) {
  int start, casestmt = 0, enumstmt = 0, prefix = 0, cpp = 0;
  char format[32];
  for (start = 1;
       start < argc && argv[start][0] == '-' && argv[start][1] == '-';
       start++) {
    if (!strcmp(argv[start], "--case")) {
      casestmt = 1;
    } else if (!strcmp(argv[start], "--enum")) {
      enumstmt = 1;
    } else if (!strcmp(argv[start], "--prefix")) {
      prefix = 1;
    } else if (!strcmp(argv[start], "--cpp")) {
      cpp = 1;
    } else if (!strcmp(argv[start], "--help")) {
      showhelp(stdout);
      return 0;
    } else {
      fprintf(stderr, "Unknown option: %s\n\n", argv[start]);
      showhelp(stderr);
      return 1;
    }
  }
  if (enumstmt) {
    if (casestmt) {
      if (prefix) {
        strncpy(format, "case k%c%s:\n", sizeof(format));
      } else {
        strncpy(format, "case %s:\n", sizeof(format));
      }
    } else {
      int maxlen = 0, i;
      for (i = start; i < argc; i++) {
        int len = strlen(argv[i]);
        if (len > maxlen) {
          maxlen = len;
        }
      }
      if (prefix) {
        snprintf(format, sizeof(format), "k%%c%%-%ds= 0x%%08xU,\n", maxlen);
      } else {
        snprintf(format, sizeof(format), "%%-%ds = 0x%%08xU,\n", maxlen);
      }
    }
    format[sizeof(format) - 1] = 0;
  }
  for (; start < argc; start++) {
    uint32_t hash = djb2(argv[start]);
    if (casestmt) {
      if (enumstmt) {
        if (prefix) {
          printf(format, toupper(argv[start][0]), argv[start] + 1, hash);
        } else {
          printf(format, argv[start], hash);
        }
      } else {
        if (cpp) {
          printf("case 0x%08xU: // %s\n", hash, argv[start]);
        } else {
          printf("case 0x%08xU: /* %s */\n", hash, argv[start]);
        }
      }
    } else if (enumstmt) {
      if (prefix) {
        printf(format, toupper(argv[start][0]), argv[start] + 1, hash);
      } else {
        printf(format, argv[start], hash);
      }
    } else {
      if (cpp) {
        printf("0x%08xU // %s\n", hash, argv[start]);
      } else {
        printf("0x%08xU /* %s */\n", hash, argv[start]);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x61(%rbp)
jge    1213 <main+0x83>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x61(%rbp)
jne    1213 <main+0x83>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2d,%eax
sete   %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    1223 <main+0x93>
jmp    136f <main+0x1df>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdca(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1250 <main+0xc0>
movl   $0x1,-0x18(%rbp)
jmp    135c <main+0x1cc>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda4(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    127d <main+0xed>
movl   $0x1,-0x1c(%rbp)
jmp    1357 <main+0x1c7>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd7e(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12aa <main+0x11a>
movl   $0x1,-0x20(%rbp)
jmp    1352 <main+0x1c2>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd5a(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12d7 <main+0x147>
movl   $0x1,-0x24(%rbp)
jmp    134d <main+0x1bd>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd33(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1312 <main+0x182>
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
call   10b0 <showhelp@plt>
movl   $0x0,-0x4(%rbp)
jmp    1632 <main+0x4a2>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xcf6(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x2ca6(%rip),%rax
mov    (%rax),%edi
call   10b0 <showhelp@plt>
movl   $0x1,-0x4(%rbp)
jmp    1632 <main+0x4a2>
jmp    1352 <main+0x1c2>
jmp    1357 <main+0x1c7>
jmp    135c <main+0x1cc>
jmp    1361 <main+0x1d1>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11cc <main+0x3c>
cmpl   $0x0,-0x1c(%rbp)
je     145b <main+0x2cb>
cmpl   $0x0,-0x18(%rbp)
je     13c1 <main+0x231>
cmpl   $0x0,-0x20(%rbp)
je     13a7 <main+0x217>
lea    -0x50(%rbp),%rdi
lea    0xca1(%rip),%rsi
mov    $0x20,%edx
call   1030 <strncpy@plt>
jmp    13bc <main+0x22c>
lea    -0x50(%rbp),%rdi
lea    0xc94(%rip),%rsi
mov    $0x20,%edx
call   1030 <strncpy@plt>
jmp    1457 <main+0x2c7>
movl   $0x0,-0x54(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1413 <main+0x283>
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    1400 <main+0x270>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x54(%rbp)
jmp    1405 <main+0x275>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    13ce <main+0x23e>
cmpl   $0x0,-0x20(%rbp)
je     143a <main+0x2aa>
lea    -0x50(%rbp),%rdi
mov    -0x54(%rbp),%ecx
mov    $0x20,%esi
lea    0xc20(%rip),%rdx
call   1070 <snprintf@plt>
jmp    1452 <main+0x2c2>
lea    -0x50(%rbp),%rdi
mov    -0x54(%rbp),%ecx
mov    $0x20,%esi
lea    0xc1a(%rip),%rdx
call   1070 <snprintf@plt>
jmp    1457 <main+0x2c7>
movb   $0x0,-0x31(%rbp)
jmp    1460 <main+0x2d0>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    162b <main+0x49b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <djb2@plt>
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1551 <main+0x3c1>
cmpl   $0x0,-0x1c(%rbp)
je     14fe <main+0x36e>
cmpl   $0x0,-0x20(%rbp)
je     14df <main+0x34f>
lea    -0x50(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%edi
call   1040 <toupper@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0x1,%rdx
mov    -0x60(%rbp),%ecx
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14f9 <main+0x369>
lea    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x60(%rbp),%edx
mov    $0x0,%al
call   1060 <printf@plt>
jmp    154c <main+0x3bc>
cmpl   $0x0,-0x24(%rbp)
je     152a <main+0x39a>
mov    -0x60(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xb5d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1547 <main+0x3b7>
mov    -0x60(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xb50(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    154c <main+0x3bc>
jmp    1618 <main+0x488>
cmpl   $0x0,-0x1c(%rbp)
je     15c5 <main+0x435>
cmpl   $0x0,-0x20(%rbp)
je     15a6 <main+0x416>
lea    -0x50(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%edi
call   1040 <toupper@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0x1,%rdx
mov    -0x60(%rbp),%ecx
mov    $0x0,%al
call   1060 <printf@plt>
jmp    15c0 <main+0x430>
lea    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x60(%rbp),%edx
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1613 <main+0x483>
cmpl   $0x0,-0x24(%rbp)
je     15f1 <main+0x461>
mov    -0x60(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xac3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    160e <main+0x47e>
mov    -0x60(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xab0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1613 <main+0x483>
jmp    1618 <main+0x488>
jmp    161d <main+0x48d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1460 <main+0x2d0>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,0x18(%rsp)
mov    %edi,%r13d
xor    %ebp,%ebp
mov    $0x1,%r12d
cmp    $0x2,%edi
jl     129a <main+0x10a>
mov    %r13d,%r15d
xor    %ebx,%ebx
mov    $0x1,%r12d
lea    0xe37(%rip),%rbp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
jmp    1205 <main+0x75>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movl   $0x1,0x14(%rsp)
add    $0x1,%r12
cmp    %r12,%r15
je     12bd <main+0x12d>
mov    0x18(%rsp),%rax
mov    (%rax,%r12,8),%r14
cmpb   $0x2d,(%r14)
jne    12c0 <main+0x130>
cmpb   $0x2d,0x1(%r14)
jne    12c0 <main+0x130>
mov    %r14,%rdi
mov    %rbp,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     11f0 <main+0x60>
mov    %r14,%rdi
lea    0xdcb(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1280 <main+0xf0>
mov    %r14,%rdi
lea    0xdbf(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     128d <main+0xfd>
mov    %r14,%rdi
lea    0xdb5(%rip),%rsi
call   1080 <strcmp@plt>
mov    $0x1,%ebx
test   %eax,%eax
je     11f8 <main+0x68>
jmp    14af <main+0x31f>
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x1,0x10(%rsp)
jmp    11f8 <main+0x68>
movl   $0x1,0xc(%rsp)
jmp    11f8 <main+0x68>
mov    $0x1,%r15b
xor    %ebx,%ebx
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
cmp    %r13d,%r12d
jl     13c2 <main+0x232>
jmp    149e <main+0x30e>
mov    %r15d,%r12d
xor    %ebp,%ebp
mov    0x10(%rsp),%eax
test   %eax,%eax
sete   %r15b
je     12fb <main+0x16b>
cmpl   $0x0,0x14(%rsp)
je     130c <main+0x17c>
cmpl   $0x0,0xc(%rsp)
je     136d <main+0x1dd>
lea    0xd52(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x20,%edx
call   1030 <strncpy@plt>
jmp    13b4 <main+0x224>
mov    $0x1,%r15b
cmp    %r13d,%r12d
jl     13c2 <main+0x232>
jmp    149e <main+0x30e>
mov    %ebx,0x10(%rsp)
xor    %r14d,%r14d
cmp    %r13d,%r12d
jge    134b <main+0x1bb>
mov    %r12d,%eax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rbx
xor    %r14d,%r14d
mov    %r12d,%ebp
nopw   0x0(%rax,%rax,1)
mov    (%rbx),%rdi
call   1050 <strlen@plt>
cmp    %r14d,%eax
cmovg  %eax,%r14d
add    $0x8,%rbx
add    $0x1,%ebp
cmp    %r13d,%ebp
jl     1330 <main+0x1a0>
cmpl   $0x0,0xc(%rsp)
je     138d <main+0x1fd>
lea    0xcf7(%rip),%rdx
lea    0x20(%rsp),%rdi
mov    $0x20,%esi
mov    %r14d,%ecx
call   1070 <snprintf@plt>
jmp    13ae <main+0x21e>
lea    0xcd2(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x20,%edx
call   1030 <strncpy@plt>
movl   $0x0,0xc(%rsp)
jmp    13b4 <main+0x224>
lea    0xcd3(%rip),%rdx
lea    0x20(%rsp),%rdi
mov    $0x20,%esi
mov    %r14d,%ecx
call   1070 <snprintf@plt>
movl   $0x0,0xc(%rsp)
mov    0x10(%rsp),%ebx
xor    %ebp,%ebp
movb   $0x0,0x3f(%rsp)
cmp    %r13d,%r12d
jge    149e <main+0x30e>
mov    %r12d,%eax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rbp
jmp    13fa <main+0x26a>
test   %ebx,%ebx
je     1484 <main+0x2f4>
lea    0xc9c(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x8,%rbp
add    $0x1,%r12d
cmp    %r13d,%r12d
jge    149c <main+0x30c>
mov    0x0(%rbp),%rdi
call   10a0 <djb2@plt>
mov    %eax,%r14d
mov    0x0(%rbp),%rdx
cmpl   $0x0,0x14(%rsp)
je     1420 <main+0x290>
test   %r15b,%r15b
jne    13d0 <main+0x240>
jmp    1440 <main+0x2b0>
nopl   0x0(%rax,%rax,1)
test   %r15b,%r15b
je     1440 <main+0x2b0>
test   %ebx,%ebx
je     1490 <main+0x300>
lea    0xc78(%rip),%rdi
jmp    13df <main+0x24f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpl   $0x0,0xc(%rsp)
je     146d <main+0x2dd>
movsbl (%rdx),%edi
call   1040 <toupper@plt>
mov    0x0(%rbp),%rdx
add    $0x1,%rdx
lea    0x20(%rsp),%rdi
mov    %eax,%esi
mov    %r14d,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    13e9 <main+0x259>
lea    0x20(%rsp),%rdi
mov    %rdx,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    13e9 <main+0x259>
lea    0xc05(%rip),%rdi
jmp    13df <main+0x24f>
lea    0xc20(%rip),%rdi
jmp    13df <main+0x24f>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb67(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     14e1 <main+0x351>
mov    0x2b17(%rip),%rbx
mov    (%rbx),%edi
lea    0xb52(%rip),%rsi
mov    %r14,%rdx
call   1090 <fprintf@plt>
mov    $0x1,%ebp
jmp    14ea <main+0x35a>
xor    %ebp,%ebp
mov    0x2aee(%rip),%rbx
mov    (%rbx),%edi
call   10b0 <showhelp@plt>
jmp    149e <main+0x30e>

LLVM IR (-O0):
@.str = [7 x i8] c"--case\00"
@.str.1 = [7 x i8] c"--enum\00"
@.str.2 = [9 x i8] c"--prefix\00"
@.str.3 = [6 x i8] c"--cpp\00"
@.str.4 = [7 x i8] c"--help\00"
@stdout = global i32 0
@stderr = global i32 0
@.str.5 = [21 x i8] c"Unknown option: %s\0A\0A\00"
@.str.6 = [13 x i8] c"case k%c%s:\0A\00"
@.str.7 = [10 x i8] c"case %s:\0A\00"
@.str.8 = [23 x i8] c"k%%c%%-%ds= 0x%%08xU,\0A\00"
@.str.9 = [20 x i8] c"%%-%ds = 0x%%08xU,\0A\00"
@.str.10 = [21 x i8] c"case 0x%08xU: // %s\0A\00"
@.str.11 = [24 x i8] c"case 0x%08xU: /* %s */\0A\00"
@.str.12 = [15 x i8] c"0x%08xU // %s\0A\00"
@.str.13 = [18 x i8] c"0x%08xU /* %s */\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [32 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 1, i32* %6
br label %16
16: ; preds = %103, %2
%17 = load i32, i32* %6
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = load i8**, i8*** %5
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = getelementptr inbounds i8, i8* %25, i64 0
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %30, label %40
30: ; preds = %20
%31 = load i8**, i8*** %5
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8*, i8** %31, i64 %33
%35 = load i8*, i8** %34
%36 = getelementptr inbounds i8, i8* %35, i64 1
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 45
br label %40
40: ; preds = %30, %20, %16
%41 = phi i1 [ false, %20 ], [ false, %16 ], [ %39, %30 ]
br i1 %41, label %42, label %106
42: ; preds = %40
%43 = load i8**, i8*** %5
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8*, i8** %43, i64 %45
%47 = load i8*, i8** %46
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%49 = icmp ne i32 %48, 0
br i1 %49, label %51, label %50
50: ; preds = %42
store i32 1, i32* %7
br label %102
51: ; preds = %42
%52 = load i8**, i8*** %5
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %60, label %59
59: ; preds = %51
store i32 1, i32* %8
br label %101
60: ; preds = %51
%61 = load i8**, i8*** %5
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8*, i8** %61, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 @strcmp(i8* %65, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
br i1 %67, label %69, label %68
68: ; preds = %60
store i32 1, i32* %9
br label %100
69: ; preds = %60
%70 = load i8**, i8*** %5
%71 = load i32, i32* %6
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %70, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %78, label %77
77: ; preds = %69
store i32 1, i32* %10
br label %99
78: ; preds = %69
%79 = load i8**, i8*** %5
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8*, i8** %79, i64 %81
%83 = load i8*, i8** %82
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%85 = icmp ne i32 %84, 0
br i1 %85, label %89, label %86
86: ; preds = %78
%87 = load i32, i32* @stdout
%88 = call i32 @showhelp(i32 %87)
store i32 0, i32* %3
br label %287
89: ; preds = %78
%90 = load i32, i32* @stderr
%91 = load i8**, i8*** %5
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %91, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @fprintf(i32 %90, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %95)
%97 = load i32, i32* @stderr
%98 = call i32 @showhelp(i32 %97)
store i32 1, i32* %3
br label %287
99: ; preds = %77
br label %100
100: ; preds = %99, %68
br label %101
101: ; preds = %100, %59
br label %102
102: ; preds = %101, %50
br label %103
103: ; preds = %102
%104 = load i32, i32* %6
%105 = add nsw i32 %104, 1
store i32 %105, i32* %6
br label %16
106: ; preds = %40
%107 = load i32, i32* %8
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %158
109: ; preds = %106
%110 = load i32, i32* %7
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %122
112: ; preds = %109
%113 = load i32, i32* %9
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %118
115: ; preds = %112
%116 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%117 = call i32 @strncpy(i8* %116, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 32)
br label %121
118: ; preds = %112
%119 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%120 = call i32 @strncpy(i8* %119, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 32)
br label %121
121: ; preds = %118, %115
br label %156
122: ; preds = %109
store i32 0, i32* %12
%123 = load i32, i32* %6
store i32 %123, i32* %13
br label %124
124: ; preds = %141, %122
%125 = load i32, i32* %13
%126 = load i32, i32* %4
%127 = icmp slt i32 %125, %126
br i1 %127, label %128, label %144
128: ; preds = %124
%129 = load i8**, i8*** %5
%130 = load i32, i32* %13
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8*, i8** %129, i64 %131
%133 = load i8*, i8** %132
%134 = call i32 @strlen(i8* %133)
store i32 %134, i32* %14
%135 = load i32, i32* %14
%136 = load i32, i32* %12
%137 = icmp sgt i32 %135, %136
br i1 %137, label %138, label %140
138: ; preds = %128
%139 = load i32, i32* %14
store i32 %139, i32* %12
br label %140
140: ; preds = %138, %128
br label %141
141: ; preds = %140
%142 = load i32, i32* %13
%143 = add nsw i32 %142, 1
store i32 %143, i32* %13
br label %124
144: ; preds = %124
%145 = load i32, i32* %9
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %151
147: ; preds = %144
%148 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%149 = load i32, i32* %12
%150 = call i32 @snprintf(i8* %148, i32 32, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 %149)
br label %155
151: ; preds = %144
%152 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%153 = load i32, i32* %12
%154 = call i32 @snprintf(i8* %152, i32 32, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %153)
br label %155
155: ; preds = %151, %147
br label %156
156: ; preds = %155, %121
%157 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 31
store i8 0, i8* %157
br label %158
158: ; preds = %156, %106
br label %159
159: ; preds = %283, %158
%160 = load i32, i32* %6
%161 = load i32, i32* %4
%162 = icmp slt i32 %160, %161
br i1 %162, label %163, label %286
163: ; preds = %159
%164 = load i8**, i8*** %5
%165 = load i32, i32* %6
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8*, i8** %164, i64 %166
%168 = load i8*, i8** %167
%169 = call i32 @djb2(i8* %168)
store i32 %169, i32* %15
%170 = load i32, i32* %7
%171 = icmp ne i32 %170, 0
br i1 %171, label %172, label %227
172: ; preds = %163
%173 = load i32, i32* %8
%174 = icmp ne i32 %173, 0
br i1 %174, label %175, label %206
175: ; preds = %172
%176 = load i32, i32* %9
%177 = icmp ne i32 %176, 0
br i1 %177, label %178, label %196
178: ; preds = %175
%179 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%180 = load i8**, i8*** %5
%181 = load i32, i32* %6
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8*, i8** %180, i64 %182
%184 = load i8*, i8** %183
%185 = getelementptr inbounds i8, i8* %184, i64 0
%186 = load i8, i8* %185
%187 = call i32 @toupper(i8 signext %186)
%188 = load i8**, i8*** %5
%189 = load i32, i32* %6
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8*, i8** %188, i64 %190
%192 = load i8*, i8** %191
%193 = getelementptr inbounds i8, i8* %192, i64 1
%194 = load i32, i32* %15
%195 = call i32 (i8*, ...) @printf(i8* %179, i32 %187, i8* %193, i32 %194)
br label %205
196: ; preds = %175
%197 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%198 = load i8**, i8*** %5
%199 = load i32, i32* %6
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8*, i8** %198, i64 %200
%202 = load i8*, i8** %201
%203 = load i32, i32* %15
%204 = call i32 (i8*, ...) @printf(i8* %197, i8* %202, i32 %203)
br label %205
205: ; preds = %196, %178
br label %226
206: ; preds = %172
%207 = load i32, i32* %10
%208 = icmp ne i32 %207, 0
br i1 %208, label %209, label %217
209: ; preds = %206
%210 = load i32, i32* %15
%211 = load i8**, i8*** %5
%212 = load i32, i32* %6
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i8*, i8** %211, i64 %213
%215 = load i8*, i8** %214
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %210, i8* %215)
br label %225
217: ; preds = %206
%218 = load i32, i32* %15
%219 = load i8**, i8*** %5
%220 = load i32, i32* %6
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i8*, i8** %219, i64 %221
%223 = load i8*, i8** %222
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %218, i8* %223)
br label %225
225: ; preds = %217, %209
br label %226
226: ; preds = %225, %205
br label %282
227: ; preds = %163
%228 = load i32, i32* %8
%229 = icmp ne i32 %228, 0
br i1 %229, label %230, label %261
230: ; preds = %227
%231 = load i32, i32* %9
%232 = icmp ne i32 %231, 0
br i1 %232, label %233, label %251
233: ; preds = %230
%234 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%235 = load i8**, i8*** %5
%236 = load i32, i32* %6
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i8*, i8** %235, i64 %237
%239 = load i8*, i8** %238
%240 = getelementptr inbounds i8, i8* %239, i64 0
%241 = load i8, i8* %240
%242 = call i32 @toupper(i8 signext %241)
%243 = load i8**, i8*** %5
%244 = load i32, i32* %6
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i8*, i8** %243, i64 %245
%247 = load i8*, i8** %246
%248 = getelementptr inbounds i8, i8* %247, i64 1
%249 = load i32, i32* %15
%250 = call i32 (i8*, ...) @printf(i8* %234, i32 %242, i8* %248, i32 %249)
br label %260
251: ; preds = %230
%252 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%253 = load i8**, i8*** %5
%254 = load i32, i32* %6
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds i8*, i8** %253, i64 %255
%257 = load i8*, i8** %256
%258 = load i32, i32* %15
%259 = call i32 (i8*, ...) @printf(i8* %252, i8* %257, i32 %258)
br label %260
260: ; preds = %251, %233
br label %281
261: ; preds = %227
%262 = load i32, i32* %10
%263 = icmp ne i32 %262, 0
br i1 %263, label %264, label %272
264: ; preds = %261
%265 = load i32, i32* %15
%266 = load i8**, i8*** %5
%267 = load i32, i32* %6
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i8*, i8** %266, i64 %268
%270 = load i8*, i8** %269
%271 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 %265, i8* %270)
br label %280
272: ; preds = %261
%273 = load i32, i32* %15
%274 = load i8**, i8*** %5
%275 = load i32, i32* %6
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds i8*, i8** %274, i64 %276
%278 = load i8*, i8** %277
%279 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %273, i8* %278)
br label %280
280: ; preds = %272, %264
br label %281
281: ; preds = %280, %260
br label %282
282: ; preds = %281, %226
br label %283
283: ; preds = %282
%284 = load i32, i32* %6
%285 = add nsw i32 %284, 1
store i32 %285, i32* %6
br label %159
286: ; preds = %159
store i32 0, i32* %3
br label %287
287: ; preds = %286, %89, %86
%288 = load i32, i32* %3
ret i32 %288
}

LLVM IR (-O2):
@.str = [7 x i8] c"--case\00"
@.str.1 = [7 x i8] c"--enum\00"
@.str.2 = [9 x i8] c"--prefix\00"
@.str.3 = [6 x i8] c"--cpp\00"
@.str.4 = [7 x i8] c"--help\00"
@stdout = global i32 0
@stderr = global i32 0
@.str.5 = [21 x i8] c"Unknown option: %s\0A\0A\00"
@.str.6 = [13 x i8] c"case k%c%s:\0A\00"
@.str.7 = [10 x i8] c"case %s:\0A\00"
@.str.8 = [23 x i8] c"k%%c%%-%ds= 0x%%08xU,\0A\00"
@.str.9 = [20 x i8] c"%%-%ds = 0x%%08xU,\0A\00"
@.str.10 = [21 x i8] c"case 0x%08xU: // %s\0A\00"
@.str.11 = [24 x i8] c"case 0x%08xU: /* %s */\0A\00"
@.str.12 = [15 x i8] c"0x%08xU // %s\0A\00"
@.str.13 = [18 x i8] c"0x%08xU /* %s */\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %91
6: ; preds = %2
%7 = zext i32 %0 to i64
br label %8
8: ; preds = %6, %40
%9 = phi i64 [ 1, %6 ], [ %45, %40 ]
%10 = phi i32 [ 0, %6 ], [ %44, %40 ]
%11 = phi i32 [ 0, %6 ], [ %43, %40 ]
%12 = phi i32 [ 0, %6 ], [ %42, %40 ]
%13 = phi i32 [ 0, %6 ], [ %41, %40 ]
%14 = getelementptr inbounds i8*, i8** %1, i64 %9
%15 = load i8*, i8** %14
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 45
br i1 %17, label %18, label %49
18: ; preds = %8
%19 = getelementptr inbounds i8, i8* %15, i64 1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 45
br i1 %21, label %22, label %47
22: ; preds = %18
%23 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %40, label %25
25: ; preds = %22
%26 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %40, label %28
28: ; preds = %25
%29 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %28
%32 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = tail call i32 @strcmp(i8* %15, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %143, label %37
37: ; preds = %34
%38 = load i32, i32* @stderr
%39 = tail call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %15)
br label %143
40: ; preds = %31, %28, %25, %22
%41 = phi i32 [ 1, %22 ], [ %13, %25 ], [ %13, %28 ], [ %13, %31 ]
%42 = phi i32 [ %12, %22 ], [ 1, %25 ], [ %12, %28 ], [ %12, %31 ]
%43 = phi i32 [ %11, %22 ], [ %11, %25 ], [ 1, %28 ], [ %11, %31 ]
%44 = phi i32 [ %10, %22 ], [ %10, %25 ], [ %10, %28 ], [ 1, %31 ]
%45 = add nuw nsw i64 %9, 1
%46 = icmp eq i64 %45, %7
br i1 %46, label %51, label %8
47: ; preds = %18
%48 = trunc i64 %9 to i32
br label %51
49: ; preds = %8
%50 = trunc i64 %9 to i32
br label %51
51: ; preds = %40, %49, %47
%52 = phi i32 [ %13, %47 ], [ %13, %49 ], [ %41, %40 ]
%53 = phi i32 [ %12, %47 ], [ %12, %49 ], [ %42, %40 ]
%54 = phi i32 [ %11, %47 ], [ %11, %49 ], [ %43, %40 ]
%55 = phi i32 [ %10, %47 ], [ %10, %49 ], [ %44, %40 ]
%56 = phi i32 [ %48, %47 ], [ %50, %49 ], [ %0, %40 ]
%57 = icmp eq i32 %53, 0
br i1 %57, label %91, label %58
58: ; preds = %51
%59 = icmp eq i32 %52, 0
br i1 %59, label %60, label %64
60: ; preds = %58
%61 = icmp slt i32 %56, %0
br i1 %61, label %62, label %81
62: ; preds = %60
%63 = zext i32 %56 to i64
br label %70
64: ; preds = %58
%65 = icmp eq i32 %54, 0
br i1 %65, label %68, label %66
66: ; preds = %64
%67 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 32)
br label %88
68: ; preds = %64
%69 = call i32 @strncpy(i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 32)
br label %88
70: ; preds = %62, %70
%71 = phi i64 [ %63, %62 ], [ %78, %70 ]
%72 = phi i32 [ 0, %62 ], [ %77, %70 ]
%73 = getelementptr inbounds i8*, i8** %1, i64 %71
%74 = load i8*, i8** %73
%75 = tail call i32 @strlen(i8* %74)
%76 = icmp sgt i32 %75, %72
%77 = select i1 %76, i32 %75, i32 %72
%78 = add nuw nsw i64 %71, 1
%79 = trunc i64 %78 to i32
%80 = icmp slt i32 %79, %0
br i1 %80, label %70, label %81
81: ; preds = %70, %60
%82 = phi i32 [ 0, %60 ], [ %77, %70 ]
%83 = icmp eq i32 %54, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = call i32 @snprintf(i8* %4, i32 32, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 %82)
br label %88
86: ; preds = %81
%87 = call i32 @snprintf(i8* %4, i32 32, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %82)
br label %88
88: ; preds = %84, %86, %66, %68
%89 = phi i32 [ %54, %84 ], [ 0, %86 ], [ %54, %66 ], [ 0, %68 ]
%90 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 31
store i8 0, i8* %90
br label %91
91: ; preds = %2, %88, %51
%92 = phi i1 [ %57, %88 ], [ true, %51 ], [ true, %2 ]
%93 = phi i32 [ %56, %88 ], [ %56, %51 ], [ 1, %2 ]
%94 = phi i32 [ %55, %88 ], [ %55, %51 ], [ 0, %2 ]
%95 = phi i32 [ %89, %88 ], [ %54, %51 ], [ 0, %2 ]
%96 = phi i32 [ %52, %88 ], [ %52, %51 ], [ 0, %2 ]
%97 = icmp slt i32 %93, %0
br i1 %97, label %98, label %148
98: ; preds = %91
%99 = icmp eq i32 %96, 0
%100 = icmp eq i32 %95, 0
%101 = icmp eq i32 %94, 0
%102 = zext i32 %93 to i64
br label %103
103: ; preds = %98, %139
%104 = phi i64 [ %102, %98 ], [ %140, %139 ]
%105 = getelementptr inbounds i8*, i8** %1, i64 %104
%106 = load i8*, i8** %105
%107 = call i32 @djb2(i8* %106)
%108 = load i8*, i8** %105
br i1 %99, label %124, label %109
109: ; preds = %103
br i1 %92, label %119, label %110
110: ; preds = %109
br i1 %100, label %117, label %111
111: ; preds = %110
%112 = load i8, i8* %108
%113 = call i32 @toupper(i8 signext %112)
%114 = load i8*, i8** %105
%115 = getelementptr inbounds i8, i8* %114, i64 1
%116 = call i32 (i8*, ...) @printf(i8* %4, i32 %113, i8* %115, i32 %107)
br label %139
117: ; preds = %110
%118 = call i32 (i8*, ...) @printf(i8* %4, i8* %108, i32 %107)
br label %139
119: ; preds = %109
br i1 %101, label %122, label %120
120: ; preds = %119
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %107, i8* %108)
br label %139
122: ; preds = %119
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %107, i8* %108)
br label %139
124: ; preds = %103
br i1 %92, label %134, label %125
125: ; preds = %124
br i1 %100, label %132, label %126
126: ; preds = %125
%127 = load i8, i8* %108
%128 = call i32 @toupper(i8 signext %127)
%129 = load i8*, i8** %105
%130 = getelementptr inbounds i8, i8* %129, i64 1
%131 = call i32 (i8*, ...) @printf(i8* %4, i32 %128, i8* %130, i32 %107)
br label %139
132: ; preds = %125
%133 = call i32 (i8*, ...) @printf(i8* %4, i8* %108, i32 %107)
br label %139
134: ; preds = %124
br i1 %101, label %137, label %135
135: ; preds = %134
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 %107, i8* %108)
br label %139
137: ; preds = %134
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i32 %107, i8* %108)
br label %139
139: ; preds = %132, %126, %137, %135, %117, %111, %122, %120
%140 = add nuw nsw i64 %104, 1
%141 = trunc i64 %140 to i32
%142 = icmp slt i32 %141, %0
br i1 %142, label %103, label %148
143: ; preds = %34, %37
%144 = phi i32* [ @stderr, %37 ], [ @stdout, %34 ]
%145 = phi i32 [ 1, %37 ], [ 0, %34 ]
%146 = load i32, i32* %144
%147 = tail call i32 @showhelp(i32 %146)
br label %148
148: ; preds = %139, %143, %91
%149 = phi i32 [ 0, %91 ], [ %145, %143 ], [ 0, %139 ]
ret i32 %149
}