#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 *, char *);
int /*<<< orphan*/ squeeze(char *, char *);
int main() {
  char string1[1000] = {'H', 'e', 'l', 'l', 'o', ' ', 'K', 'i', 'r',
                        'i', 'l', 'J', 'o', 'o', 'n', '-', 'h', 'o'};
  char string2[1000] = {'K', 'i', 'r', 'i', 'l', 'l'};
  printf("First string is: %s\n", string1);
  printf("Second string is: %s\n", string2);
  squeeze(string1, string2);
  printf("First string after squeeze is: %s\n", string1);
  printf("Second string after squeez is: %s\n", string2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x7e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    0xea0(%rip),%rsi
mov    $0x3e8,%edx
call   1060 <memcpy@plt>
lea    -0x7e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1050 <memset@plt>
movb   $0x4b,-0x7e0(%rbp)
movb   $0x69,-0x7df(%rbp)
movb   $0x72,-0x7de(%rbp)
movb   $0x69,-0x7dd(%rbp)
movb   $0x6c,-0x7dc(%rbp)
movb   $0x6c,-0x7db(%rbp)
lea    -0x3f0(%rbp),%rsi
lea    0x1233(%rip),%rdi
call   1040 <printf@plt>
lea    -0x7e0(%rbp),%rsi
lea    0x1235(%rip),%rdi
call   1040 <printf@plt>
lea    -0x3f0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x3f0(%rbp),%rsi
lea    0x1225(%rip),%rdi
call   1040 <printf@plt>
lea    -0x7e0(%rbp),%rsi
lea    0x1235(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x7e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x7d8,%rsp
lea    0xeaf(%rip),%rsi
lea    0x3f0(%rsp),%r14
mov    $0x3e8,%edx
mov    %r14,%rdi
call   1060 <memcpy@plt>
mov    %rsp,%rbx
mov    $0x3e8,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x6972694b,(%rsp)
movw   $0x6c6c,0x4(%rsp)
lea    0x125b(%rip),%rdi
mov    %r14,%rsi
call   1040 <printf@plt>
lea    0x1261(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <squeeze@plt>
lea    0x125d(%rip),%rdi
mov    %r14,%rsi
call   1040 <printf@plt>
lea    0x1271(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x7d8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.string1 = <{ [18 x i8], [982 x i8] }> <{ [18 x i8] c"Hello KirilJoon-ho", [982 x i8] zeroinitializer }>
@.str = [21 x i8] c"First string is: %s\0A\00"
@.str.1 = [22 x i8] c"Second string is: %s\0A\00"
@.str.2 = [35 x i8] c"First string after squeeze is: %s\0A\00"
@.str.3 = [35 x i8] c"Second string after squeez is: %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1000 x i8]
%3 = alloca [1000 x i8]
store i32 0, i32* %1
%4 = bitcast [1000 x i8]* %2 to i8*
%5 = bitcast [1000 x i8]* %3 to i8*
%6 = bitcast i8* %5 to <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>*
%7 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 0
store i8 75, i8* %7
%8 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 1
store i8 105, i8* %8
%9 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 2
store i8 114, i8* %9
%10 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 3
store i8 105, i8* %10
%11 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 4
store i8 108, i8* %11
%12 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [994 x i8] }>* %6, i32 0, i32 5
store i8 108, i8* %12
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%16 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%18 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%19 = call i32 @squeeze(i8* %17, i8* %18)
%20 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%21 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%23 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %22)
ret i32 0
}

LLVM IR (-O2):
@__const.main.string1 = <{ [18 x i8], [982 x i8] }> <{ [18 x i8] c"Hello KirilJoon-ho", [982 x i8] zeroinitializer }>
@.str = [21 x i8] c"First string is: %s\0A\00"
@.str.1 = [22 x i8] c"Second string is: %s\0A\00"
@.str.2 = [35 x i8] c"First string after squeeze is: %s\0A\00"
@.str.3 = [35 x i8] c"Second string after squeez is: %s\0A\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [1000 x i8]
%3 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
store i8 75, i8* %4
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 1
store i8 105, i8* %5
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 2
store i8 114, i8* %6
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 3
store i8 105, i8* %7
%8 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 4
store i8 108, i8* %8
%9 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 5
store i8 108, i8* %9
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %3)
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%12 = call i32 @squeeze(i8* %3, i8* %4)
%13 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%14 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* %4)
ret i32 0
}