#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*/ CmdEndParagraph(int /*<<< orphan*/);
int /*<<< orphan*/ CmdVspace(int);
int /*<<< orphan*/ ConvertBabelName(char *);
int /*<<< orphan*/ fprintRTF(char *);
int /*<<< orphan*/ free(char *);
char *getBraceParam();
int /*<<< orphan*/ startParagraph(char *, int);
void CmdKeywords(int code) {
  char *keywords = getBraceParam();
  if (NULL != keywords) {
    CmdEndParagraph(0);
    CmdVspace(1);
    startParagraph("Normal", 1);
    fprintRTF("{{\\b ");
    ConvertBabelName("KEYWORDS");
    fprintRTF("}\\tab\n");
    fprintRTF(keywords);
    fprintRTF("\n}\n");
    CmdEndParagraph(0);
    CmdVspace(1);
    free(keywords);
  }
}


x86 assembly (clang, -O0):
<CmdKeywords>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1050 <getBraceParam@plt>
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
je     1207 <CmdKeywords+0x97>
xor    %edi,%edi
call   1090 <CmdEndParagraph@plt>
mov    $0x1,%edi
call   1040 <CmdVspace@plt>
lea    0xe56(%rip),%rdi
mov    $0x1,%esi
call   1060 <startParagraph@plt>
lea    0xe4c(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe46(%rip),%rdi
call   1080 <ConvertBabelName@plt>
lea    0xe43(%rip),%rdi
call   1070 <fprintRTF@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fprintRTF@plt>
lea    0xe35(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1090 <CmdEndParagraph@plt>
mov    $0x1,%edi
call   1040 <CmdVspace@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdKeywords>:
push   %rbx
xor    %eax,%eax
call   1050 <getBraceParam@plt>
test   %rax,%rax
je     11f4 <CmdKeywords+0x84>
mov    %rax,%rbx
xor    %edi,%edi
call   1090 <CmdEndParagraph@plt>
mov    $0x1,%edi
call   1040 <CmdVspace@plt>
lea    0xe68(%rip),%rdi
mov    $0x1,%esi
call   1060 <startParagraph@plt>
lea    0xe5e(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe58(%rip),%rdi
call   1080 <ConvertBabelName@plt>
lea    0xe55(%rip),%rdi
call   1070 <fprintRTF@plt>
mov    %rbx,%rdi
call   1070 <fprintRTF@plt>
lea    0xe48(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1090 <CmdEndParagraph@plt>
mov    $0x1,%edi
call   1040 <CmdVspace@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"Normal\00"
@.str.1 = [6 x i8] c"{{\\b \00"
@.str.2 = [9 x i8] c"KEYWORDS\00"
@.str.3 = [7 x i8] c"}\\tab\0A\00"
@.str.4 = [4 x i8] c"\0A}\0A\00"
define void @CmdKeywords(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = call i8* (...) @getBraceParam()
store i8* %4, i8** %3
%5 = load i8*, i8** %3
%6 = icmp ne i8* null, %5
br i1 %6, label %7, label %21
7: ; preds = %1
%8 = call i32 @CmdEndParagraph(i32 0)
%9 = call i32 @CmdVspace(i32 1)
%10 = call i32 @startParagraph(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1)
%11 = call i32 @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @ConvertBabelName(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%14 = load i8*, i8** %3
%15 = call i32 @fprintRTF(i8* %14)
%16 = call i32 @fprintRTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @CmdEndParagraph(i32 0)
%18 = call i32 @CmdVspace(i32 1)
%19 = load i8*, i8** %3
%20 = call i32 @free(i8* %19)
br label %21
21: ; preds = %7, %1
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Normal\00"
@.str.1 = [6 x i8] c"{{\\b \00"
@.str.2 = [9 x i8] c"KEYWORDS\00"
@.str.3 = [7 x i8] c"}\\tab\0A\00"
@.str.4 = [4 x i8] c"\0A}\0A\00"
define void @CmdKeywords(i32 %0) {
%2 = tail call i8* (...) @getBraceParam()
%3 = icmp eq i8* %2, null
br i1 %3, label %16, label %4
4: ; preds = %1
%5 = tail call i32 @CmdEndParagraph(i32 0)
%6 = tail call i32 @CmdVspace(i32 1)
%7 = tail call i32 @startParagraph(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1)
%8 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @ConvertBabelName(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @fprintRTF(i8* %2)
%12 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @CmdEndParagraph(i32 0)
%14 = tail call i32 @CmdVspace(i32 1)
%15 = tail call i32 @free(i8* %2)
br label %16
16: ; preds = %4, %1
ret void
}