#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*/ 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];
  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("\"   %s\"", args);
  }
  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    $0x450,%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    0xede(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1183 <eca_opt_print_usage_long_nroff+0x53>
lea    -0x450(%rbp),%rdi
lea    0xe89(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
jmp    1198 <eca_opt_print_usage_long_nroff+0x68>
lea    -0x450(%rbp),%rdi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe67(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ee <eca_opt_print_usage_long_nroff+0xbe>
mov    -0x10(%rbp),%rdi
lea    0xe4c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11ee <eca_opt_print_usage_long_nroff+0xbe>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xe2a(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
jmp    1263 <eca_opt_print_usage_long_nroff+0x133>
mov    -0x8(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1226 <eca_opt_print_usage_long_nroff+0xf6>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
jmp    125e <eca_opt_print_usage_long_nroff+0x12e>
mov    -0x10(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1259 <eca_opt_print_usage_long_nroff+0x129>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xdc3(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
jmp    125e <eca_opt_print_usage_long_nroff+0x12e>
jmp    1263 <eca_opt_print_usage_long_nroff+0x133>
lea    -0x450(%rbp),%rsi
lea    -0x410(%rbp),%rdx
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     12ab <eca_opt_print_usage_long_nroff+0x17b>
mov    -0x18(%rbp),%rsi
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eca_opt_print_usage_long_nroff>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xec0(%rip),%rsi
mov    %rdx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     118c <eca_opt_print_usage_long_nroff+0x3c>
movb   $0x0,0x4(%rsp)
movl   $0x2049422e,(%rsp)
jmp    1193 <eca_opt_print_usage_long_nroff+0x43>
movl   $0x20422e,(%rsp)
lea    0xe6c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11d6 <eca_opt_print_usage_long_nroff+0x86>
lea    0xe57(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11d6 <eca_opt_print_usage_long_nroff+0x86>
lea    0xe46(%rip),%rsi
lea    0x40(%rsp),%rdi
mov    %rbx,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1070 <sprintf@plt>
jmp    1215 <eca_opt_print_usage_long_nroff+0xc5>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1208 <eca_opt_print_usage_long_nroff+0xb8>
lea    0xe14(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1215 <eca_opt_print_usage_long_nroff+0xc5>
lea    0x40(%rsp),%rdi
mov    %rbx,%rsi
jmp    1210 <eca_opt_print_usage_long_nroff+0xc0>
lea    0x40(%rsp),%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
lea    0xdf5(%rip),%rdi
mov    %rsp,%rsi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdff(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1250 <eca_opt_print_usage_long_nroff+0x100>
lea    0xdd4(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdc1(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x428,%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 = [8 x i8] c"\22 %s\22\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [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]
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
%13 = load i8*, i8** %8
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %5
%17 = getelementptr inbounds [55 x i8], [55 x i8]* %12, i64 0, i64 0
%18 = call i32 (i8*, i8*, ...) @sprintf(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br 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 ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %19, %16
%23 = load i8*, i8** %6
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %35
26: ; preds = %22
%27 = load i8*, i8** %7
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%32 = load i8*, i8** %6
%33 = load i8*, i8** %7
%34 = call i32 (i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %32, i8* %33)
br label %53
35: ; preds = %26, %22
%36 = load i8*, i8** %6
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%41 = load i8*, i8** %7
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %41)
br label %52
43: ; preds = %35
%44 = load i8*, i8** %7
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %43
%48 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%49 = load i8*, i8** %6
%50 = call i32 (i8*, i8*, ...) @sprintf(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %49)
br label %51
51: ; preds = %47, %43
br label %52
52: ; preds = %51, %39
br label %53
53: ; preds = %52, %30
%54 = getelementptr inbounds [55 x i8], [55 x i8]* %12, i64 0, i64 0
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %54, i8* %55)
%57 = load i8*, i8** %8
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %53
%61 = load i8*, i8** %8
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %61)
br label %63
63: ; preds = %60, %53
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%65 = load i8*, i8** %9
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* %65)
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.7 = [9 x i8] c"%s \22%s\22 \00"
@.str.8 = [8 x i8] c"\22 %s\22\00"
@.str.10 = [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 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%9 = getelementptr inbounds [55 x i8], [55 x i8]* %7, i64 0, i64 0
%10 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %5
%13 = bitcast [55 x i8]* %7 to i32*
store i32 2114094, i32* %13
br label %15
14: ; preds = %5
br label %15
15: ; preds = %14, %12
%16 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %23, label %18
18: ; preds = %15
%19 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = call i32 (i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %1)
br label %33
23: ; preds = %18, %15
%24 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i8* @strcpy(i8* %8, i8* dereferenceable(1) %1)
br label %33
28: ; preds = %23
%29 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i8* @strcpy(i8* %8, i8* dereferenceable(1) %0)
br label %33
33: ; preds = %26, %31, %28, %21
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %9, i8* %8)
%35 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %33
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %2)
br label %39
39: ; preds = %37, %33
%40 = call i32 @putchar(i32 10)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* %3)
ret void
}