#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*/ SimpleProcArgs(char const *, char *, char *, int *,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
scalar_t__ strcmp(char const *, char *);
void eca_opt_print_usage_long_nroff(const char *shortopt, const char *longopt,
                                    const char *args, const char *comment,
                                    int __END_OF_OPTS) {
  char tempStr[1000];
  char NRC[55];
  char ChoiceElements[500];
  char ChoiceLessString[500];
  int ArgToksUsed[8];
  if (strcmp(args, "") == 0) {
    sprintf(NRC, ".B ");
  } else {
    sprintf(NRC, ".BI ");
  }
  if (strcmp(shortopt, "-") != 0 && strcmp(longopt, "--") != 0) {
    sprintf(tempStr, "%s , %s ", shortopt, longopt);
  } else if (strcmp(shortopt, "-") == 0) {
    sprintf(tempStr, "%s", longopt);
  } else if (strcmp(longopt, "--") == 0) {
    sprintf(tempStr, "%s", shortopt);
  }
  printf("%s \"%s\" ", NRC, tempStr);
  if (strcmp(args, "") != 0) {
    printf("\"   ");
    SimpleProcArgs(args, ChoiceElements, ChoiceLessString, ArgToksUsed, 0);
    printf("%s", ChoiceLessString);
    printf("\"");
  }
  printf("\n");
  printf(".RS\n%s\n.RE\n.PP\n", comment);
}


x86 assembly (clang, -O0):
<eca_opt_print_usage_long_nroff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x870,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1193 <eca_opt_print_usage_long_nroff+0x53>
lea    -0x450(%rbp),%rdi
lea    0xe79(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
jmp    11a8 <eca_opt_print_usage_long_nroff+0x68>
lea    -0x450(%rbp),%rdi
lea    0xe63(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe57(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11fe <eca_opt_print_usage_long_nroff+0xbe>
mov    -0x10(%rbp),%rdi
lea    0xe3c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11fe <eca_opt_print_usage_long_nroff+0xbe>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
jmp    1273 <eca_opt_print_usage_long_nroff+0x133>
mov    -0x8(%rbp),%rdi
lea    0xe01(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1236 <eca_opt_print_usage_long_nroff+0xf6>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
jmp    126e <eca_opt_print_usage_long_nroff+0x12e>
mov    -0x10(%rbp),%rdi
lea    0xdc8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <eca_opt_print_usage_long_nroff+0x129>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xdb3(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
jmp    126e <eca_opt_print_usage_long_nroff+0x12e>
jmp    1273 <eca_opt_print_usage_long_nroff+0x133>
lea    -0x450(%rbp),%rsi
lea    -0x410(%rbp),%rdx
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     12fb <eca_opt_print_usage_long_nroff+0x1bb>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x650(%rbp),%rsi
lea    -0x850(%rbp),%rdx
lea    -0x870(%rbp),%rcx
xor    %r8d,%r8d
call   1050 <SimpleProcArgs@plt>
lea    -0x850(%rbp),%rsi
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x870,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eca_opt_print_usage_long_nroff>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x848,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xeb0(%rip),%rsi
mov    %rdx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     119c <eca_opt_print_usage_long_nroff+0x3c>
movb   $0x0,0x4(%rsp)
movl   $0x2049422e,(%rsp)
jmp    11a3 <eca_opt_print_usage_long_nroff+0x43>
movl   $0x20422e,(%rsp)
lea    0xe5c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11e6 <eca_opt_print_usage_long_nroff+0x86>
lea    0xe47(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11e6 <eca_opt_print_usage_long_nroff+0x86>
lea    0xe36(%rip),%rsi
lea    0x60(%rsp),%rdi
mov    %rbx,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1080 <sprintf@plt>
jmp    1225 <eca_opt_print_usage_long_nroff+0xc5>
lea    0xe19(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1218 <eca_opt_print_usage_long_nroff+0xb8>
lea    0xe04(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1225 <eca_opt_print_usage_long_nroff+0xc5>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
jmp    1220 <eca_opt_print_usage_long_nroff+0xc0>
lea    0x60(%rsp),%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
lea    0xde8(%rip),%rdi
mov    %rsp,%rsi
lea    0x60(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdef(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     129b <eca_opt_print_usage_long_nroff+0x13b>
lea    0xdc7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x650(%rsp),%rsi
lea    0x450(%rsp),%rbx
lea    0x40(%rsp),%rcx
mov    %r15,%rdi
mov    %rbx,%rdx
xor    %r8d,%r8d
call   1070 <SimpleProcArgs@plt>
lea    0xd8a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x22,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd76(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x848,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c".B \00"
@.str.2 = [5 x i8] c".BI \00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [3 x i8] c"--\00"
@.str.5 = [9 x i8] c"%s , %s \00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [9 x i8] c"%s \22%s\22 \00"
@.str.8 = [5 x i8] c"\22 \00"
@.str.9 = [2 x i8] c"\22\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [16 x i8] c".RS\0A%s\0A.RE\0A.PP\0A\00"
define void @eca_opt_print_usage_long_nroff(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca [1000 x i8]
%12 = alloca [55 x i8]
%13 = alloca [500 x i8]
%14 = alloca [500 x i8]
%15 = alloca [8 x i32]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%16 = load i8*, i8** %8
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %5
%20 = getelementptr inbounds [55 x i8], [55 x i8]* %12, i64 0, i64 0
%21 = call i32 (i8*, i8*, ...) @sprintf(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %25
22: ; preds = %5
%23 = getelementptr inbounds [55 x i8], [55 x i8]* %12, i64 0, i64 0
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %22, %19
%26 = load i8*, i8** %6
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load i8*, i8** %7
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%35 = load i8*, i8** %6
%36 = load i8*, i8** %7
%37 = call i32 (i8*, i8*, ...) @sprintf(i8* %34, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %35, i8* %36)
br label %56
38: ; preds = %29, %25
%39 = load i8*, i8** %6
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%44 = load i8*, i8** %7
%45 = call i32 (i8*, i8*, ...) @sprintf(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %44)
br label %55
46: ; preds = %38
%47 = load i8*, i8** %7
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%52 = load i8*, i8** %6
%53 = call i32 (i8*, i8*, ...) @sprintf(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %52)
br label %54
54: ; preds = %50, %46
br label %55
55: ; preds = %54, %42
br label %56
56: ; preds = %55, %33
%57 = getelementptr inbounds [55 x i8], [55 x i8]* %12, i64 0, i64 0
%58 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %57, i8* %58)
%60 = load i8*, i8** %8
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %73
63: ; preds = %56
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%65 = load i8*, i8** %8
%66 = getelementptr inbounds [500 x i8], [500 x i8]* %13, i64 0, i64 0
%67 = getelementptr inbounds [500 x i8], [500 x i8]* %14, i64 0, i64 0
%68 = getelementptr inbounds [8 x i32], [8 x i32]* %15, i64 0, i64 0
%69 = call i32 @SimpleProcArgs(i8* %65, i8* %66, i8* %67, i32* %68, i32 0)
%70 = getelementptr inbounds [500 x i8], [500 x i8]* %14, i64 0, i64 0
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %73
73: ; preds = %63, %56
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%75 = load i8*, i8** %9
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %75)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.2 = [5 x i8] c".BI \00"
@.str.3 = [2 x i8] c"-\00"
@.str.4 = [3 x i8] c"--\00"
@.str.5 = [9 x i8] c"%s , %s \00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [9 x i8] c"%s \22%s\22 \00"
@.str.8 = [5 x i8] c"\22 \00"
@.str.11 = [16 x i8] c".RS\0A%s\0A.RE\0A.PP\0A\00"
define void @eca_opt_print_usage_long_nroff(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca [1000 x i8]
%7 = alloca [55 x i8]
%8 = alloca [500 x i8]
%9 = alloca [500 x i8]
%10 = alloca [8 x i32]
%11 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [55 x i8], [55 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [500 x i8], [500 x i8]* %8, i64 0, i64 0
%14 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 0
%15 = bitcast [8 x i32]* %10 to i8*
%16 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %5
%19 = bitcast [55 x i8]* %7 to i32*
store i32 2114094, i32* %19
br label %21
20: ; preds = %5
br label %21
21: ; preds = %20, %18
%22 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %24
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %1)
br label %39
29: ; preds = %24, %21
%30 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i8* @strcpy(i8* %11, i8* dereferenceable(1) %1)
br label %39
34: ; preds = %29
%35 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i8* @strcpy(i8* %11, i8* dereferenceable(1) %0)
br label %39
39: ; preds = %32, %37, %34, %27
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %12, i8* %11)
%41 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %49, label %43
43: ; preds = %39
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%45 = getelementptr inbounds [8 x i32], [8 x i32]* %10, i64 0, i64 0
%46 = call i32 @SimpleProcArgs(i8* %2, i8* %13, i8* %14, i32* %45, i32 0)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %14)
%48 = call i32 @putchar(i32 34)
br label %49
49: ; preds = %43, %39
%50 = call i32 @putchar(i32 10)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %3)
ret void
}