#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*/ ConvertString(char *);
int /*<<< orphan*/ InsertStyle(char *);
int /*<<< orphan*/ diagnostics(int, char *);
int /*<<< orphan*/ fprintRTF(char *, ...);
char *getBraceParam();
char *getBracketParam();
int /*<<< orphan*/ safe_free(char *);
void CmdFootNote(int code) {
  char *number, *text;
  static int thankno = 0;
  diagnostics(4, "Entering ConvertFootNote");
  number = getBracketParam();
  text = getBraceParam();
  switch (code) {
  case 3:
    thankno++;
    fprintRTF("{");
    InsertStyle("footnote reference");
    fprintRTF(" %d}\n", thankno);
    fprintRTF("{\\*\\footnote\\pard ");
    InsertStyle("footnote text");
    fprintRTF("{");
    InsertStyle("footnote reference");
    fprintRTF("%d} ", thankno);
    break;
  case 1:
    fprintRTF("{");
    InsertStyle("footnote reference");
    fprintRTF("\\chftn}\n");
    fprintRTF("{\\*\\footnote\\pard ");
    InsertStyle("footnote text");
    fprintRTF("{");
    InsertStyle("footnote reference");
    fprintRTF("\\chftn} ");
    break;
  case 2:
    fprintRTF("{\\*\\footnote\\pard ");
    InsertStyle("footnote text");
    break;
  case 4:
    fprintRTF("{");
    InsertStyle("endnote reference");
    fprintRTF("\\chftn}\n");
    fprintRTF("{\\*\\footnote\\ftnalt\\pard ");
    InsertStyle("endnote text");
    fprintRTF("{");
    InsertStyle("endnote reference");
    fprintRTF("\\chftn} ");
    break;
  case 5:
    fprintRTF("{\\*\\footnote\\ftnalt\\pard ");
    InsertStyle("endnote text");
    break;
  }
  ConvertString(text);
  fprintRTF("}\n");
  diagnostics(4, "Exiting CmdFootNote");
  safe_free(text);
  if (number)
    safe_free(number);
}


x86 assembly (clang, -O0):
<CmdFootNote>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
lea    0xe92(%rip),%rsi
mov    $0x4,%edi
call   1060 <diagnostics@plt>
xor    %eax,%eax
mov    %al,-0x21(%rbp)
call   1070 <getBracketParam@plt>
mov    %rax,%rcx
mov    -0x21(%rbp),%al
mov    %rcx,-0x10(%rbp)
call   1030 <getBraceParam@plt>
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x4,%eax
ja     1373 <CmdFootNote+0x203>
mov    -0x20(%rbp),%rax
lea    0xe37(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e84(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e7b(%rip)
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xe39(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    0x2e5b(%rip),%esi
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xe37(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xdf1(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    0x2e13(%rip),%esi
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
jmp    1373 <CmdFootNote+0x203>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xdbe(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xdc2(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd7c(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
jmp    1373 <CmdFootNote+0x203>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd7b(%rip),%rdi
call   1040 <InsertStyle@plt>
jmp    1373 <CmdFootNote+0x203>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd81(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd85(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd3f(%rip),%rdi
call   1040 <InsertStyle@plt>
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
jmp    1373 <CmdFootNote+0x203>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
lea    0xd3e(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ConvertString@plt>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1090 <fprintRTF@plt>
mov    $0x4,%edi
lea    0xd23(%rip),%rsi
call   1060 <diagnostics@plt>
mov    -0x18(%rbp),%rdi
call   1080 <safe_free@plt>
cmpq   $0x0,-0x10(%rbp)
je     13b8 <CmdFootNote+0x248>
mov    -0x10(%rbp),%rdi
call   1080 <safe_free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdFootNote>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0xe93(%rip),%rsi
mov    $0x4,%edi
call   1060 <diagnostics@plt>
xor    %eax,%eax
call   1070 <getBracketParam@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1030 <getBraceParam@plt>
mov    %rax,%r12
add    $0xffffffff,%ebx
cmp    $0x4,%ebx
ja     1321 <CmdFootNote+0x1b1>
lea    0xe4e(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0xe6b(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xe5c(%rip),%rbx
mov    %rbx,%rdi
call   1040 <InsertStyle@plt>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xe5d(%rip),%rdi
jmp    12e0 <CmdFootNote+0x170>
lea    0xe3e(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xe43(%rip),%rdi
jmp    131c <CmdFootNote+0x1ac>
addl   $0x1,0x2e38(%rip)
lea    0xe02(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xdf3(%rip),%rbx
mov    %rbx,%rdi
call   1040 <InsertStyle@plt>
mov    0x2e12(%rip),%esi
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xde9(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xdee(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
mov    %rbx,%rdi
call   1040 <InsertStyle@plt>
mov    0x2dd2(%rip),%esi
lea    0xdd8(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
jmp    1321 <CmdFootNote+0x1b1>
lea    0xd89(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xdcb(%rip),%rbx
mov    %rbx,%rdi
call   1040 <InsertStyle@plt>
lea    0xdaa(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xdc0(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xdcc(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
mov    %rbx,%rdi
call   1040 <InsertStyle@plt>
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
jmp    1321 <CmdFootNote+0x1b1>
lea    0xd84(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xd90(%rip),%rdi
call   1040 <InsertStyle@plt>
mov    %r12,%rdi
call   1050 <ConvertString@plt>
lea    0xd15(%rip),%rdi
xor    %eax,%eax
call   1090 <fprintRTF@plt>
lea    0xd7b(%rip),%rsi
mov    $0x4,%edi
call   1060 <diagnostics@plt>
mov    %r12,%rdi
call   1080 <safe_free@plt>
test   %r14,%r14
je     1368 <CmdFootNote+0x1f8>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1080 <safe_free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@CmdFootNote.thankno = internal global i32 0
@.str = [25 x i8] c"Entering ConvertFootNote\00"
@.str.1 = [2 x i8] c"{\00"
@.str.2 = [19 x i8] c"footnote reference\00"
@.str.3 = [6 x i8] c" %d}\0A\00"
@.str.4 = [19 x i8] c"{\\*\\footnote\\pard \00"
@.str.5 = [14 x i8] c"footnote text\00"
@.str.6 = [5 x i8] c"%d} \00"
@.str.7 = [9 x i8] c"\\chftn}\0A\00"
@.str.8 = [9 x i8] c"\\chftn} \00"
@.str.9 = [18 x i8] c"endnote reference\00"
@.str.10 = [26 x i8] c"{\\*\\footnote\\ftnalt\\pard \00"
@.str.11 = [13 x i8] c"endnote text\00"
@.str.12 = [3 x i8] c"}\0A\00"
@.str.13 = [20 x i8] c"Exiting CmdFootNote\00"
define void @CmdFootNote(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
store i32 %0, i32* %2
%5 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%6 = call i8* (...) @getBracketParam()
store i8* %6, i8** %3
%7 = call i8* (...) @getBraceParam()
store i8* %7, i8** %4
%8 = load i32, i32* %2
switch i32 %8, label %46 [
i32 3, label %9
i32 1, label %22
i32 2, label %31
i32 4, label %34
i32 5, label %43
]
9: ; preds = %1
%10 = load i32, i32* @CmdFootNote.thankno
%11 = add nsw i32 %10, 1
store i32 %11, i32* @CmdFootNote.thankno
%12 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @CmdFootNote.thankno
%15 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* @CmdFootNote.thankno
%21 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %20)
br label %46
22: ; preds = %1
%23 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%26 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%28 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %46
31: ; preds = %1
%32 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %46
34: ; preds = %1
%35 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 @InsertStyle(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%37 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%38 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%39 = call i32 @InsertStyle(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%40 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 @InsertStyle(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%42 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %46
43: ; preds = %1
%44 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%45 = call i32 @InsertStyle(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
br label %46
46: ; preds = %1, %43, %34, %31, %22, %9
%47 = load i8*, i8** %4
%48 = call i32 @ConvertString(i8* %47)
%49 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%50 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
%51 = load i8*, i8** %4
%52 = call i32 @safe_free(i8* %51)
%53 = load i8*, i8** %3
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %58
55: ; preds = %46
%56 = load i8*, i8** %3
%57 = call i32 @safe_free(i8* %56)
br label %58
58: ; preds = %55, %46
ret void
}

LLVM IR (-O2):
@CmdFootNote.thankno = internal unnamed_addr global i32 0
@.str = [25 x i8] c"Entering ConvertFootNote\00"
@.str.1 = [2 x i8] c"{\00"
@.str.2 = [19 x i8] c"footnote reference\00"
@.str.3 = [6 x i8] c" %d}\0A\00"
@.str.4 = [19 x i8] c"{\\*\\footnote\\pard \00"
@.str.5 = [14 x i8] c"footnote text\00"
@.str.6 = [5 x i8] c"%d} \00"
@.str.7 = [9 x i8] c"\\chftn}\0A\00"
@.str.8 = [9 x i8] c"\\chftn} \00"
@.str.9 = [18 x i8] c"endnote reference\00"
@.str.10 = [26 x i8] c"{\\*\\footnote\\ftnalt\\pard \00"
@.str.11 = [13 x i8] c"endnote text\00"
@.str.12 = [3 x i8] c"}\0A\00"
@.str.13 = [20 x i8] c"Exiting CmdFootNote\00"
define void @CmdFootNote(i32 %0) {
%2 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* (...) @getBracketParam()
%4 = tail call i8* (...) @getBraceParam()
switch i32 %0, label %42 [
i32 3, label %5
i32 1, label %18
i32 2, label %27
i32 4, label %30
i32 5, label %39
]
5: ; preds = %1
%6 = load i32, i32* @CmdFootNote.thankno
%7 = add nsw i32 %6, 1
store i32 %7, i32* @CmdFootNote.thankno
%8 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @CmdFootNote.thankno
%11 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* @CmdFootNote.thankno
%17 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %16)
br label %42
18: ; preds = %1
%19 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %42
27: ; preds = %1
%28 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%29 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %42
30: ; preds = %1
%31 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%32 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%33 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%34 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%35 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%36 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%38 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %42
39: ; preds = %1
%40 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%41 = tail call i32 @InsertStyle(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
br label %42
42: ; preds = %1, %39, %30, %27, %18, %5
%43 = tail call i32 @ConvertString(i8* %4)
%44 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%45 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
%46 = tail call i32 @safe_free(i8* %4)
%47 = icmp eq i8* %3, null
br i1 %47, label %50, label %48
48: ; preds = %42
%49 = tail call i32 @safe_free(i8* %3)
br label %50
50: ; preds = %48, %42
ret void
}