#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 */
struct Tester {
  int dummy;
};

/* Variables and functions */
struct Tester *newtest();
int /*<<< orphan*/ test(struct Tester *, int, char *);
int /*<<< orphan*/ testf(struct Tester *, int, char *);
int main() {
  struct Tester *t;
  t = newtest();
  test(t, 1 < 2, "This should pass");
  test(t, 1 > 2, "This should fail");
  testf(t, 1 < 2, "This should pass and not exit");
  testf(t, 1 > 2, "This should fail and then exit");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <newtest@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
lea    0xea6(%rip),%rdx
call   1050 <test@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    0xea5(%rip),%rdx
call   1050 <test@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
lea    0xea1(%rip),%rdx
call   1040 <testf@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    0xead(%rip),%rdx
call   1040 <testf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <newtest@plt>
mov    %rax,%rbx
lea    0xebe(%rip),%rdx
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <test@plt>
lea    0xebb(%rip),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <test@plt>
lea    0xebb(%rip),%rdx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <testf@plt>
lea    0xec5(%rip),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <testf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.Tester = type { i32 }
@.str = [17 x i8] c"This should pass\00"
@.str.1 = [17 x i8] c"This should fail\00"
@.str.2 = [30 x i8] c"This should pass and not exit\00"
@.str.3 = [31 x i8] c"This should fail and then exit\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.Tester*
store i32 0, i32* %1
%3 = call %struct.Tester* (...) @newtest()
store %struct.Tester* %3, %struct.Tester** %2
%4 = load %struct.Tester*, %struct.Tester** %2
%5 = call i32 @test(%struct.Tester* %4, i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%6 = load %struct.Tester*, %struct.Tester** %2
%7 = call i32 @test(%struct.Tester* %6, i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = load %struct.Tester*, %struct.Tester** %2
%9 = call i32 @testf(%struct.Tester* %8, i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%10 = load %struct.Tester*, %struct.Tester** %2
%11 = call i32 @testf(%struct.Tester* %10, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.Tester = type { i32 }
@.str = [17 x i8] c"This should pass\00"
@.str.1 = [17 x i8] c"This should fail\00"
@.str.2 = [30 x i8] c"This should pass and not exit\00"
@.str.3 = [31 x i8] c"This should fail and then exit\00"
define i32 @main() {
%1 = tail call %struct.Tester* (...) @newtest()
%2 = tail call i32 @test(%struct.Tester* %1, i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @test(%struct.Tester* %1, i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @testf(%struct.Tester* %1, i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @testf(%struct.Tester* %1, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}