#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 *, char *);
int /*<<< orphan*/ squeeze(char *, char *);
int main(void) {
  char s[] = "abcdefh";
  char t[] = "cf";
  printf("%s %s\n", s, t);
  squeeze(s, t);
  printf("%s %s\n", s, t);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0xc(%rbp)
mov    0xec7(%rip),%ax
mov    %ax,-0xf(%rbp)
mov    0xebf(%rip),%al
mov    %al,-0xd(%rbp)
lea    -0xc(%rbp),%rsi
lea    -0xf(%rbp),%rdx
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
lea    -0xc(%rbp),%rdi
lea    -0xf(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0xc(%rbp),%rsi
lea    -0xf(%rbp),%rdx
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movabs $0x68666564636261,%rax
mov    %rax,0x8(%rsp)
movb   $0x0,0x6(%rsp)
movw   $0x6663,0x4(%rsp)
lea    0xeb8(%rip),%r14
lea    0x8(%rsp),%rbx
lea    0x4(%rsp),%r15
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <squeeze@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s = [8 x i8] c"abcdefh\00"
@__const.main.t = [3 x i8] c"cf\00"
@.str = [7 x i8] c"%s %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x i8]
%3 = alloca [3 x i8]
store i32 0, i32* %1
%4 = bitcast [8 x i8]* %2 to i8*
%5 = bitcast [3 x i8]* %3 to i8*
%6 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%10 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%11 = call i32 @squeeze(i8* %9, i8* %10)
%12 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13)
ret i32 0
}

LLVM IR (-O2):
@__const.main.t = [3 x i8] c"cf\00"
@.str = [7 x i8] c"%s %s\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca [3 x i8]
%3 = bitcast i64* %1 to i8*
store i64 29385983239873121, i64* %1
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
%6 = call i32 @squeeze(i8* %3, i8* %4)
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
ret i32 0
}