#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*/ printf(char *);
scalar_t__ scanf(char *, char *);
main() {
  int judge(char *a, char *b);
  int i, j;
  char s[20];
  char a[10];
  char b[10];
  while (scanf("%s", s) > 0) {
    for (i = 0; i < 6; i++)
      a[i] = s[i];
    for (i = 6; i < 12; i++)
      b[i - 6] = s[i];
    a[6] = '\0';
    b[6] = '\0';
    if (judge(a, b))
      printf("TRUE\n");
    else
      printf("FALSE\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1050 <scanf@plt>
cmp    $0x0,%rax
jle    11fb <main+0xcb>
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    1188 <main+0x58>
movslq -0x8(%rbp),%rax
mov    -0x20(%rbp,%rax,1),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x2a(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1160 <main+0x30>
movl   $0x6,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jge    11bb <main+0x8b>
movslq -0x8(%rbp),%rax
mov    -0x20(%rbp,%rax,1),%cl
mov    -0x8(%rbp),%eax
sub    $0x6,%eax
cltq
mov    %cl,-0x34(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118f <main+0x5f>
movb   $0x0,-0x24(%rbp)
movb   $0x0,-0x2e(%rbp)
lea    -0x2a(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1040 <judge@plt>
cmp    $0x0,%eax
je     11ea <main+0xba>
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
jmp    11f6 <main+0xc6>
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xebb(%rip),%rdi
lea    0x20(%rsp),%rsi
call   1050 <scanf@plt>
test   %rax,%rax
jle    11d6 <main+0xa6>
lea    0x26(%rsp),%rbx
lea    0x8(%rsp),%r15
lea    0xe9a(%rip),%rbp
lea    0xe99(%rip),%r14
lea    0xe89(%rip),%r12
lea    0x20(%rsp),%r13
nopl   0x0(%rax)
movzwl 0x24(%rsp),%eax
mov    %ax,0x18(%rsp)
mov    0x20(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    (%rbx),%eax
mov    %eax,0x8(%rsp)
movzwl 0x4(%rbx),%eax
mov    %ax,0xc(%rsp)
movb   $0x0,0x1a(%rsp)
movb   $0x0,0xe(%rsp)
lea    0x14(%rsp),%rdi
mov    %r15,%rsi
call   1040 <judge@plt>
test   %eax,%eax
mov    %r14,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
test   %rax,%rax
jg     1180 <main+0x50>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"TRUE\0A\00"
@.str.2 = [7 x i8] c"FALSE\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [20 x i8]
%5 = alloca [10 x i8]
%6 = alloca [10 x i8]
store i32 0, i32* %1
br label %7
7: ; preds = %53, %0
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%9 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %54
11: ; preds = %7
store i32 0, i32* %2
br label %12
12: ; preds = %23, %11
%13 = load i32, i32* %2
%14 = icmp slt i32 %13, 6
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, i32* %2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %21
store i8 %19, i8* %22
br label %23
23: ; preds = %15
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %12
26: ; preds = %12
store i32 6, i32* %2
br label %27
27: ; preds = %39, %26
%28 = load i32, i32* %2
%29 = icmp slt i32 %28, 12
br i1 %29, label %30, label %42
30: ; preds = %27
%31 = load i32, i32* %2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = load i32, i32* %2
%36 = sub nsw i32 %35, 6
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 %37
store i8 %34, i8* %38
br label %39
39: ; preds = %30
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %27
42: ; preds = %27
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 6
store i8 0, i8* %43
%44 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 6
store i8 0, i8* %44
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%46 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%47 = call i32 @judge(i8* %45, i8* %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %42
%50 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %53
51: ; preds = %42
%52 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %51, %49
br label %7
54: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@str = [6 x i8] c"FALSE\00"
@str.3 = [5 x i8] c"TRUE\00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%3 = alloca [10 x i8]
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%5 = alloca [10 x i8]
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%10 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %7)
%11 = icmp sgt i64 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %0
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 6
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 6
%15 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 6
br label %16
16: ; preds = %12, %16
store i8 0, i8* %13
store i8 0, i8* %14
%17 = call i32 @judge(i8* %8, i8* %9)
%18 = icmp eq i32 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0)
%20 = call i32 @puts(i8* dereferenceable(1) %19)
%21 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %7)
%22 = icmp sgt i64 %21, 0
br i1 %22, label %16, label %23
23: ; preds = %16, %0
ret i32 0
}