#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*/ ProcArgList(char const *, int, int /*<<< orphan*/,
                               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];
  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) {
    ProcArgList(args, 2, 0, 0);
  }
  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    $0x410,%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     12c2 <eca_opt_print_usage_long+0x162>
mov    -0x18(%rbp),%rdi
mov    $0x2,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1070 <ProcArgList@plt>
lea    0xd4f(%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    0xd33(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eca_opt_print_usage_long>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x3f0,%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     11cc <eca_opt_print_usage_long+0x5c>
lea    0xe5a(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11cc <eca_opt_print_usage_long+0x5c>
lea    0xe49(%rip),%rsi
mov    %rsp,%rdi
mov    %rbx,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1090 <sprintf@plt>
jmp    1217 <eca_opt_print_usage_long+0xa7>
lea    0xe2e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1203 <eca_opt_print_usage_long+0x93>
lea    0xe19(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1217 <eca_opt_print_usage_long+0xa7>
lea    0xe16(%rip),%rsi
mov    %rsp,%rdi
mov    %rbx,%rdx
jmp    1210 <eca_opt_print_usage_long+0xa0>
lea    0xe02(%rip),%rsi
mov    %rsp,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <sprintf@plt>
lea    0xdf7(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %ebp,%eax
jge    124f <eca_opt_print_usage_long+0xdf>
sub    %eax,%ebp
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    1240 <eca_opt_print_usage_long+0xd0>
lea    0xdbe(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1274 <eca_opt_print_usage_long+0x104>
mov    %r15,%rdi
mov    $0x2,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1080 <ProcArgList@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    $0x3f0,%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]
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** %6
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %25
16: ; preds = %5
%17 = load i8*, i8** %7
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%22 = load i8*, i8** %6
%23 = load i8*, i8** %7
%24 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %22, i8* %23)
br label %43
25: ; preds = %16, %5
%26 = load i8*, i8** %6
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%31 = load i8*, i8** %7
%32 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %31)
br label %42
33: ; preds = %25
%34 = load i8*, i8** %7
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%39 = load i8*, i8** %6
%40 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %39)
br label %41
41: ; preds = %37, %33
br label %42
42: ; preds = %41, %29
br label %43
43: ; preds = %42, %20
%44 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%47 = call i32 @strlen(i8* %46)
store i32 %47, i32* %11
br label %48
48: ; preds = %54, %43
%49 = load i32, i32* %11
%50 = load i32, i32* %10
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %54
54: ; preds = %52
%55 = load i32, i32* %11
%56 = add nsw i32 %55, 1
store i32 %56, i32* %11
br label %48
57: ; preds = %48
%58 = load i8*, i8** %8
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = load i8*, i8** %8
%63 = call i32 @ProcArgList(i8* %62, i32 2, i32 0, i32 0)
br label %64
64: ; preds = %61, %57
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%66 = load i8*, i8** %9
%67 = call i32 @print_indented_and_max_length(i8* %66, i32 70)
%68 = 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 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %15, label %10
10: ; preds = %5
%11 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %1)
br label %25
15: ; preds = %10, %5
%16 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %1)
br label %25
20: ; preds = %15
%21 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %0)
br label %25
25: ; preds = %18, %23, %20, %13
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %7)
%27 = call i32 @strlen(i8* %7)
%28 = icmp slt i32 %27, %4
br i1 %28, label %29, label %34
29: ; preds = %25, %29
%30 = phi i32 [ %32, %29 ], [ %27, %25 ]
%31 = call i32 @putchar(i32 32)
%32 = add i32 %30, 1
%33 = icmp eq i32 %32, %4
br i1 %33, label %34, label %29
34: ; preds = %29, %25
%35 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %34
%38 = call i32 @ProcArgList(i8* %2, i32 2, i32 0, i32 0)
br label %39
39: ; preds = %37, %34
%40 = call i32 @putchar(i32 10)
%41 = call i32 @print_indented_and_max_length(i8* %3, i32 70)
%42 = call i32 @putchar(i32 10)
ret void
}