#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*/ Equalize(char *, char *, char **, char **);
int /*<<< orphan*/ free(char *);
char *my_strdup(char *);
scalar_t__ strcmp(char *, char *);
char *a_moreequal(char *pcL, char *pcR) {
  char *pcNewLeft, *pcNewRight;
  Equalize(pcL, pcR, &pcNewLeft, &pcNewRight);
  if (strcmp(pcNewLeft, pcNewRight) >= 0) {
    free(pcNewLeft);
    free(pcNewRight);
    return my_strdup("TRUE");
  } else {
    free(pcNewLeft);
    free(pcNewRight);
    return my_strdup("FALSE");
  }
}


x86 assembly (clang, -O0):
<a_moreequal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1050 <Equalize@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jl     11a3 <a_moreequal+0x63>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
lea    0xe6b(%rip),%rdi
call   1060 <my_strdup@plt>
mov    %rax,-0x8(%rbp)
jmp    11c5 <a_moreequal+0x85>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
lea    0xe49(%rip),%rdi
call   1060 <my_strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a_moreequal>:
push   %rbx
sub    $0x10,%rsp
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
call   1050 <Equalize@plt>
mov    0x8(%rsp),%rdi
mov    (%rsp),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
test   %rbx,%rbx
lea    0xe80(%rip),%rax
lea    0xe7e(%rip),%rdi
cmovns %rax,%rdi
call   1060 <my_strdup@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"TRUE\00"
@.str.1 = [6 x i8] c"FALSE\00"
define i8* @a_moreequal(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = call i32 @Equalize(i8* %8, i8* %9, i8** %6, i8** %7)
%11 = load i8*, i8** %6
%12 = load i8*, i8** %7
%13 = call i64 @strcmp(i8* %11, i8* %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i8*, i8** %6
%17 = call i32 @free(i8* %16)
%18 = load i8*, i8** %7
%19 = call i32 @free(i8* %18)
%20 = call i8* @my_strdup(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i8* %20, i8** %3
br label %27
21: ; preds = %2
%22 = load i8*, i8** %6
%23 = call i32 @free(i8* %22)
%24 = load i8*, i8** %7
%25 = call i32 @free(i8* %24)
%26 = call i8* @my_strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i8* %26, i8** %3
br label %27
27: ; preds = %21, %15
%28 = load i8*, i8** %3
ret i8* %28
}

LLVM IR (-O2):
@.str = [5 x i8] c"TRUE\00"
@.str.1 = [6 x i8] c"FALSE\00"
define i8* @a_moreequal(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = bitcast i8** %3 to i8*
%6 = bitcast i8** %4 to i8*
%7 = call i32 @Equalize(i8* %0, i8* %1, i8** %3, i8** %4)
%8 = load i8*, i8** %3
%9 = load i8*, i8** %4
%10 = call i64 @strcmp(i8* %8, i8* %9)
%11 = icmp sgt i64 %10, -1
%12 = load i8*, i8** %3
%13 = call i32 @free(i8* %12)
%14 = load i8*, i8** %4
%15 = call i32 @free(i8* %14)
%16 = select i1 %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
%17 = call i8* @my_strdup(i8* %16)
ret i8* %17
}