#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*/ eca_opt_print_option_xml(char const *, char const *,
                                            char const *, char const *,
                                            char const *, int, int, int, int);
int /*<<< orphan*/ eca_opt_print_usage_long(char const *, char const *,
                                            char const *, char const *, int);
int /*<<< orphan*/ eca_opt_print_usage_long_nroff(char const *, char const *,
                                                  char const *, char const *,
                                                  int);
int /*<<< orphan*/ eca_opt_print_usage_short(char const *, char const *,
                                             char const *, char const *, int,
                                             int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char const *,
                           ...);
int /*<<< orphan*/ option_name(char *, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char const *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char const *, char const *);
int opt_snl(int *how_many_times, char *argv, const char *sh, const char *lon,
            const char *args, const char *short_comment,
            const char *long_comment, int CommentLevel, int *Recog,
            char *CurrLong, char *CurrShort, int FinalPass, int *Error,
            int __END_OF_OPTS, int __LEN_OF_ARGS, int IsRequired,
            int CoDependent, const char *CondReqOptString, int max_usages,
            int CanClash, int Clashing, const char *ClashString,
            int CurrentIndexLevel) {
  char tempStr[1000];
  if (FinalPass == 1) {
    if (*how_many_times == 0 && IsRequired == 1) {
      option_name(tempStr, (char *)sh, (char *)lon);
      fprintf(stderr,
              "Error Processing Option %s!    The option %s is required but is "
              "absent.\n",
              tempStr, tempStr);
      *Error = 1;
    }
    if (*how_many_times == 0 && IsRequired == 2 && CoDependent > 0) {
      option_name(tempStr, (char *)sh, (char *)lon);
      fprintf(stderr,
              "Error Processing Option %s!    The option %s is absent, but is "
              "required when %s\n",
              tempStr, tempStr, CondReqOptString);
      *Error = 1;
    }
    if (*how_many_times > max_usages) {
      option_name(tempStr, (char *)sh, (char *)lon);
      fprintf(stderr,
              "Error Processing Option %s!    The option %s is used %d times "
              "but should have been used at most %d times.\n",
              tempStr, tempStr, *how_many_times, max_usages);
      *Error = 1;
    }
    if (CanClash && (Clashing && *how_many_times > 0)) {
      option_name(tempStr, (char *)sh, (char *)lon);
      fprintf(stderr,
              "Error Processing Option %s!    Conflicting options when %s %s\n",
              tempStr, ClashString);
      *Error = 1;
    }
    return (0);
  }
  if (CommentLevel == 2) {
    if (strcmp(long_comment, "") == 0) {
      eca_opt_print_usage_long(sh, lon, args, short_comment, __END_OF_OPTS);
    } else {
      eca_opt_print_usage_long(sh, lon, args, long_comment, __END_OF_OPTS);
    }
    return (0);
  }
  if (CommentLevel == 3) {
    if (strcmp(long_comment, "") == 0) {
      eca_opt_print_usage_long_nroff(sh, lon, args, short_comment,
                                     __END_OF_OPTS);
    } else {
      eca_opt_print_usage_long_nroff(sh, lon, args, long_comment,
                                     __END_OF_OPTS);
    }
    return (0);
  }
  if (CommentLevel == 4) {
    eca_opt_print_option_xml(sh, lon, args, short_comment, long_comment,
                             __END_OF_OPTS, CurrentIndexLevel, IsRequired,
                             max_usages);
    return (0);
  }
  if (CommentLevel == 1) {
    eca_opt_print_usage_short(sh, lon, args, short_comment, __END_OF_OPTS,
                              __LEN_OF_ARGS);
    return (0);
  }
  if (strcmp(argv, sh) == 0 || strcmp(argv, lon) == 0) {
    *Recog = 1;
    sprintf(CurrLong, "%s", lon);
    sprintf(CurrShort, "%s", sh);
    *how_many_times = *how_many_times + 1;
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<opt_snl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
mov    0x90(%rbp),%eax
mov    0x88(%rbp),%rax
mov    0x80(%rbp),%eax
mov    0x78(%rbp),%eax
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%eax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
cmpl   $0x1,0x38(%rbp)
jne    1382 <opt_snl+0x202>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    124a <opt_snl+0xca>
cmpl   $0x1,0x58(%rbp)
jne    124a <opt_snl+0xca>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
lea    -0x420(%rbp),%rcx
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    12b2 <opt_snl+0x132>
cmpl   $0x2,0x58(%rbp)
jne    12b2 <opt_snl+0x132>
cmpl   $0x0,0x60(%rbp)
jle    12b2 <opt_snl+0x132>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
lea    -0x420(%rbp),%rcx
mov    0x68(%rbp),%r8
lea    0xda8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    0x70(%rbp),%eax
jle    130f <opt_snl+0x18f>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
lea    -0x420(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%r8d
mov    0x70(%rbp),%r9d
lea    0xd9c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
cmpl   $0x0,0x78(%rbp)
je     1376 <opt_snl+0x1f6>
cmpl   $0x0,0x80(%rbp)
je     1376 <opt_snl+0x1f6>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jle    1376 <opt_snl+0x1f6>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2c92(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
mov    0x88(%rbp),%rcx
lea    0xda0(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
cmpl   $0x2,0x18(%rbp)
jne    13e9 <opt_snl+0x269>
mov    0x10(%rbp),%rdi
lea    0xd6d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13c4 <opt_snl+0x244>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1080 <eca_opt_print_usage_long@plt>
jmp    13dd <opt_snl+0x25d>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1080 <eca_opt_print_usage_long@plt>
movl   $0x0,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
cmpl   $0x3,0x18(%rbp)
jne    1450 <opt_snl+0x2d0>
mov    0x10(%rbp),%rdi
lea    0xd06(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    142b <opt_snl+0x2ab>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1060 <eca_opt_print_usage_long_nroff@plt>
jmp    1444 <opt_snl+0x2c4>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1060 <eca_opt_print_usage_long_nroff@plt>
movl   $0x0,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
cmpl   $0x4,0x18(%rbp)
jne    149e <opt_snl+0x31e>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x48(%rbp),%r9d
mov    0x90(%rbp),%r11d
mov    0x58(%rbp),%r10d
mov    0x70(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1090 <eca_opt_print_option_xml@plt>
movl   $0x0,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
cmpl   $0x1,0x18(%rbp)
jne    14d1 <opt_snl+0x351>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x48(%rbp),%r8d
mov    0x50(%rbp),%r9d
call   1040 <eca_opt_print_usage_short@plt>
movl   $0x0,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     14ff <opt_snl+0x37f>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    154c <opt_snl+0x3cc>
mov    0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    0x28(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xc2c(%rip),%rsi
call   10a0 <sprintf@plt>
mov    0x30(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xc18(%rip),%rsi
call   10a0 <sprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1553 <opt_snl+0x3d3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opt_snl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3e8,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%r13
mov    0x480(%rsp),%eax
mov    0x468(%rsp),%r11d
cmpl   $0x1,0x448(%rsp)
01
jne    1207 <opt_snl+0x87>
mov    0x450(%rsp),%rbp
mov    0x0(%r13),%ecx
cmp    $0x1,%r11d
jne    1261 <opt_snl+0xe1>
test   %ecx,%ecx
jne    1261 <opt_snl+0xe1>
mov    %rax,%r12
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
lea    0xe1b(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    12b9 <opt_snl+0x139>
mov    0x428(%rsp),%ecx
add    $0xffffffff,%ecx
cmp    $0x3,%ecx
ja     137d <opt_snl+0x1fd>
mov    %r9,%rbp
mov    %r8,%rbx
mov    0x458(%rsp),%r12d
mov    0x420(%rsp),%r13
lea    0xdc9(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    0x460(%rsp),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1050 <eca_opt_print_usage_short@plt>
jmp    1470 <opt_snl+0x2f0>
cmpl   $0x0,0x470(%rsp)
jle    12c3 <opt_snl+0x143>
cmp    $0x2,%r11d
jne    12c3 <opt_snl+0x143>
test   %ecx,%ecx
jne    12c3 <opt_snl+0x143>
mov    %rax,%r12
mov    0x478(%rsp),%rbp
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
lea    0xdb8(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    0x450(%rsp),%rbp
xor    %eax,%eax
call   1080 <fprintf@plt>
movl   $0x1,0x0(%rbp)
mov    %r12,%rax
mov    0x488(%rsp),%ecx
cmp    %eax,0x0(%r13)
jle    1316 <opt_snl+0x196>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rax,%r12
call   1040 <option_name@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
mov    0x0(%r13),%r8d
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %r12d,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x488(%rsp),%ecx
movl   $0x1,0x0(%rbp)
xor    %ebx,%ebx
test   %ecx,%ecx
je     1472 <opt_snl+0x2f2>
cmpl   $0x0,0x490(%rsp)
je     1472 <opt_snl+0x2f2>
cmpl   $0x0,0x0(%r13)
jle    1472 <opt_snl+0x2f2>
mov    0x498(%rsp),%r13
mov    %rsp,%r12
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2c87(%rip),%rax
mov    (%rax),%edi
lea    0xdb3(%rip),%rsi
xor    %ebx,%ebx
mov    %r12,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
movl   $0x1,0x0(%rbp)
jmp    1472 <opt_snl+0x2f2>
mov    %rsi,%r12
mov    %rsi,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13a6 <opt_snl+0x226>
mov    %r12,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    1472 <opt_snl+0x2f2>
mov    0x440(%rsp),%rbx
mov    0x438(%rsp),%rdi
mov    0x430(%rsp),%rax
movl   $0x1,(%rax)
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
addl   $0x1,0x0(%r13)
mov    $0x1,%ebx
jmp    1472 <opt_snl+0x2f2>
lea    0xd27(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
test   %rax,%rax
je     1458 <opt_snl+0x2d8>
mov    %r13,%rcx
jmp    145b <opt_snl+0x2db>
lea    0xd05(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
test   %rax,%rax
je     1465 <opt_snl+0x2e5>
mov    %r13,%rcx
jmp    1468 <opt_snl+0x2e8>
mov    0x4a0(%rsp),%r10d
sub    $0x8,%rsp
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %r13,%r8
mov    %r12d,%r9d
push   %rax
push   %r11
push   %r10
call   10a0 <eca_opt_print_option_xml@plt>
add    $0x20,%rsp
jmp    1470 <opt_snl+0x2f0>
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1090 <eca_opt_print_usage_long@plt>
jmp    1470 <opt_snl+0x2f0>
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1070 <eca_opt_print_usage_long_nroff@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x3e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [73 x i8] c"Error Processing Option %s! The option %s is required but is absent.\0A\00"
@.str.1 = [81 x i8] c"Error Processing Option %s! The option %s is absent, but is required when %s\0A\00"
@.str.2 = [107 x i8] c"Error Processing Option %s! The option %s is used %d times but should have been used at most %d times.\0A\00"
@.str.3 = [63 x i8] c"Error Processing Option %s! Conflicting options when %s %s\0A\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [3 x i8] c"%s\00"
define i32 @opt_snl(i32* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32 %7, i32* %8, i8* %9, i8* %10, i32 %11, i32* %12, i32 %13, i32 %14, i32 %15, i32 %16, i8* %17, i32 %18, i32 %19, i32 %20, i8* %21, i32 %22) {
%24 = alloca i32
%25 = alloca i32*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i8*
%32 = alloca i32
%33 = alloca i32*
%34 = alloca i8*
%35 = alloca i8*
%36 = alloca i32
%37 = alloca i32*
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
%42 = alloca i8*
%43 = alloca i32
%44 = alloca i32
%45 = alloca i32
%46 = alloca i8*
%47 = alloca i32
%48 = alloca [1000 x i8]
store i32* %0, i32** %25
store i8* %1, i8** %26
store i8* %2, i8** %27
store i8* %3, i8** %28
store i8* %4, i8** %29
store i8* %5, i8** %30
store i8* %6, i8** %31
store i32 %7, i32* %32
store i32* %8, i32** %33
store i8* %9, i8** %34
store i8* %10, i8** %35
store i32 %11, i32* %36
store i32* %12, i32** %37
store i32 %13, i32* %38
store i32 %14, i32* %39
store i32 %15, i32* %40
store i32 %16, i32* %41
store i8* %17, i8** %42
store i32 %18, i32* %43
store i32 %19, i32* %44
store i32 %20, i32* %45
store i8* %21, i8** %46
store i32 %22, i32* %47
%49 = load i32, i32* %36
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %128
51: ; preds = %23
%52 = load i32*, i32** %25
%53 = load i32, i32* %52
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %51
%56 = load i32, i32* %40
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %68
58: ; preds = %55
%59 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%60 = load i8*, i8** %27
%61 = load i8*, i8** %28
%62 = call i32 @option_name(i8* %59, i8* %60, i8* %61)
%63 = load i32, i32* @stderr
%64 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%65 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%66 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %64, i8* %65)
%67 = load i32*, i32** %37
store i32 1, i32* %67
br label %68
68: ; preds = %58, %55, %51
%69 = load i32*, i32** %25
%70 = load i32, i32* %69
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %89
72: ; preds = %68
%73 = load i32, i32* %40
%74 = icmp eq i32 %73, 2
br i1 %74, label %75, label %89
75: ; preds = %72
%76 = load i32, i32* %41
%77 = icmp sgt i32 %76, 0
br i1 %77, label %78, label %89
78: ; preds = %75
%79 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%80 = load i8*, i8** %27
%81 = load i8*, i8** %28
%82 = call i32 @option_name(i8* %79, i8* %80, i8* %81)
%83 = load i32, i32* @stderr
%84 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%85 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%86 = load i8*, i8** %42
%87 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* %84, i8* %85, i8* %86)
%88 = load i32*, i32** %37
store i32 1, i32* %88
br label %89
89: ; preds = %78, %75, %72, %68
%90 = load i32*, i32** %25
%91 = load i32, i32* %90
%92 = load i32, i32* %43
%93 = icmp sgt i32 %91, %92
br i1 %93, label %94, label %107
94: ; preds = %89
%95 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%96 = load i8*, i8** %27
%97 = load i8*, i8** %28
%98 = call i32 @option_name(i8* %95, i8* %96, i8* %97)
%99 = load i32, i32* @stderr
%100 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%101 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%102 = load i32*, i32** %25
%103 = load i32, i32* %102
%104 = load i32, i32* %43
%105 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.2, i64 0, i64 0), i8* %100, i8* %101, i32 %103, i32 %104)
%106 = load i32*, i32** %37
store i32 1, i32* %106
br label %107
107: ; preds = %94, %89
%108 = load i32, i32* %44
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %127
110: ; preds = %107
%111 = load i32, i32* %45
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %127
113: ; preds = %110
%114 = load i32*, i32** %25
%115 = load i32, i32* %114
%116 = icmp sgt i32 %115, 0
br i1 %116, label %117, label %127
117: ; preds = %113
%118 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%119 = load i8*, i8** %27
%120 = load i8*, i8** %28
%121 = call i32 @option_name(i8* %118, i8* %119, i8* %120)
%122 = load i32, i32* @stderr
%123 = getelementptr inbounds [1000 x i8], [1000 x i8]* %48, i64 0, i64 0
%124 = load i8*, i8** %46
%125 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i8* %123, i8* %124)
%126 = load i32*, i32** %37
store i32 1, i32* %126
br label %127
127: ; preds = %117, %113, %110, %107
store i32 0, i32* %24
br label %220
128: ; preds = %23
%129 = load i32, i32* %32
%130 = icmp eq i32 %129, 2
br i1 %130, label %131, label %150
131: ; preds = %128
%132 = load i8*, i8** %31
%133 = call i64 @strcmp(i8* %132, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%134 = icmp eq i64 %133, 0
br i1 %134, label %135, label %142
135: ; preds = %131
%136 = load i8*, i8** %27
%137 = load i8*, i8** %28
%138 = load i8*, i8** %29
%139 = load i8*, i8** %30
%140 = load i32, i32* %38
%141 = call i32 @eca_opt_print_usage_long(i8* %136, i8* %137, i8* %138, i8* %139, i32 %140)
br label %149
142: ; preds = %131
%143 = load i8*, i8** %27
%144 = load i8*, i8** %28
%145 = load i8*, i8** %29
%146 = load i8*, i8** %31
%147 = load i32, i32* %38
%148 = call i32 @eca_opt_print_usage_long(i8* %143, i8* %144, i8* %145, i8* %146, i32 %147)
br label %149
149: ; preds = %142, %135
store i32 0, i32* %24
br label %220
150: ; preds = %128
%151 = load i32, i32* %32
%152 = icmp eq i32 %151, 3
br i1 %152, label %153, label %172
153: ; preds = %150
%154 = load i8*, i8** %31
%155 = call i64 @strcmp(i8* %154, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%156 = icmp eq i64 %155, 0
br i1 %156, label %157, label %164
157: ; preds = %153
%158 = load i8*, i8** %27
%159 = load i8*, i8** %28
%160 = load i8*, i8** %29
%161 = load i8*, i8** %30
%162 = load i32, i32* %38
%163 = call i32 @eca_opt_print_usage_long_nroff(i8* %158, i8* %159, i8* %160, i8* %161, i32 %162)
br label %171
164: ; preds = %153
%165 = load i8*, i8** %27
%166 = load i8*, i8** %28
%167 = load i8*, i8** %29
%168 = load i8*, i8** %31
%169 = load i32, i32* %38
%170 = call i32 @eca_opt_print_usage_long_nroff(i8* %165, i8* %166, i8* %167, i8* %168, i32 %169)
br label %171
171: ; preds = %164, %157
store i32 0, i32* %24
br label %220
172: ; preds = %150
%173 = load i32, i32* %32
%174 = icmp eq i32 %173, 4
br i1 %174, label %175, label %186
175: ; preds = %172
%176 = load i8*, i8** %27
%177 = load i8*, i8** %28
%178 = load i8*, i8** %29
%179 = load i8*, i8** %30
%180 = load i8*, i8** %31
%181 = load i32, i32* %38
%182 = load i32, i32* %47
%183 = load i32, i32* %40
%184 = load i32, i32* %43
%185 = call i32 @eca_opt_print_option_xml(i8* %176, i8* %177, i8* %178, i8* %179, i8* %180, i32 %181, i32 %182, i32 %183, i32 %184)
store i32 0, i32* %24
br label %220
186: ; preds = %172
%187 = load i32, i32* %32
%188 = icmp eq i32 %187, 1
br i1 %188, label %189, label %197
189: ; preds = %186
%190 = load i8*, i8** %27
%191 = load i8*, i8** %28
%192 = load i8*, i8** %29
%193 = load i8*, i8** %30
%194 = load i32, i32* %38
%195 = load i32, i32* %39
%196 = call i32 @eca_opt_print_usage_short(i8* %190, i8* %191, i8* %192, i8* %193, i32 %194, i32 %195)
store i32 0, i32* %24
br label %220
197: ; preds = %186
%198 = load i8*, i8** %26
%199 = load i8*, i8** %27
%200 = call i64 @strcmp(i8* %198, i8* %199)
%201 = icmp eq i64 %200, 0
br i1 %201, label %207, label %202
202: ; preds = %197
%203 = load i8*, i8** %26
%204 = load i8*, i8** %28
%205 = call i64 @strcmp(i8* %203, i8* %204)
%206 = icmp eq i64 %205, 0
br i1 %206, label %207, label %219
207: ; preds = %202, %197
%208 = load i32*, i32** %33
store i32 1, i32* %208
%209 = load i8*, i8** %34
%210 = load i8*, i8** %28
%211 = call i32 @sprintf(i8* %209, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %210)
%212 = load i8*, i8** %35
%213 = load i8*, i8** %27
%214 = call i32 @sprintf(i8* %212, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %213)
%215 = load i32*, i32** %25
%216 = load i32, i32* %215
%217 = add nsw i32 %216, 1
%218 = load i32*, i32** %25
store i32 %217, i32* %218
store i32 1, i32* %24
br label %220
219: ; preds = %202
store i32 0, i32* %24
br label %220
220: ; preds = %219, %207, %189, %175, %171, %149, %127
%221 = load i32, i32* %24
ret i32 %221
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [73 x i8] c"Error Processing Option %s! The option %s is required but is absent.\0A\00"
@.str.1 = [81 x i8] c"Error Processing Option %s! The option %s is absent, but is required when %s\0A\00"
@.str.2 = [107 x i8] c"Error Processing Option %s! The option %s is used %d times but should have been used at most %d times.\0A\00"
@.str.3 = [63 x i8] c"Error Processing Option %s! Conflicting options when %s %s\0A\00"
@.str.4 = [1 x i8] zeroinitializer
define i32 @opt_snl(i32* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32 %7, i32* nocapture writeonly %8, i8* %9, i8* %10, i32 %11, i32* nocapture writeonly %12, i32 %13, i32 %14, i32 %15, i32 %16, i8* %17, i32 %18, i32 %19, i32 %20, i8* %21, i32 %22) {
%24 = alloca [1000 x i8]
%25 = getelementptr inbounds [1000 x i8], [1000 x i8]* %24, i64 0, i64 0
%26 = icmp eq i32 %11, 1
br i1 %26, label %27, label %65
27: ; preds = %23
%28 = load i32, i32* %0
%29 = icmp eq i32 %28, 0
%30 = icmp eq i32 %15, 1
%31 = and i1 %30, %29
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = call i32 @option_name(i8* %25, i8* %2, i8* %3)
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %25, i8* %25)
br label %45
36: ; preds = %27
%37 = icmp eq i32 %15, 2
%38 = and i1 %37, %29
%39 = icmp sgt i32 %16, 0
%40 = and i1 %39, %38
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = call i32 @option_name(i8* %25, i8* %2, i8* %3)
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* %25, i8* %25, i8* %17)
br label %45
45: ; preds = %41, %32
store i32 1, i32* %12
br label %46
46: ; preds = %45, %36
%47 = load i32, i32* %0
%48 = icmp sgt i32 %47, %18
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = call i32 @option_name(i8* %25, i8* %2, i8* %3)
%51 = load i32, i32* @stderr
%52 = load i32, i32* %0
%53 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.2, i64 0, i64 0), i8* %25, i8* %25, i32 %52, i32 %18)
store i32 1, i32* %12
br label %54
54: ; preds = %49, %46
%55 = icmp ne i32 %19, 0
%56 = icmp ne i32 %20, 0
%57 = and i1 %55, %56
br i1 %57, label %58, label %95
58: ; preds = %54
%59 = load i32, i32* %0
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %95
61: ; preds = %58
%62 = call i32 @option_name(i8* %25, i8* %2, i8* %3)
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i8* %25, i8* %21)
store i32 1, i32* %12
br label %95
65: ; preds = %23
switch i32 %7, label %84 [
i32 2, label %66
i32 3, label %73
i32 4, label %80
i32 1, label %82
]
66: ; preds = %65
%67 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = tail call i32 @eca_opt_print_usage_long(i8* %2, i8* %3, i8* %4, i8* %5, i32 %13)
br label %95
71: ; preds = %66
%72 = tail call i32 @eca_opt_print_usage_long(i8* %2, i8* %3, i8* %4, i8* %6, i32 %13)
br label %95
73: ; preds = %65
%74 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = tail call i32 @eca_opt_print_usage_long_nroff(i8* %2, i8* %3, i8* %4, i8* %5, i32 %13)
br label %95
78: ; preds = %73
%79 = tail call i32 @eca_opt_print_usage_long_nroff(i8* %2, i8* %3, i8* %4, i8* %6, i32 %13)
br label %95
80: ; preds = %65
%81 = tail call i32 @eca_opt_print_option_xml(i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32 %13, i32 %22, i32 %15, i32 %18)
br label %95
82: ; preds = %65
%83 = tail call i32 @eca_opt_print_usage_short(i8* %2, i8* %3, i8* %4, i8* %5, i32 %13, i32 %14)
br label %95
84: ; preds = %65
%85 = tail call i64 @strcmp(i8* %1, i8* %2)
%86 = icmp eq i64 %85, 0
br i1 %86, label %90, label %87
87: ; preds = %84
%88 = tail call i64 @strcmp(i8* %1, i8* %3)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %87, %84
store i32 1, i32* %8
%91 = tail call i8* @strcpy(i8* dereferenceable(1) %9, i8* dereferenceable(1) %3)
%92 = tail call i8* @strcpy(i8* dereferenceable(1) %10, i8* dereferenceable(1) %2)
%93 = load i32, i32* %0
%94 = add nsw i32 %93, 1
store i32 %94, i32* %0
br label %95
95: ; preds = %87, %76, %78, %69, %71, %54, %58, %61, %90, %82, %80
%96 = phi i32 [ 0, %80 ], [ 0, %82 ], [ 1, %90 ], [ 0, %61 ], [ 0, %58 ], [ 0, %54 ], [ 0, %71 ], [ 0, %69 ], [ 0, %78 ], [ 0, %76 ], [ 0, %87 ]
ret i32 %96
}