#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 any(char *, char *);
int /*<<< orphan*/ printf(char *, char *, char *, int);
main() {
  char test1[] = "and this is a test";
  char test2[] = "set";
  char test3[] = "apple";
  char test4[] = "not";
  printf("%s, %s, %d\n", test1, test2, any(test1, test2));
  printf("%s, %s, %d\n", test1, test3, any(test1, test3));
  printf("%s, %s, %d\n", test2, test3, any(test2, test3));
  printf("%s, %s, %d\n", test3, test4, any(test3, test4));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec4(%rip),%ax
mov    %ax,-0x10(%rbp)
mov    0xebc(%rip),%al
mov    %al,-0xe(%rbp)
mov    0xeb4(%rip),%eax
mov    %eax,-0x24(%rbp)
mov    0xeaf(%rip),%eax
mov    %eax,-0x2a(%rbp)
mov    0xea9(%rip),%ax
mov    %ax,-0x26(%rbp)
mov    0xea1(%rip),%eax
mov    %eax,-0x2e(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0x24(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1040 <any@plt>
mov    -0x70(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    %eax,%ecx
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
lea    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x2a(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
call   1040 <any@plt>
mov    -0x60(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    %eax,%ecx
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
lea    -0x24(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x2a(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x24(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
call   1040 <any@plt>
mov    -0x50(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    %eax,%ecx
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
lea    -0x2a(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x2e(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x2a(%rbp),%rdi
lea    -0x2e(%rbp),%rsi
call   1040 <any@plt>
mov    -0x40(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    %eax,%ecx
lea    0xddb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x747365,0x1f(%rsp)
movl   $0x746573,0xc(%rsp)
movw   $0x65,0x8(%rsp)
movl   $0x6c707061,0x4(%rsp)
6c
movl   $0x746f6e,(%rsp)
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r15
mov    %r12,%rdi
mov    %r15,%rsi
call   1040 <any@plt>
lea    0xea0(%rip),%r14
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %eax,%ecx
call   1030 <printf@plt>
lea    0x4(%rsp),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <any@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <any@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
call   1030 <printf@plt>
mov    %rsp,%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <any@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %eax,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.test1 = [19 x i8] c"and this is a test\00"
@__const.main.test2 = [4 x i8] c"set\00"
@__const.main.test3 = [6 x i8] c"apple\00"
@__const.main.test4 = [4 x i8] c"not\00"
@.str = [12 x i8] c"%s, %s, %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [19 x i8]
%3 = alloca [4 x i8]
%4 = alloca [6 x i8]
%5 = alloca [4 x i8]
store i32 0, i32* %1
%6 = bitcast [19 x i8]* %2 to i8*
%7 = bitcast [4 x i8]* %3 to i8*
%8 = bitcast [6 x i8]* %4 to i8*
%9 = bitcast [4 x i8]* %5 to i8*
%10 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%13 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%14 = call i32 @any(i8* %12, i8* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %11, i32 %14)
%16 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%18 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%19 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%20 = call i32 @any(i8* %18, i8* %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %16, i8* %17, i32 %20)
%22 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%23 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%24 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%25 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%26 = call i32 @any(i8* %24, i8* %25)
%27 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %22, i8* %23, i32 %26)
%28 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%29 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%30 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%31 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%32 = call i32 @any(i8* %30, i8* %31)
%33 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %28, i8* %29, i32 %32)
ret i32 0
}

LLVM IR (-O2):
@__const.main.test1 = [19 x i8] c"and this is a test\00"
@__const.main.test3 = [6 x i8] c"apple\00"
@.str = [12 x i8] c"%s, %s, %d\0A\00"
define i32 @main() {
%1 = alloca [19 x i8]
%2 = alloca i32
%3 = alloca [6 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [19 x i8], [19 x i8]* %1, i64 0, i64 0
%6 = bitcast i32* %2 to i8*
store i32 7628147, i32* %2
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%8 = bitcast i32* %4 to i8*
store i32 7630702, i32* %4
%9 = call i32 @any(i8* %5, i8* %6)
%10 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6, i32 %9)
%11 = call i32 @any(i8* %5, i8* %7)
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %7, i32 %11)
%13 = call i32 @any(i8* %6, i8* %7)
%14 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7, i32 %13)
%15 = call i32 @any(i8* %7, i8* %8)
%16 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8, i32 %15)
ret i32 0
}