#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*/ test(char *, char *);
void TEST_if_op(void) {
  test("true", "main(){int i=1; if (i) { printf(\"true\"); } else { "
               "printf(\"false\"); }}");
  test("false", "main(){int i=0; if (i) { printf(\"true\"); } else { "
                "printf(\"false\"); }}");
  test("true", "main(){int i=1; if (i)   printf(\"true\");   else   "
               "printf(\"false\");}");
}


x86 assembly (clang, -O0):
<TEST_if_op>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee3(%rip),%rsi
call   1030 <test@plt>
lea    0xf1d(%rip),%rdi
lea    0xf1c(%rip),%rsi
call   1030 <test@plt>
lea    0xebf(%rip),%rdi
lea    0xf4f(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_if_op>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xee6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xf1d(%rip),%rdi
lea    0xf1c(%rip),%rsi
call   1030 <test@plt>
lea    0xf56(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"true\00"
@.str.1 = [70 x i8] c"main(){int i=1; if (i) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [70 x i8] c"main(){int i=0; if (i) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.4 = [68 x i8] c"main(){int i=1; if (i) printf(\22true\22); else printf(\22false\22);}\00"
define void @TEST_if_op() {
%1 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"true\00"
@.str.1 = [70 x i8] c"main(){int i=1; if (i) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [70 x i8] c"main(){int i=0; if (i) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.4 = [68 x i8] c"main(){int i=1; if (i) printf(\22true\22); else printf(\22false\22);}\00"
define void @TEST_if_op() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
ret void
}