int main() {
  char s00[] = "11100asdb1slkd22";
  char s01[] = "12aa";
  printf("%s%s%s%s%s => %d\n", "any(", s00, ",", s01, ")", any(s00, s01));
  char s02[] = "11100asdb1slkd22";
  char s03[] = "";
  printf("%s%s%s%s%s => %d\n", "any(", s02, ",", s03, ")", any(s02, s03));
  char s04[] = "11100asdb1slkd22";
  char s05[] = "2";
  printf("%s%s%s%s%s => %d\n", "any(", s04, ",", s05, ")", any(s04, s05));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0xebe(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeb9(%rip),%al
mov    %al,-0x10(%rbp)
mov    0xeb1(%rip),%eax
mov    %eax,-0x25(%rbp)
mov    0xeac(%rip),%al
mov    %al,-0x21(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x25(%rbp),%rax
mov    %rax,-0x90(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x25(%rbp),%rsi
mov    $0x0,%al
call   1050 <any@plt>
mov    -0x98(%rbp),%rdx
mov    -0x90(%rbp),%r8
lea    0xe70(%rip),%rdi
lea    0xe7b(%rip),%rsi
lea    0xe79(%rip),%rcx
lea    0xe74(%rip),%r9
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xe34(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe31(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe2f(%rip),%al
mov    %al,-0x30(%rbp)
lea    -0x41(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1040 <memset@plt>
lea    -0x40(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    -0x41(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0x41(%rbp),%rsi
mov    $0x0,%al
call   1050 <any@plt>
mov    -0x88(%rbp),%rdx
mov    -0x80(%rbp),%r8
lea    0xdee(%rip),%rdi
lea    0xdf9(%rip),%rsi
lea    0xdf7(%rip),%rcx
lea    0xdf2(%rip),%r9
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xdb2(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xdaf(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xdad(%rip),%al
mov    %al,-0x50(%rbp)
mov    0xdc4(%rip),%ax
mov    %ax,-0x62(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x62(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0x60(%rbp),%rdi
lea    -0x62(%rbp),%rsi
mov    $0x0,%al
call   1050 <any@plt>
mov    -0x78(%rbp),%rdx
mov    -0x70(%rbp),%r8
lea    0xd77(%rip),%rdi
lea    0xd82(%rip),%rsi
lea    0xd80(%rip),%rcx
lea    0xd7b(%rip),%r9
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movaps 0xeeb(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movb   $0x0,0x70(%rsp)
movb   $0x0,0x1c(%rsp)
movl   $0x61613231,0x18(%rsp)
61
lea    0x60(%rsp),%rbx
lea    0x18(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <any@plt>
mov    %eax,(%rsp)
lea    0xe98(%rip),%r13
lea    0xea3(%rip),%r12
lea    0xea1(%rip),%r15
lea    0xe9c(%rip),%r14
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <printf@plt>
movaps 0xe7e(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movb   $0x0,0x50(%rsp)
movb   $0x0,0x15(%rsp)
lea    0x40(%rsp),%rbx
lea    0x15(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <any@plt>
mov    %eax,(%rsp)
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <printf@plt>
movaps 0xe35(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movb   $0x0,0x30(%rsp)
movw   $0x32,0x16(%rsp)
lea    0x20(%rsp),%rbx
lea    0x16(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <any@plt>
mov    %eax,(%rsp)
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.s00 = [17 x i8] c"11100asdb1slkd22\00"
@__const.main.s01 = [5 x i8] c"12aa\00"
@.str = [18 x i8] c"%s%s%s%s%s => %d\0A\00"
@.str.1 = [5 x i8] c"any(\00"
@.str.2 = [2 x i8] c",\00"
@.str.3 = [2 x i8] c")\00"
@__const.main.s02 = [17 x i8] c"11100asdb1slkd22\00"
@__const.main.s04 = [17 x i8] c"11100asdb1slkd22\00"
@__const.main.s05 = [2 x i8] c"2\00"
define i32 @main() {
%1 = alloca [17 x i8]
%2 = alloca [5 x i8]
%3 = alloca [17 x i8]
%4 = alloca [1 x i8]
%5 = alloca [17 x i8]
%6 = alloca [2 x i8]
%7 = bitcast [17 x i8]* %1 to i8*
%8 = bitcast [5 x i8]* %2 to i8*
%9 = getelementptr inbounds [17 x i8], [17 x i8]* %1, i64 0, i64 0
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [17 x i8], [17 x i8]* %1, i64 0, i64 0
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%13 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @any to i32 (i8*, i8*, ...)*)(i8* %11, i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%15 = bitcast [17 x i8]* %3 to i8*
%16 = bitcast [1 x i8]* %4 to i8*
%17 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 0
%18 = getelementptr inbounds [1 x i8], [1 x i8]* %4, i64 0, i64 0
%19 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 0
%20 = getelementptr inbounds [1 x i8], [1 x i8]* %4, i64 0, i64 0
%21 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @any to i32 (i8*, i8*, ...)*)(i8* %19, i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = bitcast [17 x i8]* %5 to i8*
%24 = bitcast [2 x i8]* %6 to i8*
%25 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%26 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%27 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%28 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%29 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @any to i32 (i8*, i8*, ...)*)(i8* %27, i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %29)
ret i32 0
}

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