#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*/ print_indented_and_max_length(char const *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char const *, ...);
scalar_t__ strcmp(char const *, char *);
int strlen(char *);
void eca_opt_print_usage_long(const char *shortopt, const char *longopt,
                              const char *args, const char *comment,
                              int __END_OF_OPTS) {
  int i;
  char tempStr[1000];
  char ChoiceElements[500];
  char ChoiceLessString[500];
  int ArgToksUsed[8];
  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", tempStr);
  for (i = strlen(tempStr); i < __END_OF_OPTS; i++)
    printf(" ");
  if (strcmp(args, "") != 0) {
    SimpleProcArgs(args, ChoiceElements, ChoiceLessString, ArgToksUsed, 0);
    printf("%s", ChoiceLessString);
  }
  printf("\n");
  print_indented_and_max_length(comment, 70);
  printf("\n");
}


x86 assembly (clang, -O0):
<eca_opt_print_usage_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x830,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     11d5 <eca_opt_print_usage_long+0x75>
mov    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     11d5 <eca_opt_print_usage_long+0x75>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xe3a(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    124a <eca_opt_print_usage_long+0xea>
mov    -0x8(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    120d <eca_opt_print_usage_long+0xad>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe0b(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    1245 <eca_opt_print_usage_long+0xe5>
mov    -0x10(%rbp),%rdi
lea    0xde8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1240 <eca_opt_print_usage_long+0xe0>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xdd8(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    1245 <eca_opt_print_usage_long+0xe5>
jmp    124a <eca_opt_print_usage_long+0xea>
lea    -0x410(%rbp),%rsi
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x410(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1296 <eca_opt_print_usage_long+0x136>
lea    0xd92(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    126e <eca_opt_print_usage_long+0x10e>
mov    -0x18(%rbp),%rdi
lea    0xd78(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     12e6 <eca_opt_print_usage_long+0x186>
mov    -0x18(%rbp),%rdi
lea    -0x610(%rbp),%rsi
lea    -0x810(%rbp),%rdx
lea    -0x830(%rbp),%rcx
xor    %r8d,%r8d
call   1070 <SimpleProcArgs@plt>
lea    -0x810(%rbp),%rsi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    $0x46,%esi
call   1060 <print_indented_and_max_length@plt>
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x830,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eca_opt_print_usage_long>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x810,%rsp
mov    %r8d,%ebp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xe6c(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11ce <eca_opt_print_usage_long+0x5e>
lea    0xe5a(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11ce <eca_opt_print_usage_long+0x5e>
lea    0xe49(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    %rbx,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1090 <sprintf@plt>
jmp    121d <eca_opt_print_usage_long+0xad>
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1207 <eca_opt_print_usage_long+0x97>
lea    0xe17(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    121d <eca_opt_print_usage_long+0xad>
lea    0xe14(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    %rbx,%rdx
jmp    1216 <eca_opt_print_usage_long+0xa6>
lea    0xdfe(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <sprintf@plt>
lea    0xdf1(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %ebp,%eax
jge    125f <eca_opt_print_usage_long+0xef>
sub    %eax,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    1250 <eca_opt_print_usage_long+0xe0>
lea    0xdae(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12a5 <eca_opt_print_usage_long+0x135>
lea    0x610(%rsp),%rsi
lea    0x410(%rsp),%rbx
mov    %rsp,%rcx
mov    %r15,%rdi
mov    %rbx,%rdx
xor    %r8d,%r8d
call   1080 <SimpleProcArgs@plt>
lea    0xd7a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x46,%esi
call   1070 <print_indented_and_max_length@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x810,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"-\00"
@.str.1 = [3 x i8] c"--\00"
@.str.2 = [9 x i8] c"%s , %s \00"
@.str.3 = [9 x i8] c" %s \00"
@.str.4 = [4 x i8] c"%s \00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [2 x i8] c"\0A\00"
define void @eca_opt_print_usage_long(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 i32
%12 = alloca [1000 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** %6
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %5
%20 = load i8*, i8** %7
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%25 = load i8*, i8** %6
%26 = load i8*, i8** %7
%27 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %25, i8* %26)
br label %46
28: ; preds = %19, %5
%29 = load i8*, i8** %6
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%34 = load i8*, i8** %7
%35 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %34)
br label %45
36: ; preds = %28
%37 = load i8*, i8** %7
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%42 = load i8*, i8** %6
%43 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %42)
br label %44
44: ; preds = %40, %36
br label %45
45: ; preds = %44, %32
br label %46
46: ; preds = %45, %23
%47 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %47)
%49 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%50 = call i32 @strlen(i8* %49)
store i32 %50, i32* %11
br label %51
51: ; preds = %57, %46
%52 = load i32, i32* %11
%53 = load i32, i32* %10
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %57
57: ; preds = %55
%58 = load i32, i32* %11
%59 = add nsw i32 %58, 1
store i32 %59, i32* %11
br label %51
60: ; preds = %51
%61 = load i8*, i8** %8
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %72
64: ; preds = %60
%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.5, i64 0, i64 0), i8* %70)
br label %72
72: ; preds = %64, %60
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%74 = load i8*, i8** %9
%75 = call i32 @print_indented_and_max_length(i8* %74, i32 70)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

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