#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 *);
main() {
  char s[] = "test";
  char t[] = "te";
  squeeze(s, t);
  printf("%s\n", s);
  char s1[] = "test";
  char t1[] = "st";
  squeeze(s1, t1);
  printf("%s\n", s1);
  char s2[] = "test";
  char t2[] = "sta";
  squeeze(s2, t2);
  printf("%s\n", s2);
  char s3[] = "test";
  char t3[] = "test";
  squeeze(s3, t3);
  printf("%s\n", s3);
  char s4[] = "test";
  char t4[] = "";
  squeeze(s4, t4);
  printf("%s\n", s4);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xec2(%rip),%eax
mov    %eax,-0x5(%rbp)
mov    0xebd(%rip),%al
mov    %al,-0x1(%rbp)
mov    0xeb4(%rip),%ax
mov    %ax,-0x8(%rbp)
mov    0xeac(%rip),%al
mov    %al,-0x6(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x8(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x5(%rbp),%rsi
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
mov    0xe7f(%rip),%eax
mov    %eax,-0xd(%rbp)
mov    0xe7a(%rip),%al
mov    %al,-0x9(%rbp)
mov    0xe6e(%rip),%ax
mov    %ax,-0x10(%rbp)
mov    0xe66(%rip),%al
mov    %al,-0xe(%rbp)
lea    -0xd(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0xd(%rbp),%rsi
lea    0xe4f(%rip),%rdi
call   1040 <printf@plt>
mov    0xe3c(%rip),%eax
mov    %eax,-0x15(%rbp)
mov    0xe37(%rip),%al
mov    %al,-0x11(%rbp)
mov    0xe36(%rip),%eax
mov    %eax,-0x19(%rbp)
lea    -0x15(%rbp),%rdi
lea    -0x19(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x15(%rbp),%rsi
lea    0xe17(%rip),%rdi
call   1040 <printf@plt>
mov    0xe04(%rip),%eax
mov    %eax,-0x1e(%rbp)
mov    0xdff(%rip),%al
mov    %al,-0x1a(%rbp)
mov    0xdf2(%rip),%eax
mov    %eax,-0x23(%rbp)
mov    0xded(%rip),%al
mov    %al,-0x1f(%rbp)
lea    -0x1e(%rbp),%rdi
lea    -0x23(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x1e(%rbp),%rsi
lea    0xdd6(%rip),%rdi
call   1040 <printf@plt>
mov    0xdc3(%rip),%eax
mov    %eax,-0x28(%rbp)
mov    0xdbe(%rip),%al
mov    %al,-0x24(%rbp)
lea    -0x29(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <memset@plt>
lea    -0x28(%rbp),%rdi
lea    -0x29(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x28(%rbp),%rsi
lea    0xd97(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
movb   $0x0,0x40(%rsp)
movl   $0x74736574,0x3c(%rsp)
74
movb   $0x0,0x12(%rsp)
movw   $0x6574,0x10(%rsp)
lea    0x3c(%rsp),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <squeeze@plt>
lea    0xeaa(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
movb   $0x0,0x38(%rsp)
movl   $0x74736574,0x34(%rsp)
74
movb   $0x0,0xe(%rsp)
movw   $0x7473,0xc(%rsp)
lea    0x34(%rsp),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <squeeze@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
movb   $0x0,0x30(%rsp)
movl   $0x74736574,0x2c(%rsp)
74
movl   $0x617473,0x44(%rsp)
lea    0x2c(%rsp),%rbx
lea    0x44(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <squeeze@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
movb   $0x0,0x28(%rsp)
movl   $0x74736574,0x24(%rsp)
74
movb   $0x0,0x20(%rsp)
movl   $0x74736574,0x1c(%rsp)
74
lea    0x24(%rsp),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <squeeze@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
movb   $0x0,0x18(%rsp)
movl   $0x74736574,0x14(%rsp)
74
movb   $0x0,0xb(%rsp)
lea    0x14(%rsp),%rbx
lea    0xb(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <squeeze@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.s = [5 x i8] c"test\00"
@__const.main.t = [3 x i8] c"te\00"
@.str = [4 x i8] c"%s\0A\00"
@__const.main.s1 = [5 x i8] c"test\00"
@__const.main.t1 = [3 x i8] c"st\00"
@__const.main.s2 = [5 x i8] c"test\00"
@__const.main.t2 = [4 x i8] c"sta\00"
@__const.main.s3 = [5 x i8] c"test\00"
@__const.main.t3 = [5 x i8] c"test\00"
@__const.main.s4 = [5 x i8] c"test\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = alloca [3 x i8]
%3 = alloca [5 x i8]
%4 = alloca [3 x i8]
%5 = alloca [5 x i8]
%6 = alloca [4 x i8]
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = alloca [1 x i8]
%11 = bitcast [5 x i8]* %1 to i8*
%12 = bitcast [3 x i8]* %2 to i8*
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%14 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%15 = call i32 @squeeze(i8* %13, i8* %14)
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = bitcast [5 x i8]* %3 to i8*
%19 = bitcast [3 x i8]* %4 to i8*
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%21 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%22 = call i32 @squeeze(i8* %20, i8* %21)
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = bitcast [5 x i8]* %5 to i8*
%26 = bitcast [4 x i8]* %6 to i8*
%27 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%28 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 0
%29 = call i32 @squeeze(i8* %27, i8* %28)
%30 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %30)
%32 = bitcast [5 x i8]* %7 to i8*
%33 = bitcast [5 x i8]* %8 to i8*
%34 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%36 = call i32 @squeeze(i8* %34, i8* %35)
%37 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %37)
%39 = bitcast [5 x i8]* %9 to i8*
%40 = bitcast [1 x i8]* %10 to i8*
%41 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%42 = getelementptr inbounds [1 x i8], [1 x i8]* %10, i64 0, i64 0
%43 = call i32 @squeeze(i8* %41, i8* %42)
%44 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %44)
ret i32 0
}

LLVM IR (-O2):
@__const.main.t = [3 x i8] c"te\00"
@.str = [4 x i8] c"%s\0A\00"
@__const.main.t1 = [3 x i8] c"st\00"
@__const.main.s4 = [5 x i8] c"test\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = alloca [3 x i8]
%3 = alloca [5 x i8]
%4 = alloca [3 x i8]
%5 = alloca [5 x i8]
%6 = alloca i32
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = alloca [1 x i8]
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%13 = call i32 @squeeze(i8* %11, i8* %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%16 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%17 = call i32 @squeeze(i8* %15, i8* %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %15)
%19 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%20 = bitcast i32* %6 to i8*
store i32 6386803, i32* %6
%21 = call i32 @squeeze(i8* %19, i8* %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %19)
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%25 = call i32 @squeeze(i8* %23, i8* %24)
%26 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %23)
%27 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%28 = getelementptr inbounds [1 x i8], [1 x i8]* %10, i64 0, i64 0
store i8 0, i8* %28
%29 = call i32 @squeeze(i8* %27, i8* %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %27)
ret i32 0
}