#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 */
typedef int /*<<< orphan*/ buffer;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int sscanf(char *, char *, char *);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main() {
  char buffer[1100], str[1001];
  int i, j;
  if (fgets(buffer, sizeof(buffer), stdin) == NULL) {
    exit(EXIT_FAILURE);
  }
  if (sscanf(buffer, "%s", str) != 1) {
    exit(EXIT_FAILURE);
  }
  i = 0;
  j = strlen(str) - 1;
  while (i <= j) {
    if (str[i++] != str[j--]) {
      printf("False");
      return EXIT_SUCCESS;
    }
  }
  printf("True");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x450(%rbp),%rdi
mov    0x2e78(%rip),%rax
mov    (%rax),%edx
mov    $0x44c,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    1194 <main+0x44>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
lea    -0x450(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xe57(%rip),%rsi
call   1060 <sscanf@plt>
cmp    $0x1,%eax
je     11c5 <main+0x75>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
movl   $0x0,-0x844(%rbp)
lea    -0x840(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
mov    %eax,-0x848(%rbp)
mov    -0x844(%rbp),%eax
cmp    -0x848(%rbp),%eax
jg     1257 <main+0x107>
mov    -0x844(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x844(%rbp)
cltq
movsbl -0x840(%rbp,%rax,1),%eax
ff
mov    -0x848(%rbp),%ecx
mov    %ecx,%edx
add    $0xffffffff,%edx
mov    %edx,-0x848(%rbp)
movslq %ecx,%rcx
movsbl -0x840(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
je     1252 <main+0x102>
lea    0xdc7(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d88(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    126f <main+0x11f>
jmp    11e4 <main+0x94>
lea    0xdab(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d66(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x848,%rsp
mov    0x2e8a(%rip),%rax
mov    (%rax),%edx
lea    0x3f0(%rsp),%rdi
mov    $0x44c,%esi
call   1050 <fgets@plt>
test   %rax,%rax
je     11e3 <main+0x93>
lea    0xe82(%rip),%rsi
lea    0x3f0(%rsp),%rdi
mov    %rsp,%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
jne    11e3 <main+0x93>
mov    %rsp,%rdi
call   1030 <strlen@plt>
cltq
xor    %ecx,%ecx
lea    0xe63(%rip),%rdi
lea    0xe56(%rip),%r8
nopl   (%rax)
cmp    %rax,%rcx
jge    11cd <main+0x7d>
movzbl (%rsp,%rcx,1),%edx
add    $0x1,%rcx
lea    -0x1(%rax),%rsi
cmp    -0x1(%rsp,%rax,1),%dl
mov    %rsi,%rax
je     11b0 <main+0x60>
mov    %r8,%rdi
call   1040 <printf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%eax
add    $0x848,%rsp
ret
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@stdin = global i32 0
@EXIT_FAILURE = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"False\00"
@EXIT_SUCCESS = global i32 0
@.str.2 = [5 x i8] c"True\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1100 x i8]
%3 = alloca [1001 x i8]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = getelementptr inbounds [1100 x i8], [1100 x i8]* %2, i64 0, i64 0
%7 = load i32, i32* @stdin
%8 = call i32* @fgets(i8* %6, i32 1100, i32 %7)
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = load i32, i32* @EXIT_FAILURE
%12 = call i32 @exit(i32 %11)
unreachable
13: ; preds = %0
%14 = getelementptr inbounds [1100 x i8], [1100 x i8]* %2, i64 0, i64 0
%15 = getelementptr inbounds [1001 x i8], [1001 x i8]* %3, i64 0, i64 0
%16 = call i32 @sscanf(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = icmp ne i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i32, i32* @EXIT_FAILURE
%20 = call i32 @exit(i32 %19)
unreachable
21: ; preds = %13
store i32 0, i32* %4
%22 = getelementptr inbounds [1001 x i8], [1001 x i8]* %3, i64 0, i64 0
%23 = call i32 @strlen(i8* %22)
%24 = sub nsw i32 %23, 1
store i32 %24, i32* %5
br label %25
25: ; preds = %46, %21
%26 = load i32, i32* %4
%27 = load i32, i32* %5
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %47
29: ; preds = %25
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
store i32 %31, i32* %4
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds [1001 x i8], [1001 x i8]* %3, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = load i32, i32* %5
%37 = add nsw i32 %36, -1
store i32 %37, i32* %5
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds [1001 x i8], [1001 x i8]* %3, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %35, %41
br i1 %42, label %43, label %46
43: ; preds = %29
%44 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%45 = load i32, i32* @EXIT_SUCCESS
store i32 %45, i32* %1
br label %50
46: ; preds = %29
br label %25
47: ; preds = %25
%48 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32, i32* @EXIT_SUCCESS
store i32 %49, i32* %1
br label %50
50: ; preds = %47, %43
%51 = load i32, i32* %1
ret i32 %51
}

LLVM IR (-O2):
@stdin = global i32 0
@EXIT_FAILURE = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"False\00"
@EXIT_SUCCESS = global i32 0
@.str.2 = [5 x i8] c"True\00"
define i32 @main() {
%1 = alloca [1100 x i8]
%2 = alloca [1001 x i8]
%3 = getelementptr inbounds [1100 x i8], [1100 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [1001 x i8], [1001 x i8]* %2, i64 0, i64 0
%5 = load i32, i32* @stdin
%6 = call i32* @fgets(i8* %3, i32 1100, i32 %5)
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, i32* @EXIT_FAILURE
%10 = call i32 @exit(i32 %9)
unreachable
11: ; preds = %0
%12 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%13 = icmp eq i32 %12, 1
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, i32* @EXIT_FAILURE
%16 = call i32 @exit(i32 %15)
unreachable
17: ; preds = %11
%18 = call i32 @strlen(i8* %4)
%19 = sext i32 %18 to i64
br label %20
20: ; preds = %25, %17
%21 = phi i64 [ %23, %25 ], [ %19, %17 ]
%22 = phi i64 [ %26, %25 ], [ 0, %17 ]
%23 = add nsw i64 %21, -1
%24 = icmp slt i64 %22, %21
br i1 %24, label %25, label %32
25: ; preds = %20
%26 = add nuw nsw i64 %22, 1
%27 = getelementptr inbounds [1001 x i8], [1001 x i8]* %2, i64 0, i64 %22
%28 = load i8, i8* %27
%29 = getelementptr inbounds [1001 x i8], [1001 x i8]* %2, i64 0, i64 %23
%30 = load i8, i8* %29
%31 = icmp eq i8 %28, %30
br i1 %31, label %20, label %32
32: ; preds = %20, %25
%33 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %25 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %20 ]
%34 = call i32 @printf(i8* dereferenceable(1) %33)
%35 = load i32, i32* @EXIT_SUCCESS
ret i32 %35
}