#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 */
typedef int /*<<< orphan*/ buffer;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *, char *, char *,
                            char *);
int /*<<< orphan*/ squeeze(char *, char *);
int main() {
  char buffer[1000] = "";
  char s00[] = "11100asdb1slkd22";
  char s01[] = "12aa";
  snprintf(buffer, sizeof(buffer), "%s%s%s%s%s => ", "squeeze(", s00, ",", s01,
           ")");
  squeeze(s00, s01);
  printf("%s %s\n", buffer, s00);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
lea    -0x3f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e8,%edx
call   1060 <memset@plt>
mov    0xe9b(%rip),%rax
mov    %rax,-0x410(%rbp)
mov    0xe95(%rip),%rax
mov    %rax,-0x408(%rbp)
mov    0xe90(%rip),%al
mov    %al,-0x400(%rbp)
mov    0xe85(%rip),%eax
mov    %eax,-0x415(%rbp)
mov    0xe7d(%rip),%al
mov    %al,-0x411(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    -0x410(%rbp),%r8
lea    -0x415(%rbp),%r10
mov    $0x3e8,%esi
lea    0xe57(%rip),%rdx
lea    0xe5f(%rip),%rcx
lea    0xe61(%rip),%r9
lea    0xe5c(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1050 <snprintf@plt>
lea    -0x410(%rbp),%rdi
lea    -0x415(%rbp),%rsi
call   1030 <squeeze@plt>
lea    -0x3f0(%rbp),%rsi
lea    -0x410(%rbp),%rdx
lea    0xe28(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x420,%rsp
lea    0x30(%rsp),%r14
mov    $0x3e8,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
movaps 0xe99(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movb   $0x0,0x20(%rsp)
movb   $0x0,0xc(%rsp)
movl   $0x61613231,0x8(%rsp)
61
lea    0xeab(%rip),%rax
lea    0x8(%rsp),%r15
lea    0xe85(%rip),%rdx
lea    0xe8d(%rip),%rcx
lea    0xe8f(%rip),%r9
lea    0x10(%rsp),%rbx
mov    %r14,%rdi
mov    $0x3e8,%esi
mov    %rbx,%r8
push   %rax
push   %r15
call   1050 <snprintf@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <squeeze@plt>
lea    0xe65(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s00 = [17 x i8] c"11100asdb1slkd22\00"
@__const.main.s01 = [5 x i8] c"12aa\00"
@.str = [15 x i8] c"%s%s%s%s%s => \00"
@.str.1 = [9 x i8] c"squeeze(\00"
@.str.2 = [2 x i8] c",\00"
@.str.3 = [2 x i8] c")\00"
@.str.4 = [7 x i8] c"%s %s\0A\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [17 x i8]
%3 = alloca [5 x i8]
%4 = bitcast [1000 x i8]* %1 to i8*
%5 = bitcast [17 x i8]* %2 to i8*
%6 = bitcast [5 x i8]* %3 to i8*
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [17 x i8], [17 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%10 = call i32 @snprintf(i8* %7, i32 1000, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%11 = getelementptr inbounds [17 x i8], [17 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%13 = call i32 @squeeze(i8* %11, i8* %12)
%14 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%15 = getelementptr inbounds [17 x i8], [17 x i8]* %2, i64 0, i64 0
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %14, i8* %15)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s00 = [17 x i8] c"11100asdb1slkd22\00"
@__const.main.s01 = [5 x i8] c"12aa\00"
@.str = [15 x i8] c"%s%s%s%s%s => \00"
@.str.1 = [9 x i8] c"squeeze(\00"
@.str.2 = [2 x i8] c",\00"
@.str.3 = [2 x i8] c")\00"
@.str.4 = [7 x i8] c"%s %s\0A\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [17 x i8]
%3 = alloca [5 x i8]
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [17 x i8], [17 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%7 = call i32 @snprintf(i8* %4, i32 1000, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @squeeze(i8* %5, i8* %6)
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %4, i8* %5)
ret i32 0
}