#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__ EOF;
char *get_end(char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ scanf(char *, char *);
int strlen(char *);
int main() {
  char sen[256];
  while (EOF != scanf("%s", sen))
    puts(get_end(sen) == sen + strlen(sen) ? "YES" : "NO");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x118(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xe8f(%rip),%rdi
call   1060 <scanf@plt>
mov    %rax,%rcx
mov    -0x118(%rbp),%rax
cmp    %rcx,%rax
je     11e8 <main+0xa8>
lea    -0x110(%rbp),%rdi
call   1050 <get_end@plt>
mov    %rax,-0x120(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    -0x110(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x128(%rbp),%rdx
mov    -0x120(%rbp),%rcx
cltq
add    %rax,%rdx
lea    0xe37(%rip),%rdi
lea    0xe2c(%rip),%rax
cmp    %rdx,%rcx
cmove  %rax,%rdi
call   1030 <puts@plt>
jmp    1152 <main+0x12>
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    0x2e90(%rip),%r12
mov    (%r12),%rbx
lea    0xe9d(%rip),%rdi
mov    %rsp,%rsi
call   1060 <scanf@plt>
cmp    %rax,%rbx
je     11cb <main+0x8b>
mov    %rsp,%r15
lea    0xe89(%rip),%r13
lea    0xe86(%rip),%rbp
lea    0xe78(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1050 <get_end@plt>
mov    %rax,%rbx
mov    %r15,%rdi
call   1040 <strlen@plt>
cltq
add    %rsp,%rax
cmp    %rax,%rbx
mov    %rbp,%rdi
cmove  %r13,%rdi
call   1030 <puts@plt>
mov    (%r12),%rbx
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
cmp    %rax,%rbx
jne    1190 <main+0x50>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EOF = global i64 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [256 x i8]
store i32 0, i32* %1
br label %3
3: ; preds = %8, %0
%4 = load i64, i64* @EOF
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%6 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %20
8: ; preds = %3
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%10 = call i8* @get_end(i8* %9)
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%13 = call i32 @strlen(i8* %12)
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %11, i64 %14
%16 = icmp eq i8* %10, %15
%17 = zext i1 %16 to i64
%18 = select i1 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%19 = call i32 @puts(i8* %18)
br label %3
20: ; preds = %3
%21 = load i32, i32* %1
ret i32 %21
}

LLVM IR (-O2):
@EOF = global i64 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = load i64, i64* @EOF
%4 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%5 = icmp eq i64 %3, %4
br i1 %5, label %17, label %6
6: ; preds = %0, %6
%7 = call i8* @get_end(i8* %2)
%8 = call i32 @strlen(i8* %2)
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %9
%11 = icmp eq i8* %7, %10
%12 = select i1 %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%13 = call i32 @puts(i8* dereferenceable(1) %12)
%14 = load i64, i64* @EOF
%15 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%16 = icmp eq i64 %14, %15
br i1 %16, label %17, label %6
17: ; preds = %6, %0
ret i32 0
}