#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*/ diagnostics(int, char *, ...);
scalar_t__ fields_use_EQ();
int /*<<< orphan*/ fprintRTF(char *);
int /*<<< orphan*/ free(char *);
char *getBraceParam();
void CmdOverLine(int code) {
  char *argument;
  argument = getBraceParam();
  diagnostics(4, "CmdOverLine() ... \\overline{%s}", argument);
  if (fields_use_EQ()) {
    fprintRTF(" \\\\x\\\\to( ");
    ConvertString(argument);
    fprintRTF(") ");
  } else {
    diagnostics(1, "sorry overline requires fields");
    fprintRTF("{");
    ConvertString(argument);
    fprintRTF("}");
  }
  free(argument);
}


x86 assembly (clang, -O0):
<CmdOverLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getBraceParam@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdx
mov    $0x4,%edi
lea    0xe7a(%rip),%rsi
mov    $0x0,%al
call   1070 <diagnostics@plt>
mov    $0x0,%al
call   1060 <fields_use_EQ@plt>
cmp    $0x0,%rax
je     11c4 <CmdOverLine+0x64>
lea    0xe7b(%rip),%rdi
call   1080 <fprintRTF@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ConvertString@plt>
lea    0xe71(%rip),%rdi
call   1080 <fprintRTF@plt>
jmp    11f8 <CmdOverLine+0x98>
mov    $0x1,%edi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1070 <diagnostics@plt>
lea    0xe6f(%rip),%rdi
call   1080 <fprintRTF@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ConvertString@plt>
lea    0xe2b(%rip),%rdi
call   1080 <fprintRTF@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdOverLine>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getBraceParam@plt>
mov    %rax,%rbx
lea    0xe8b(%rip),%rsi
mov    $0x4,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1070 <diagnostics@plt>
xor    %eax,%eax
call   1060 <fields_use_EQ@plt>
test   %rax,%rax
je     11a0 <CmdOverLine+0x40>
lea    0xe94(%rip),%r14
lea    0xe82(%rip),%rdi
jmp    11c1 <CmdOverLine+0x61>
lea    0xe87(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1070 <diagnostics@plt>
lea    0xe64(%rip),%r14
lea    0xe8c(%rip),%rdi
call   1080 <fprintRTF@plt>
mov    %rbx,%rdi
call   1050 <ConvertString@plt>
mov    %r14,%rdi
call   1080 <fprintRTF@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"CmdOverLine() ... \\overline{%s}\00"
@.str.1 = [11 x i8] c" \\\\x\\\\to( \00"
@.str.2 = [3 x i8] c") \00"
@.str.3 = [31 x i8] c"sorry overline requires fields\00"
@.str.4 = [2 x i8] c"{\00"
@.str.5 = [2 x i8] c"}\00"
define void @CmdOverLine(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 = call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i64 (...) @fields_use_EQ()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = call i32 @fprintRTF(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%11 = load i8*, i8** %3
%12 = call i32 @ConvertString(i8* %11)
%13 = call i32 @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %20
14: ; preds = %1
%15 = call i32 (i32, i8*, ...) @diagnostics(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%17 = load i8*, i8** %3
%18 = call i32 @ConvertString(i8* %17)
%19 = call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %20
20: ; preds = %14, %9
%21 = load i8*, i8** %3
%22 = call i32 @free(i8* %21)
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"CmdOverLine() ... \\overline{%s}\00"
@.str.1 = [11 x i8] c" \\\\x\\\\to( \00"
@.str.2 = [3 x i8] c") \00"
@.str.3 = [31 x i8] c"sorry overline requires fields\00"
@.str.4 = [2 x i8] c"{\00"
@.str.5 = [2 x i8] c"}\00"
define void @CmdOverLine(i32 %0) {
%2 = tail call i8* (...) @getBraceParam()
%3 = tail call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i64 (...) @fields_use_EQ()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 (i32, i8*, ...) @diagnostics(i32 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %8
8: ; preds = %1, %6
%9 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), %6 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), %1 ]
%10 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %1 ]
%11 = tail call i32 @fprintRTF(i8* %9)
%12 = tail call i32 @ConvertString(i8* %2)
%13 = tail call i32 @fprintRTF(i8* %10)
%14 = tail call i32 @free(i8* %2)
ret void
}