#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 *);
scalar_t__ problem(char *, char *);
int main(int argc, char *argv[]) {
  printf("-> %s\n", (problem("synchronized", "snond")) ? "true" : "false");
  printf("-> %s\n", (problem("misfunctioned", "snond")) ? "true" : "false");
  printf("-> %s\n", (problem("mispronounced", "snond")) ? "true" : "false");
  printf("-> %s\n", (problem("shotgunned", "snond")) ? "true" : "false");
  printf("-> %s\n", (problem("snond", "snond")) ? "true" : "false");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeca(%rip),%rdi
lea    0xed0(%rip),%rsi
call   1040 <problem@plt>
mov    %rax,%rcx
lea    0xecc(%rip),%rsi
lea    0xec0(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    0xe98(%rip),%rsi
call   1040 <problem@plt>
mov    %rax,%rcx
lea    0xe94(%rip),%rsi
lea    0xe88(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
lea    0xe60(%rip),%rsi
call   1040 <problem@plt>
mov    %rax,%rcx
lea    0xe5c(%rip),%rsi
lea    0xe50(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
lea    0xe5c(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1040 <problem@plt>
mov    %rax,%rcx
lea    0xe24(%rip),%rsi
lea    0xe18(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
lea    0xdf7(%rip),%rsi
mov    %rsi,%rdi
call   1040 <problem@plt>
mov    %rax,%rcx
lea    0xdf0(%rip),%rsi
lea    0xde4(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed8(%rip),%rdi
lea    0xede(%rip),%r14
mov    %r14,%rsi
call   1040 <problem@plt>
test   %rax,%rax
lea    0xed7(%rip),%r12
lea    0xecb(%rip),%rbx
mov    %rbx,%rsi
cmove  %r12,%rsi
lea    0xea3(%rip),%r15
mov    %r15,%rdi
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    %r14,%rsi
call   1040 <problem@plt>
test   %rax,%rax
mov    %rbx,%rsi
cmove  %r12,%rsi
mov    %r15,%rdi
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
mov    %r14,%rsi
call   1040 <problem@plt>
test   %rax,%rax
mov    %rbx,%rsi
cmove  %r12,%rsi
mov    %r15,%rdi
call   1030 <printf@plt>
lea    0xe93(%rip),%rdi
mov    %r14,%rsi
call   1040 <problem@plt>
test   %rax,%rax
mov    %rbx,%rsi
cmove  %r12,%rsi
mov    %r15,%rdi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %r14,%rsi
call   1040 <problem@plt>
test   %rax,%rax
cmove  %r12,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"-> %s\0A\00"
@.str.1 = [13 x i8] c"synchronized\00"
@.str.2 = [6 x i8] c"snond\00"
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
@.str.5 = [14 x i8] c"misfunctioned\00"
@.str.6 = [14 x i8] c"mispronounced\00"
@.str.7 = [11 x i8] c"shotgunned\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i64 @problem(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%10 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = call i64 @problem(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = call i64 @problem(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = call i64 @problem(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = call i64 @problem(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp ne i64 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%30 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %29)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"-> %s\0A\00"
@.str.1 = [13 x i8] c"synchronized\00"
@.str.2 = [6 x i8] c"snond\00"
@.str.3 = [5 x i8] c"true\00"
@.str.4 = [6 x i8] c"false\00"
@.str.5 = [14 x i8] c"misfunctioned\00"
@.str.6 = [14 x i8] c"mispronounced\00"
@.str.7 = [11 x i8] c"shotgunned\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @problem(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = tail call i64 @problem(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = tail call i64 @problem(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = tail call i64 @problem(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = tail call i64 @problem(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
%21 = select i1 %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %21)
ret i32 0
}