#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 /*<<< orphan*/);
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) {
  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 using %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, 0);
    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    $0x430,%rsp
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    137c <opt_snl+0x1fc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    1244 <opt_snl+0xc4>
cmpl   $0x1,0x58(%rbp)
jne    1244 <opt_snl+0xc4>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
lea    -0x420(%rbp),%rcx
lea    0xdcd(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    12ac <opt_snl+0x12c>
cmpl   $0x2,0x58(%rbp)
jne    12ac <opt_snl+0x12c>
cmpl   $0x0,0x60(%rbp)
jle    12ac <opt_snl+0x12c>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
lea    -0x420(%rbp),%rcx
mov    0x68(%rbp),%r8
lea    0xdae(%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    1309 <opt_snl+0x189>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2d0a(%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    0xda8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
cmpl   $0x0,0x78(%rbp)
je     1370 <opt_snl+0x1f0>
cmpl   $0x0,0x80(%rbp)
je     1370 <opt_snl+0x1f0>
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jle    1370 <opt_snl+0x1f0>
lea    -0x420(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2c98(%rip),%rax
mov    (%rax),%edi
lea    -0x420(%rbp),%rdx
mov    0x88(%rbp),%rcx
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x40(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    153b <opt_snl+0x3bb>
cmpl   $0x2,0x18(%rbp)
jne    13e3 <opt_snl+0x263>
mov    0x10(%rbp),%rdi
lea    0xd79(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13be <opt_snl+0x23e>
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    13d7 <opt_snl+0x257>
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    153b <opt_snl+0x3bb>
cmpl   $0x3,0x18(%rbp)
jne    144a <opt_snl+0x2ca>
mov    0x10(%rbp),%rdi
lea    0xd12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1425 <opt_snl+0x2a5>
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    143e <opt_snl+0x2be>
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    153b <opt_snl+0x3bb>
cmpl   $0x4,0x18(%rbp)
jne    1486 <opt_snl+0x306>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x48(%rbp),%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1090 <eca_opt_print_option_xml@plt>
movl   $0x0,-0x4(%rbp)
jmp    153b <opt_snl+0x3bb>
cmpl   $0x1,0x18(%rbp)
jne    14b9 <opt_snl+0x339>
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    153b <opt_snl+0x3bb>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     14e7 <opt_snl+0x367>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1534 <opt_snl+0x3b4>
mov    0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    0x28(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xc4a(%rip),%rsi
call   10a0 <sprintf@plt>
mov    0x30(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xc36(%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    153b <opt_snl+0x3bb>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opt_snl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3f8,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%r13
cmpl   $0x1,0x458(%rsp)
01
jne    11fd <opt_snl+0x7d>
mov    0x478(%rsp),%ecx
mov    0x460(%rsp),%rbp
mov    0x0(%r13),%eax
cmp    $0x1,%ecx
jne    1257 <opt_snl+0xd7>
test   %eax,%eax
jne    1257 <opt_snl+0xd7>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xe25(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    12a5 <opt_snl+0x125>
mov    0x438(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1377 <opt_snl+0x1f7>
mov    %r9,%r12
mov    %r8,%rbp
mov    0x468(%rsp),%r13d
mov    0x430(%rsp),%rbx
lea    0xdd3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x470(%rsp),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
mov    %r13d,%r8d
call   1050 <eca_opt_print_usage_short@plt>
jmp    1459 <opt_snl+0x2d9>
cmpl   $0x0,0x480(%rsp)
jle    12ac <opt_snl+0x12c>
cmp    $0x2,%ecx
jne    12ac <opt_snl+0x12c>
test   %eax,%eax
jne    12ac <opt_snl+0x12c>
mov    0x488(%rsp),%r12
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
lea    0xdc4(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1080 <fprintf@plt>
movl   $0x1,0x0(%rbp)
mov    0x498(%rsp),%r12d
mov    0x490(%rsp),%ebp
cmp    %ebp,0x0(%r13)
jle    1306 <opt_snl+0x186>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
mov    0x0(%r13),%r8d
lea    0xdc8(%rip),%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %ebp,%r9d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x460(%rsp),%rax
movl   $0x1,(%rax)
xor    %ebp,%ebp
test   %r12d,%r12d
je     145b <opt_snl+0x2db>
cmpl   $0x0,0x4a0(%rsp)
je     145b <opt_snl+0x2db>
cmpl   $0x0,0x0(%r13)
jle    145b <opt_snl+0x2db>
mov    0x4a8(%rsp),%r13
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xdc6(%rip),%rsi
xor    %ebp,%ebp
mov    %rbx,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x460(%rsp),%rax
movl   $0x1,(%rax)
jmp    145b <opt_snl+0x2db>
mov    %rsi,%rbx
mov    %rsi,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13a0 <opt_snl+0x220>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
jne    145b <opt_snl+0x2db>
mov    0x450(%rsp),%rbx
mov    0x448(%rsp),%rdi
mov    0x440(%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,%ebp
jmp    145b <opt_snl+0x2db>
lea    0xd36(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
test   %rax,%rax
je     1441 <opt_snl+0x2c1>
mov    %rbx,%rcx
jmp    1444 <opt_snl+0x2c4>
lea    0xd14(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
test   %rax,%rax
je     144e <opt_snl+0x2ce>
mov    %rbx,%rcx
jmp    1451 <opt_snl+0x2d1>
movl   $0x0,(%rsp)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
mov    %rbx,%r8
mov    %r13d,%r9d
call   10a0 <eca_opt_print_option_xml@plt>
jmp    1459 <opt_snl+0x2d9>
mov    %r12,%rcx
mov    %r13d,%r8d
call   1090 <eca_opt_print_usage_long@plt>
jmp    1459 <opt_snl+0x2d9>
mov    %r12,%rcx
mov    %r13d,%r8d
call   1070 <eca_opt_print_usage_long_nroff@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x3f8,%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 = [87 x i8] c"Error Processing Option %s! The option %s is absent, but is required when using %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) {
%23 = alloca i32
%24 = alloca i32*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i32
%32 = alloca i32*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i32
%36 = alloca i32*
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i8*
%42 = alloca i32
%43 = alloca i32
%44 = alloca i32
%45 = alloca i8*
%46 = alloca [1000 x i8]
store i32* %0, i32** %24
store i8* %1, i8** %25
store i8* %2, i8** %26
store i8* %3, i8** %27
store i8* %4, i8** %28
store i8* %5, i8** %29
store i8* %6, i8** %30
store i32 %7, i32* %31
store i32* %8, i32** %32
store i8* %9, i8** %33
store i8* %10, i8** %34
store i32 %11, i32* %35
store i32* %12, i32** %36
store i32 %13, i32* %37
store i32 %14, i32* %38
store i32 %15, i32* %39
store i32 %16, i32* %40
store i8* %17, i8** %41
store i32 %18, i32* %42
store i32 %19, i32* %43
store i32 %20, i32* %44
store i8* %21, i8** %45
%47 = load i32, i32* %35
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %126
49: ; preds = %22
%50 = load i32*, i32** %24
%51 = load i32, i32* %50
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %66
53: ; preds = %49
%54 = load i32, i32* %39
%55 = icmp eq i32 %54, 1
br i1 %55, label %56, label %66
56: ; preds = %53
%57 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%58 = load i8*, i8** %26
%59 = load i8*, i8** %27
%60 = call i32 @option_name(i8* %57, i8* %58, i8* %59)
%61 = load i32, i32* @stderr
%62 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%64 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %62, i8* %63)
%65 = load i32*, i32** %36
store i32 1, i32* %65
br label %66
66: ; preds = %56, %53, %49
%67 = load i32*, i32** %24
%68 = load i32, i32* %67
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %87
70: ; preds = %66
%71 = load i32, i32* %39
%72 = icmp eq i32 %71, 2
br i1 %72, label %73, label %87
73: ; preds = %70
%74 = load i32, i32* %40
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %87
76: ; preds = %73
%77 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%78 = load i8*, i8** %26
%79 = load i8*, i8** %27
%80 = call i32 @option_name(i8* %77, i8* %78, i8* %79)
%81 = load i32, i32* @stderr
%82 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%83 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%84 = load i8*, i8** %41
%85 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0), i8* %82, i8* %83, i8* %84)
%86 = load i32*, i32** %36
store i32 1, i32* %86
br label %87
87: ; preds = %76, %73, %70, %66
%88 = load i32*, i32** %24
%89 = load i32, i32* %88
%90 = load i32, i32* %42
%91 = icmp sgt i32 %89, %90
br i1 %91, label %92, label %105
92: ; preds = %87
%93 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%94 = load i8*, i8** %26
%95 = load i8*, i8** %27
%96 = call i32 @option_name(i8* %93, i8* %94, i8* %95)
%97 = load i32, i32* @stderr
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%99 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%100 = load i32*, i32** %24
%101 = load i32, i32* %100
%102 = load i32, i32* %42
%103 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.2, i64 0, i64 0), i8* %98, i8* %99, i32 %101, i32 %102)
%104 = load i32*, i32** %36
store i32 1, i32* %104
br label %105
105: ; preds = %92, %87
%106 = load i32, i32* %43
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %125
108: ; preds = %105
%109 = load i32, i32* %44
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %125
111: ; preds = %108
%112 = load i32*, i32** %24
%113 = load i32, i32* %112
%114 = icmp sgt i32 %113, 0
br i1 %114, label %115, label %125
115: ; preds = %111
%116 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%117 = load i8*, i8** %26
%118 = load i8*, i8** %27
%119 = call i32 @option_name(i8* %116, i8* %117, i8* %118)
%120 = load i32, i32* @stderr
%121 = getelementptr inbounds [1000 x i8], [1000 x i8]* %46, i64 0, i64 0
%122 = load i8*, i8** %45
%123 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %120, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0), i8* %121, i8* %122)
%124 = load i32*, i32** %36
store i32 1, i32* %124
br label %125
125: ; preds = %115, %111, %108, %105
store i32 0, i32* %23
br label %215
126: ; preds = %22
%127 = load i32, i32* %31
%128 = icmp eq i32 %127, 2
br i1 %128, label %129, label %148
129: ; preds = %126
%130 = load i8*, i8** %30
%131 = call i64 @strcmp(i8* %130, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %140
133: ; preds = %129
%134 = load i8*, i8** %26
%135 = load i8*, i8** %27
%136 = load i8*, i8** %28
%137 = load i8*, i8** %29
%138 = load i32, i32* %37
%139 = call i32 @eca_opt_print_usage_long(i8* %134, i8* %135, i8* %136, i8* %137, i32 %138)
br label %147
140: ; preds = %129
%141 = load i8*, i8** %26
%142 = load i8*, i8** %27
%143 = load i8*, i8** %28
%144 = load i8*, i8** %30
%145 = load i32, i32* %37
%146 = call i32 @eca_opt_print_usage_long(i8* %141, i8* %142, i8* %143, i8* %144, i32 %145)
br label %147
147: ; preds = %140, %133
store i32 0, i32* %23
br label %215
148: ; preds = %126
%149 = load i32, i32* %31
%150 = icmp eq i32 %149, 3
br i1 %150, label %151, label %170
151: ; preds = %148
%152 = load i8*, i8** %30
%153 = call i64 @strcmp(i8* %152, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%154 = icmp eq i64 %153, 0
br i1 %154, label %155, label %162
155: ; preds = %151
%156 = load i8*, i8** %26
%157 = load i8*, i8** %27
%158 = load i8*, i8** %28
%159 = load i8*, i8** %29
%160 = load i32, i32* %37
%161 = call i32 @eca_opt_print_usage_long_nroff(i8* %156, i8* %157, i8* %158, i8* %159, i32 %160)
br label %169
162: ; preds = %151
%163 = load i8*, i8** %26
%164 = load i8*, i8** %27
%165 = load i8*, i8** %28
%166 = load i8*, i8** %30
%167 = load i32, i32* %37
%168 = call i32 @eca_opt_print_usage_long_nroff(i8* %163, i8* %164, i8* %165, i8* %166, i32 %167)
br label %169
169: ; preds = %162, %155
store i32 0, i32* %23
br label %215
170: ; preds = %148
%171 = load i32, i32* %31
%172 = icmp eq i32 %171, 4
br i1 %172, label %173, label %181
173: ; preds = %170
%174 = load i8*, i8** %26
%175 = load i8*, i8** %27
%176 = load i8*, i8** %28
%177 = load i8*, i8** %29
%178 = load i8*, i8** %30
%179 = load i32, i32* %37
%180 = call i32 @eca_opt_print_option_xml(i8* %174, i8* %175, i8* %176, i8* %177, i8* %178, i32 %179, i32 0)
store i32 0, i32* %23
br label %215
181: ; preds = %170
%182 = load i32, i32* %31
%183 = icmp eq i32 %182, 1
br i1 %183, label %184, label %192
184: ; preds = %181
%185 = load i8*, i8** %26
%186 = load i8*, i8** %27
%187 = load i8*, i8** %28
%188 = load i8*, i8** %29
%189 = load i32, i32* %37
%190 = load i32, i32* %38
%191 = call i32 @eca_opt_print_usage_short(i8* %185, i8* %186, i8* %187, i8* %188, i32 %189, i32 %190)
store i32 0, i32* %23
br label %215
192: ; preds = %181
%193 = load i8*, i8** %25
%194 = load i8*, i8** %26
%195 = call i64 @strcmp(i8* %193, i8* %194)
%196 = icmp eq i64 %195, 0
br i1 %196, label %202, label %197
197: ; preds = %192
%198 = load i8*, i8** %25
%199 = load i8*, i8** %27
%200 = call i64 @strcmp(i8* %198, i8* %199)
%201 = icmp eq i64 %200, 0
br i1 %201, label %202, label %214
202: ; preds = %197, %192
%203 = load i32*, i32** %32
store i32 1, i32* %203
%204 = load i8*, i8** %33
%205 = load i8*, i8** %27
%206 = call i32 @sprintf(i8* %204, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %205)
%207 = load i8*, i8** %34
%208 = load i8*, i8** %26
%209 = call i32 @sprintf(i8* %207, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %208)
%210 = load i32*, i32** %24
%211 = load i32, i32* %210
%212 = add nsw i32 %211, 1
%213 = load i32*, i32** %24
store i32 %212, i32* %213
store i32 1, i32* %23
br label %215
214: ; preds = %197
store i32 0, i32* %23
br label %215
215: ; preds = %214, %202, %184, %173, %169, %147, %125
%216 = load i32, i32* %23
ret i32 %216
}

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