#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*/ PrintIndent(int);
int /*<<< orphan*/ ProcArgList(char const *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ option_name(char *, char const *, char const *);
int /*<<< orphan*/ print_spec_indented_and_max_length(char const *, int, int,
                                                      char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char const *, char *);
void eca_opt_print_option_xml(const char *shortopt, const char *longopt,
                              const char *args, const char *short_comment,
                              const char *long_comment, int __END_OF_OPTS,
                              int indent_level, int IsRequired, int MaxUsages) {
  char TempStr[500];
  PrintIndent(indent_level);
  printf("<option>\n");
  option_name(TempStr, shortopt, longopt);
  PrintIndent(indent_level + 1);
  printf("<option_name>%s</option_name>\n", TempStr);
  PrintIndent(indent_level + 1);
  printf("<option_name_in_error_messages>%s</option_name_in_error_messages>\n",
         TempStr);
  if (strcmp(longopt, "--") != 0) {
    PrintIndent(indent_level + 1);
    printf("<option_prepend_text>%s</option_prepend_text>\n", longopt);
  } else {
    PrintIndent(indent_level + 1);
    printf("<option_prepend_text>%s</option_prepend_text>\n", shortopt);
  }
  PrintIndent(indent_level + 1);
  printf("<option_requirement_status>");
  switch (IsRequired) {
  case 0:
    printf("NotRequired");
    break;
  case 1:
    printf("AlwaysRequired");
    break;
  case 2:
    printf("ConditionallyRequired");
    break;
  default:
    fprintf(stderr,
            "Erorr processing ECA_Opt option %s.  Unrecognized IsRequired "
            "state = %d.  Exiting...\n",
            TempStr, IsRequired);
    exit(1);
  }
  printf("</option_requirement_status>\n");
  PrintIndent(indent_level + 1);
  printf("<option_max_number_of_invocations>%d</"
         "option_max_number_of_invocations>\n",
         MaxUsages);
  if (strcmp(args, "") != 0) {
    ProcArgList(args, 4, indent_level + 1, 0);
  } else {
    PrintIndent(indent_level + 1);
    printf("<bool>true</bool>\n");
  }
  if (strcmp(short_comment, "") != 0) {
    PrintIndent(indent_level + 1);
    printf("<option_short_description>%s</option_short_description>\n",
           short_comment);
  }
  if (strcmp(long_comment, "") != 0) {
    PrintIndent(indent_level + 1);
    printf("<option_long_description>\n");
    PrintIndent(indent_level + 2);
    printf("<![CDATA[\n");
    print_spec_indented_and_max_length(long_comment, 70, indent_level + 3,
                                       "]]>");
    PrintIndent(indent_level + 1);
    printf("</option_long_description>\n");
  }
  PrintIndent(indent_level);
  printf("</option>\n");
}


x86 assembly (clang, -O0):
<eca_opt_print_option_xml>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    0x10(%rbp),%edi
call   1050 <PrintIndent@plt>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x220(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    -0x220(%rbp),%rsi
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    -0x220(%rbp),%rsi
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe4b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1252 <eca_opt_print_option_xml+0xd2>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
mov    -0x10(%rbp),%rsi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    126f <eca_opt_print_option_xml+0xef>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
mov    -0x8(%rbp),%rsi
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbp),%eax
mov    %eax,-0x224(%rbp)
test   %eax,%eax
je     12c6 <eca_opt_print_option_xml+0x146>
jmp    129e <eca_opt_print_option_xml+0x11e>
mov    -0x224(%rbp),%eax
sub    $0x1,%eax
je     12d9 <eca_opt_print_option_xml+0x159>
jmp    12b2 <eca_opt_print_option_xml+0x132>
mov    -0x224(%rbp),%eax
sub    $0x2,%eax
je     12ec <eca_opt_print_option_xml+0x16c>
jmp    12ff <eca_opt_print_option_xml+0x17f>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1328 <eca_opt_print_option_xml+0x1a8>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1328 <eca_opt_print_option_xml+0x1a8>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1328 <eca_opt_print_option_xml+0x1a8>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
mov    0x18(%rbp),%ecx
lea    0xdd2(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
mov    0x20(%rbp),%esi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1387 <eca_opt_print_option_xml+0x207>
mov    -0x18(%rbp),%rdi
mov    0x10(%rbp),%edx
add    $0x1,%edx
mov    $0x4,%esi
xor    %ecx,%ecx
call   1090 <ProcArgList@plt>
jmp    13a0 <eca_opt_print_option_xml+0x220>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd95(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13d7 <eca_opt_print_option_xml+0x257>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
mov    -0x20(%rbp),%rsi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1457 <eca_opt_print_option_xml+0x2d7>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%edi
add    $0x2,%edi
call   1050 <PrintIndent@plt>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rdi
mov    0x10(%rbp),%edx
add    $0x3,%edx
mov    $0x46,%esi
lea    0xde1(%rip),%rcx
call   1080 <print_spec_indented_and_max_length@plt>
mov    0x10(%rbp),%edi
add    $0x1,%edi
call   1050 <PrintIndent@plt>
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%edi
call   1050 <PrintIndent@plt>
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x230,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eca_opt_print_option_xml>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %r8,0x8(%rsp)
mov    %rcx,(%rsp)
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x240(%rsp),%ebx
mov    %ebx,%edi
call   1060 <PrintIndent@plt>
lea    0xff5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%r13
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <option_name@plt>
lea    0x1(%rbx),%ebp
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe0f(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe16(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe48(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
test   %rbx,%rbx
cmove  %r15,%r14
lea    0xe2b(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe42(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x248(%rsp),%ecx
cmp    $0x3,%ecx
jae    13af <eca_opt_print_option_xml+0x21f>
mov    0x250(%rsp),%ebx
movslq %ecx,%rax
lea    0xfc6(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe95(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe84(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12d2 <eca_opt_print_option_xml+0x142>
mov    %r12,%rdi
mov    $0x4,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
call   10a0 <ProcArgList@plt>
jmp    12e5 <eca_opt_print_option_xml+0x155>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
mov    0x240(%rsp),%r15d
mov    0x8(%rsp),%r14
mov    (%rsp),%rbx
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1322 <eca_opt_print_option_xml+0x192>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe68(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe0d(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1389 <eca_opt_print_option_xml+0x1f9>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0x2(%r15),%edi
call   1060 <PrintIndent@plt>
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
lea    0x3(%r15),%edx
lea    0xe50(%rip),%rcx
mov    %r14,%rdi
mov    $0x46,%esi
call   1090 <print_spec_indented_and_max_length@plt>
mov    %ebp,%edi
call   1060 <PrintIndent@plt>
lea    0xe9f(%rip),%rdi
call   1030 <puts@plt>
mov    %r15d,%edi
call   1060 <PrintIndent@plt>
lea    0xe5d(%rip),%rdi
call   1030 <puts@plt>
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
lea    0xd22(%rip),%rsi
lea    0x10(%rsp),%rdx
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"<option>\0A\00"
@.str.1 = [31 x i8] c"<option_name>%s</option_name>\0A\00"
@.str.2 = [67 x i8] c"<option_name_in_error_messages>%s</option_name_in_error_messages>\0A\00"
@.str.3 = [3 x i8] c"--\00"
@.str.4 = [47 x i8] c"<option_prepend_text>%s</option_prepend_text>\0A\00"
@.str.5 = [28 x i8] c"<option_requirement_status>\00"
@.str.6 = [12 x i8] c"NotRequired\00"
@.str.7 = [15 x i8] c"AlwaysRequired\00"
@.str.8 = [22 x i8] c"ConditionallyRequired\00"
@stderr = global i32 0
@.str.9 = [86 x i8] c"Erorr processing ECA_Opt option %s. Unrecognized IsRequired state = %d. Exiting...\0A\00"
@.str.10 = [30 x i8] c"</option_requirement_status>\0A\00"
@.str.11 = [73 x i8] c"<option_max_number_of_invocations>%d</option_max_number_of_invocations>\0A\00"
@.str.12 = [1 x i8] zeroinitializer
@.str.13 = [19 x i8] c"<bool>true</bool>\0A\00"
@.str.14 = [57 x i8] c"<option_short_description>%s</option_short_description>\0A\00"
@.str.15 = [27 x i8] c"<option_long_description>\0A\00"
@.str.16 = [11 x i8] c"<![CDATA[\0A\00"
@.str.17 = [4 x i8] c"]]>\00"
@.str.18 = [28 x i8] c"</option_long_description>\0A\00"
@.str.19 = [11 x i8] c"</option>\0A\00"
define void @eca_opt_print_option_xml(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca [500 x i8]
store i8* %0, i8** %10
store i8* %1, i8** %11
store i8* %2, i8** %12
store i8* %3, i8** %13
store i8* %4, i8** %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%20 = load i32, i32* %16
%21 = call i32 @PrintIndent(i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [500 x i8], [500 x i8]* %19, i64 0, i64 0
%24 = load i8*, i8** %10
%25 = load i8*, i8** %11
%26 = call i32 @option_name(i8* %23, i8* %24, i8* %25)
%27 = load i32, i32* %16
%28 = add nsw i32 %27, 1
%29 = call i32 @PrintIndent(i32 %28)
%30 = getelementptr inbounds [500 x i8], [500 x i8]* %19, i64 0, i64 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %30)
%32 = load i32, i32* %16
%33 = add nsw i32 %32, 1
%34 = call i32 @PrintIndent(i32 %33)
%35 = getelementptr inbounds [500 x i8], [500 x i8]* %19, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0), i8* %35)
%37 = load i8*, i8** %11
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %9
%41 = load i32, i32* %16
%42 = add nsw i32 %41, 1
%43 = call i32 @PrintIndent(i32 %42)
%44 = load i8*, i8** %11
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %44)
br label %52
46: ; preds = %9
%47 = load i32, i32* %16
%48 = add nsw i32 %47, 1
%49 = call i32 @PrintIndent(i32 %48)
%50 = load i8*, i8** %10
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %50)
br label %52
52: ; preds = %46, %40
%53 = load i32, i32* %16
%54 = add nsw i32 %53, 1
%55 = call i32 @PrintIndent(i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%57 = load i32, i32* %17
switch i32 %57, label %64 [
i32 0, label %58
i32 1, label %60
i32 2, label %62
]
58: ; preds = %52
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
br label %70
60: ; preds = %52
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
br label %70
62: ; preds = %52
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
br label %70
64: ; preds = %52
%65 = load i32, i32* @stderr
%66 = getelementptr inbounds [500 x i8], [500 x i8]* %19, i64 0, i64 0
%67 = load i32, i32* %17
%68 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.9, i64 0, i64 0), i8* %66, i32 %67)
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %62, %60, %58
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%72 = load i32, i32* %16
%73 = add nsw i32 %72, 1
%74 = call i32 @PrintIndent(i32 %73)
%75 = load i32, i32* %18
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0), i32 %75)
%77 = load i8*, i8** %12
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %70
%81 = load i8*, i8** %12
%82 = load i32, i32* %16
%83 = add nsw i32 %82, 1
%84 = call i32 @ProcArgList(i8* %81, i32 4, i32 %83, i32 0)
br label %90
85: ; preds = %70
%86 = load i32, i32* %16
%87 = add nsw i32 %86, 1
%88 = call i32 @PrintIndent(i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
br label %90
90: ; preds = %85, %80
%91 = load i8*, i8** %13
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %100
94: ; preds = %90
%95 = load i32, i32* %16
%96 = add nsw i32 %95, 1
%97 = call i32 @PrintIndent(i32 %96)
%98 = load i8*, i8** %13
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.14, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %94, %90
%101 = load i8*, i8** %14
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %121
104: ; preds = %100
%105 = load i32, i32* %16
%106 = add nsw i32 %105, 1
%107 = call i32 @PrintIndent(i32 %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%109 = load i32, i32* %16
%110 = add nsw i32 %109, 2
%111 = call i32 @PrintIndent(i32 %110)
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
%113 = load i8*, i8** %14
%114 = load i32, i32* %16
%115 = add nsw i32 %114, 3
%116 = call i32 @print_spec_indented_and_max_length(i8* %113, i32 70, i32 %115, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%117 = load i32, i32* %16
%118 = add nsw i32 %117, 1
%119 = call i32 @PrintIndent(i32 %118)
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
br label %121
121: ; preds = %104, %100
%122 = load i32, i32* %16
%123 = call i32 @PrintIndent(i32 %122)
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [31 x i8] c"<option_name>%s</option_name>\0A\00"
@.str.2 = [67 x i8] c"<option_name_in_error_messages>%s</option_name_in_error_messages>\0A\00"
@.str.3 = [3 x i8] c"--\00"
@.str.4 = [47 x i8] c"<option_prepend_text>%s</option_prepend_text>\0A\00"
@.str.5 = [28 x i8] c"<option_requirement_status>\00"
@.str.6 = [12 x i8] c"NotRequired\00"
@.str.7 = [15 x i8] c"AlwaysRequired\00"
@.str.8 = [22 x i8] c"ConditionallyRequired\00"
@stderr = global i32 0
@.str.9 = [86 x i8] c"Erorr processing ECA_Opt option %s. Unrecognized IsRequired state = %d. Exiting...\0A\00"
@.str.11 = [73 x i8] c"<option_max_number_of_invocations>%d</option_max_number_of_invocations>\0A\00"
@.str.12 = [1 x i8] zeroinitializer
@.str.14 = [57 x i8] c"<option_short_description>%s</option_short_description>\0A\00"
@.str.17 = [4 x i8] c"]]>\00"
@str = [9 x i8] c"<option>\00"
@str.20 = [29 x i8] c"</option_requirement_status>\00"
@str.21 = [18 x i8] c"<bool>true</bool>\00"
@str.22 = [10 x i8] c"</option>\00"
@str.23 = [26 x i8] c"<option_long_description>\00"
@str.24 = [10 x i8] c"<![CDATA[\00"
@str.25 = [27 x i8] c"</option_long_description>\00"
@reltable.eca_opt_print_option_xml = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.6 to i64), i64 ptrtoint ([3 x i32]* @reltable.eca_opt_print_option_xml to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([3 x i32]* @reltable.eca_opt_print_option_xml to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.8 to i64), i64 ptrtoint ([3 x i32]* @reltable.eca_opt_print_option_xml to i64)) to i32)]
define void @eca_opt_print_option_xml(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca [500 x i8]
%11 = getelementptr inbounds [500 x i8], [500 x i8]* %10, i64 0, i64 0
%12 = tail call i32 @PrintIndent(i32 %6)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%14 = call i32 @option_name(i8* %11, i8* %0, i8* %1)
%15 = add nsw i32 %6, 1
%16 = call i32 @PrintIndent(i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%18 = call i32 @PrintIndent(i32 %15)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%20 = call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
%22 = call i32 @PrintIndent(i32 %15)
%23 = select i1 %21, i8* %0, i8* %1
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i8* %23)
%25 = call i32 @PrintIndent(i32 %15)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp ult i32 %7, 3
br i1 %27, label %32, label %28
28: ; preds = %9
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.9, i64 0, i64 0), i8* %11, i32 %7)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %9
%33 = sext i32 %7 to i64
%34 = shl i64 %33, 2
%35 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.eca_opt_print_option_xml to i8*), i64 %34)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %35)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.20, i64 0, i64 0))
%38 = call i32 @PrintIndent(i32 %15)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0), i32 %8)
%40 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %32
%43 = call i32 @ProcArgList(i8* %2, i32 4, i32 %15, i32 0)
br label %47
44: ; preds = %32
%45 = call i32 @PrintIndent(i32 %15)
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.21, i64 0, i64 0))
br label %47
47: ; preds = %44, %42
%48 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = call i32 @PrintIndent(i32 %15)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.14, i64 0, i64 0), i8* %3)
br label %53
53: ; preds = %50, %47
%54 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %66, label %56
56: ; preds = %53
%57 = call i32 @PrintIndent(i32 %15)
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.23, i64 0, i64 0))
%59 = add nsw i32 %6, 2
%60 = call i32 @PrintIndent(i32 %59)
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.24, i64 0, i64 0))
%62 = add nsw i32 %6, 3
%63 = call i32 @print_spec_indented_and_max_length(i8* %4, i32 70, i32 %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%64 = call i32 @PrintIndent(i32 %15)
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.25, i64 0, i64 0))
br label %66
66: ; preds = %56, %53
%67 = call i32 @PrintIndent(i32 %6)
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
ret void
}