#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,
                                            char const *, 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, const char *OptionName,
            int UsedDuringExecution) {
  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  %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\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, OptionName, UsedDuringExecution);
    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
push   %r14
push   %rbx
sub    $0x450,%rsp
mov    0xa0(%rbp),%eax
mov    0x98(%rbp),%rax
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,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
cmpl   $0x1,0x38(%rbp)
jne    1392 <opt_snl+0x212>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jne    125a <opt_snl+0xda>
cmpl   $0x1,0x58(%rbp)
jne    125a <opt_snl+0xda>
lea    -0x430(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
lea    -0x430(%rbp),%rdx
lea    -0x430(%rbp),%rcx
lea    0xdb7(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jne    12c2 <opt_snl+0x142>
cmpl   $0x2,0x58(%rbp)
jne    12c2 <opt_snl+0x142>
cmpl   $0x0,0x60(%rbp)
jle    12c2 <opt_snl+0x142>
lea    -0x430(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
lea    -0x430(%rbp),%rdx
lea    -0x430(%rbp),%rcx
mov    0x68(%rbp),%r8
lea    0xd98(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
cmp    0x70(%rbp),%eax
jle    131f <opt_snl+0x19f>
lea    -0x430(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
lea    -0x430(%rbp),%rdx
lea    -0x430(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    (%rax),%r8d
mov    0x70(%rbp),%r9d
lea    0xd88(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
cmpl   $0x0,0x78(%rbp)
je     1386 <opt_snl+0x206>
cmpl   $0x0,0x80(%rbp)
je     1386 <opt_snl+0x206>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jle    1386 <opt_snl+0x206>
lea    -0x430(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
lea    -0x430(%rbp),%rdx
mov    0x88(%rbp),%rcx
lea    0xd8c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
cmpl   $0x2,0x18(%rbp)
jne    13f9 <opt_snl+0x279>
mov    0x10(%rbp),%rdi
lea    0xd59(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13d4 <opt_snl+0x254>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1080 <eca_opt_print_usage_long@plt>
jmp    13ed <opt_snl+0x26d>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    0x10(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1080 <eca_opt_print_usage_long@plt>
movl   $0x0,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
cmpl   $0x3,0x18(%rbp)
jne    1460 <opt_snl+0x2e0>
mov    0x10(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    143b <opt_snl+0x2bb>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1060 <eca_opt_print_usage_long_nroff@plt>
jmp    1454 <opt_snl+0x2d4>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    0x10(%rbp),%rcx
mov    0x48(%rbp),%r8d
call   1060 <eca_opt_print_usage_long_nroff@plt>
movl   $0x0,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
cmpl   $0x4,0x18(%rbp)
jne    14c4 <opt_snl+0x344>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x48(%rbp),%r9d
mov    0x90(%rbp),%r14d
mov    0x58(%rbp),%ebx
mov    0x70(%rbp),%r11d
mov    0x98(%rbp),%r10
mov    0xa0(%rbp),%eax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1090 <eca_opt_print_option_xml@plt>
movl   $0x0,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
cmpl   $0x1,0x18(%rbp)
jne    14f7 <opt_snl+0x377>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    0x48(%rbp),%r8d
mov    0x50(%rbp),%r9d
call   1040 <eca_opt_print_usage_short@plt>
movl   $0x0,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1525 <opt_snl+0x3a5>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1572 <opt_snl+0x3f2>
mov    0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    0x28(%rbp),%rdi
mov    -0x38(%rbp),%rdx
lea    0xbff(%rip),%rsi
call   10a0 <sprintf@plt>
mov    0x30(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xbeb(%rip),%rsi
call   10a0 <sprintf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x14(%rbp)
jmp    1579 <opt_snl+0x3f9>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x450,%rsp
pop    %rbx
pop    %r14
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,%rbx
mov    0x480(%rsp),%eax
mov    0x468(%rsp),%r11d
cmpl   $0x1,0x448(%rsp)
01
jne    11fd <opt_snl+0x7d>
mov    (%rbx),%ecx
cmp    $0x1,%r11d
jne    1257 <opt_snl+0xd7>
test   %ecx,%ecx
jne    1257 <opt_snl+0xd7>
mov    %rax,%r13
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xe25(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    12a7 <opt_snl+0x127>
mov    0x428(%rsp),%ecx
add    $0xffffffff,%ecx
cmp    $0x3,%ecx
ja     1376 <opt_snl+0x1f6>
mov    %r9,%rbp
mov    %r8,%r13
mov    0x458(%rsp),%r12d
mov    0x420(%rsp),%rbx
lea    0xdd3(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    0x460(%rsp),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1050 <eca_opt_print_usage_short@plt>
jmp    1478 <opt_snl+0x2f8>
cmpl   $0x0,0x470(%rsp)
jle    12b8 <opt_snl+0x138>
cmp    $0x2,%r11d
jne    12b8 <opt_snl+0x138>
test   %ecx,%ecx
jne    12b8 <opt_snl+0x138>
mov    %rax,%r13
mov    0x478(%rsp),%r12
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
lea    0xdc2(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x450(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13,%rax
mov    0x488(%rsp),%r12d
cmp    %eax,(%rbx)
jle    1309 <opt_snl+0x189>
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rax,%r13
call   1040 <option_name@plt>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%r8d
lea    0xdbb(%rip),%rsi
mov    %rbp,%rdx
mov    %rbp,%rcx
mov    %r13d,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x450(%rsp),%rax
movl   $0x1,(%rax)
xor    %ebp,%ebp
test   %r12d,%r12d
je     147a <opt_snl+0x2fa>
cmpl   $0x0,0x490(%rsp)
je     147a <opt_snl+0x2fa>
cmpl   $0x0,(%rbx)
jle    147a <opt_snl+0x2fa>
mov    0x498(%rsp),%r12
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
lea    0xdbd(%rip),%rsi
xor    %ebp,%ebp
mov    %rbx,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x450(%rsp),%rax
movl   $0x1,(%rax)
jmp    147a <opt_snl+0x2fa>
mov    %rsi,%r12
mov    %rsi,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     139f <opt_snl+0x21f>
mov    %r12,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
jne    147a <opt_snl+0x2fa>
mov    0x440(%rsp),%rbp
mov    0x438(%rsp),%rdi
mov    0x430(%rsp),%rax
movl   $0x1,(%rax)
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
addl   $0x1,(%rbx)
mov    $0x1,%ebp
jmp    147a <opt_snl+0x2fa>
lea    0xd2c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
test   %rax,%rax
je     1460 <opt_snl+0x2e0>
mov    %rbx,%rcx
jmp    1463 <opt_snl+0x2e3>
lea    0xd0a(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
test   %rax,%rax
je     146d <opt_snl+0x2ed>
mov    %rbx,%rcx
jmp    1470 <opt_snl+0x2f0>
mov    0x4b0(%rsp),%r10d
mov    %r12d,%r9d
mov    0x4a0(%rsp),%r12d
sub    $0x8,%rsp
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
push   %r10
push   0x4b8(%rsp)
push   %rax
push   %r11
push   %r12
call   10a0 <eca_opt_print_option_xml@plt>
add    $0x30,%rsp
jmp    1478 <opt_snl+0x2f8>
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1090 <eca_opt_print_usage_long@plt>
jmp    1478 <opt_snl+0x2f8>
mov    %rbp,%rcx
mov    %r12d,%r8d
call   1070 <eca_opt_print_usage_long_nroff@plt>
xor    %ebp,%ebp
mov    %ebp,%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 = [77 x i8] c"Error Processing Option %s! The option %s is absent, but is required %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 = [60 x i8] c"Error Processing Option %s! Conflicting options when %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, i8* %23, i32 %24) {
%26 = alloca i32
%27 = alloca i32*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i8*
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i32
%35 = alloca i32*
%36 = alloca i8*
%37 = alloca i8*
%38 = alloca i32
%39 = alloca i32*
%40 = alloca i32
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca i8*
%45 = alloca i32
%46 = alloca i32
%47 = alloca i32
%48 = alloca i8*
%49 = alloca i32
%50 = alloca i8*
%51 = alloca i32
%52 = alloca [1000 x i8]
store i32* %0, i32** %27
store i8* %1, i8** %28
store i8* %2, i8** %29
store i8* %3, i8** %30
store i8* %4, i8** %31
store i8* %5, i8** %32
store i8* %6, i8** %33
store i32 %7, i32* %34
store i32* %8, i32** %35
store i8* %9, i8** %36
store i8* %10, i8** %37
store i32 %11, i32* %38
store i32* %12, i32** %39
store i32 %13, i32* %40
store i32 %14, i32* %41
store i32 %15, i32* %42
store i32 %16, i32* %43
store i8* %17, i8** %44
store i32 %18, i32* %45
store i32 %19, i32* %46
store i32 %20, i32* %47
store i8* %21, i8** %48
store i32 %22, i32* %49
store i8* %23, i8** %50
store i32 %24, i32* %51
%53 = load i32, i32* %38
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %132
55: ; preds = %25
%56 = load i32*, i32** %27
%57 = load i32, i32* %56
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %72
59: ; preds = %55
%60 = load i32, i32* %42
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%64 = load i8*, i8** %29
%65 = load i8*, i8** %30
%66 = call i32 @option_name(i8* %63, i8* %64, i8* %65)
%67 = load i32, i32* @stderr
%68 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%70 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %68, i8* %69)
%71 = load i32*, i32** %39
store i32 1, i32* %71
br label %72
72: ; preds = %62, %59, %55
%73 = load i32*, i32** %27
%74 = load i32, i32* %73
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %93
76: ; preds = %72
%77 = load i32, i32* %42
%78 = icmp eq i32 %77, 2
br i1 %78, label %79, label %93
79: ; preds = %76
%80 = load i32, i32* %43
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %93
82: ; preds = %79
%83 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%84 = load i8*, i8** %29
%85 = load i8*, i8** %30
%86 = call i32 @option_name(i8* %83, i8* %84, i8* %85)
%87 = load i32, i32* @stderr
%88 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%89 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%90 = load i8*, i8** %44
%91 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.1, i64 0, i64 0), i8* %88, i8* %89, i8* %90)
%92 = load i32*, i32** %39
store i32 1, i32* %92
br label %93
93: ; preds = %82, %79, %76, %72
%94 = load i32*, i32** %27
%95 = load i32, i32* %94
%96 = load i32, i32* %45
%97 = icmp sgt i32 %95, %96
br i1 %97, label %98, label %111
98: ; preds = %93
%99 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%100 = load i8*, i8** %29
%101 = load i8*, i8** %30
%102 = call i32 @option_name(i8* %99, i8* %100, i8* %101)
%103 = load i32, i32* @stderr
%104 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%105 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%106 = load i32*, i32** %27
%107 = load i32, i32* %106
%108 = load i32, i32* %45
%109 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %103, i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.2, i64 0, i64 0), i8* %104, i8* %105, i32 %107, i32 %108)
%110 = load i32*, i32** %39
store i32 1, i32* %110
br label %111
111: ; preds = %98, %93
%112 = load i32, i32* %46
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %131
114: ; preds = %111
%115 = load i32, i32* %47
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %131
117: ; preds = %114
%118 = load i32*, i32** %27
%119 = load i32, i32* %118
%120 = icmp sgt i32 %119, 0
br i1 %120, label %121, label %131
121: ; preds = %117
%122 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%123 = load i8*, i8** %29
%124 = load i8*, i8** %30
%125 = call i32 @option_name(i8* %122, i8* %123, i8* %124)
%126 = load i32, i32* @stderr
%127 = getelementptr inbounds [1000 x i8], [1000 x i8]* %52, i64 0, i64 0
%128 = load i8*, i8** %48
%129 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* %127, i8* %128)
%130 = load i32*, i32** %39
store i32 1, i32* %130
br label %131
131: ; preds = %121, %117, %114, %111
store i32 0, i32* %26
br label %226
132: ; preds = %25
%133 = load i32, i32* %34
%134 = icmp eq i32 %133, 2
br i1 %134, label %135, label %154
135: ; preds = %132
%136 = load i8*, i8** %33
%137 = call i64 @strcmp(i8* %136, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %146
139: ; preds = %135
%140 = load i8*, i8** %29
%141 = load i8*, i8** %30
%142 = load i8*, i8** %31
%143 = load i8*, i8** %32
%144 = load i32, i32* %40
%145 = call i32 @eca_opt_print_usage_long(i8* %140, i8* %141, i8* %142, i8* %143, i32 %144)
br label %153
146: ; preds = %135
%147 = load i8*, i8** %29
%148 = load i8*, i8** %30
%149 = load i8*, i8** %31
%150 = load i8*, i8** %33
%151 = load i32, i32* %40
%152 = call i32 @eca_opt_print_usage_long(i8* %147, i8* %148, i8* %149, i8* %150, i32 %151)
br label %153
153: ; preds = %146, %139
store i32 0, i32* %26
br label %226
154: ; preds = %132
%155 = load i32, i32* %34
%156 = icmp eq i32 %155, 3
br i1 %156, label %157, label %176
157: ; preds = %154
%158 = load i8*, i8** %33
%159 = call i64 @strcmp(i8* %158, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%160 = icmp eq i64 %159, 0
br i1 %160, label %161, label %168
161: ; preds = %157
%162 = load i8*, i8** %29
%163 = load i8*, i8** %30
%164 = load i8*, i8** %31
%165 = load i8*, i8** %32
%166 = load i32, i32* %40
%167 = call i32 @eca_opt_print_usage_long_nroff(i8* %162, i8* %163, i8* %164, i8* %165, i32 %166)
br label %175
168: ; preds = %157
%169 = load i8*, i8** %29
%170 = load i8*, i8** %30
%171 = load i8*, i8** %31
%172 = load i8*, i8** %33
%173 = load i32, i32* %40
%174 = call i32 @eca_opt_print_usage_long_nroff(i8* %169, i8* %170, i8* %171, i8* %172, i32 %173)
br label %175
175: ; preds = %168, %161
store i32 0, i32* %26
br label %226
176: ; preds = %154
%177 = load i32, i32* %34
%178 = icmp eq i32 %177, 4
br i1 %178, label %179, label %192
179: ; preds = %176
%180 = load i8*, i8** %29
%181 = load i8*, i8** %30
%182 = load i8*, i8** %31
%183 = load i8*, i8** %32
%184 = load i8*, i8** %33
%185 = load i32, i32* %40
%186 = load i32, i32* %49
%187 = load i32, i32* %42
%188 = load i32, i32* %45
%189 = load i8*, i8** %50
%190 = load i32, i32* %51
%191 = call i32 @eca_opt_print_option_xml(i8* %180, i8* %181, i8* %182, i8* %183, i8* %184, i32 %185, i32 %186, i32 %187, i32 %188, i8* %189, i32 %190)
store i32 0, i32* %26
br label %226
192: ; preds = %176
%193 = load i32, i32* %34
%194 = icmp eq i32 %193, 1
br i1 %194, label %195, label %203
195: ; preds = %192
%196 = load i8*, i8** %29
%197 = load i8*, i8** %30
%198 = load i8*, i8** %31
%199 = load i8*, i8** %32
%200 = load i32, i32* %40
%201 = load i32, i32* %41
%202 = call i32 @eca_opt_print_usage_short(i8* %196, i8* %197, i8* %198, i8* %199, i32 %200, i32 %201)
store i32 0, i32* %26
br label %226
203: ; preds = %192
%204 = load i8*, i8** %28
%205 = load i8*, i8** %29
%206 = call i64 @strcmp(i8* %204, i8* %205)
%207 = icmp eq i64 %206, 0
br i1 %207, label %213, label %208
208: ; preds = %203
%209 = load i8*, i8** %28
%210 = load i8*, i8** %30
%211 = call i64 @strcmp(i8* %209, i8* %210)
%212 = icmp eq i64 %211, 0
br i1 %212, label %213, label %225
213: ; preds = %208, %203
%214 = load i32*, i32** %35
store i32 1, i32* %214
%215 = load i8*, i8** %36
%216 = load i8*, i8** %30
%217 = call i32 @sprintf(i8* %215, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %216)
%218 = load i8*, i8** %37
%219 = load i8*, i8** %29
%220 = call i32 @sprintf(i8* %218, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %219)
%221 = load i32*, i32** %27
%222 = load i32, i32* %221
%223 = add nsw i32 %222, 1
%224 = load i32*, i32** %27
store i32 %223, i32* %224
store i32 1, i32* %26
br label %226
225: ; preds = %208
store i32 0, i32* %26
br label %226
226: ; preds = %225, %213, %195, %179, %175, %153, %131
%227 = load i32, i32* %26
ret i32 %227
}

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