#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*/ naive_printf(char *, char *);
int naive_scanf(char *, char *, char *);
scalar_t__ test_subsequence(char *, char *);
int program_main() {
  static char s1[100000 + 1], s2[100000 + 1];
  while (naive_scanf("%s%s", s1, s2) == 2)
    naive_printf("%s\n", (test_subsequence(s1, s2) ? "Yes" : "No"));
  return 0;
}


x86 assembly (clang, -O0):
<program_main>:
push   %rbp
mov    %rsp,%rbp
jmp    1139 <program_main+0x9>
lea    0xec0(%rip),%rdi
lea    0x2f09(%rip),%rsi
lea    0x1b5b2(%rip),%rdx
call   1030 <naive_scanf@plt>
cmp    $0x2,%eax
jne    1199 <program_main+0x69>
lea    0x2eed(%rip),%rdi
lea    0x1b596(%rip),%rsi
call   1040 <test_subsequence@plt>
mov    %rax,%rcx
lea    0xe94(%rip),%rsi
lea    0xe89(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe76(%rip),%rdi
call   1050 <naive_printf@plt>
jmp    1139 <program_main+0x9>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<program_main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xebe(%rip),%rdi
lea    0x2f07(%rip),%rsi
lea    0x1b5b0(%rip),%rdx
call   1030 <naive_scanf@plt>
cmp    $0x2,%eax
jne    11c0 <program_main+0x90>
lea    0x2eef(%rip),%r14
lea    0x1b598(%rip),%rbx
lea    0xe9e(%rip),%r13
lea    0xe93(%rip),%rbp
lea    0xe88(%rip),%r15
lea    0xe7c(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <test_subsequence@plt>
test   %rax,%rax
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r15,%rdi
call   1050 <naive_printf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <naive_scanf@plt>
cmp    $0x2,%eax
je     1190 <program_main+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@program_main.s1 = internal global [100001 x i8] zeroinitializer
@program_main.s2 = internal global [100001 x i8] zeroinitializer
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"Yes\00"
@.str.3 = [3 x i8] c"No\00"
define i32 @program_main() {
br label %1
1: ; preds = %4, %0
%2 = call i32 @naive_scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s1, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s2, i64 0, i64 0))
%3 = icmp eq i32 %2, 2
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = call i64 @test_subsequence(i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s1, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s2, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%9 = call i32 @naive_printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
br label %1
10: ; preds = %1
ret i32 0
}

LLVM IR (-O2):
@program_main.s1 = internal global [100001 x i8] zeroinitializer
@program_main.s2 = internal global [100001 x i8] zeroinitializer
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"Yes\00"
@.str.3 = [3 x i8] c"No\00"
define i32 @program_main() {
%1 = tail call i32 @naive_scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s1, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s2, i64 0, i64 0))
%2 = icmp eq i32 %1, 2
br i1 %2, label %3, label %10
3: ; preds = %0, %3
%4 = tail call i64 @test_subsequence(i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s1, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s2, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%7 = tail call i32 @naive_printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = tail call i32 @naive_scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s1, i64 0, i64 0), i8* getelementptr inbounds ([100001 x i8], [100001 x i8]* @program_main.s2, i64 0, i64 0))
%9 = icmp eq i32 %8, 2
br i1 %9, label %3, label %10
10: ; preds = %3, %0
ret i32 0
}