#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 */
scalar_t__ equalIgnoringCase(char *, char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, const char *argv[]) {
  char str1[100] = "CAT";
  char str2[100] = "cat";
  (equalIgnoringCase(str1, str2)) ? printf("TRUE\n") : printf("FALSE\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
movb   $0x43,-0x80(%rbp)
movb   $0x41,-0x7f(%rbp)
movb   $0x54,-0x7e(%rbp)
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
movb   $0x63,-0xf0(%rbp)
movb   $0x61,-0xef(%rbp)
movb   $0x74,-0xee(%rbp)
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1050 <equalIgnoringCase@plt>
cmp    $0x0,%rax
je     11b8 <main+0x88>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <main+0x94>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0xd8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movl   $0x0,0xd0(%rsp)
movw   $0x4143,0x70(%rsp)
movb   $0x54,0x72(%rsp)
movaps %xmm0,(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x60(%rsp)
movw   $0x6163,(%rsp)
movb   $0x74,0x2(%rsp)
lea    0x70(%rsp),%rdi
mov    %rsp,%rsi
call   1040 <equalIgnoringCase@plt>
test   %rax,%rax
lea    0xe4b(%rip),%rax
lea    0xe4a(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xd8,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"TRUE\0A\00"
@.str.1 = [7 x i8] c"FALSE\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast [100 x i8]* %6 to i8*
%9 = bitcast i8* %8 to [100 x i8]*
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i32 0, i32 0
store i8 67, i8* %10
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i32 0, i32 1
store i8 65, i8* %11
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i32 0, i32 2
store i8 84, i8* %12
%13 = bitcast [100 x i8]* %7 to i8*
%14 = bitcast i8* %13 to [100 x i8]*
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i32 0, i32 0
store i8 99, i8* %15
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i32 0, i32 1
store i8 97, i8* %16
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %14, i32 0, i32 2
store i8 116, i8* %17
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%20 = call i64 @equalIgnoringCase(i8* %18, i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %26
24: ; preds = %2
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
%27 = phi i32 [ %23, %22 ], [ %25, %24 ]
ret i32 0
}

LLVM IR (-O2):
@str = [6 x i8] c"FALSE\00"
@str.2 = [5 x i8] c"TRUE\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
store i8 67, i8* %5
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 1
store i8 65, i8* %6
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 2
store i8 84, i8* %7
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
store i8 99, i8* %8
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 1
store i8 97, i8* %9
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 2
store i8 116, i8* %10
%11 = call i64 @equalIgnoringCase(i8* %5, i8* %8)
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.2, i64 0, i64 0)
%14 = call i32 @puts(i8* dereferenceable(1) %13)
ret i32 0
}