#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 EXIT_SUCCESS;
int /*<<< orphan*/ FAIL(char *);
int /*<<< orphan*/ PASS(char *);
int /*<<< orphan*/ floattest();
int /*<<< orphan*/ inttest();
scalar_t__ vectorSupport();
int /*<<< orphan*/ vectortest();
int main() {
  if (!inttest()) {
    FAIL("lazy-binding-reg-params int parameters");
    return EXIT_SUCCESS;
  }
  if (!floattest()) {
    FAIL("lazy-binding-reg-params float parameters");
    return EXIT_SUCCESS;
  }
  if (vectorSupport() && !vectortest()) {
    FAIL("lazy-binding-reg-params vector parameters");
    return EXIT_SUCCESS;
  }
  PASS("lazy-binding-reg-params");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <inttest@plt>
cmp    $0x0,%eax
jne    119c <main+0x3c>
lea    0xe7a(%rip),%rdi
call   1080 <FAIL@plt>
mov    0x2e4e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    121f <main+0xbf>
mov    $0x0,%al
call   1030 <floattest@plt>
cmp    $0x0,%eax
jne    11c9 <main+0x69>
lea    0xe74(%rip),%rdi
call   1080 <FAIL@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    121f <main+0xbf>
mov    $0x0,%al
call   1070 <vectorSupport@plt>
cmp    $0x0,%rax
je     1207 <main+0xa7>
mov    $0x0,%al
call   1050 <vectortest@plt>
cmp    $0x0,%eax
jne    1207 <main+0xa7>
lea    0xe5f(%rip),%rdi
call   1080 <FAIL@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    121f <main+0xbf>
lea    0xe6c(%rip),%rdi
call   1060 <PASS@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <inttest@plt>
test   %eax,%eax
je     119c <main+0x3c>
xor    %eax,%eax
call   1030 <floattest@plt>
test   %eax,%eax
je     11a5 <main+0x45>
xor    %eax,%eax
call   1070 <vectorSupport@plt>
test   %rax,%rax
je     118e <main+0x2e>
xor    %eax,%eax
call   1050 <vectortest@plt>
test   %eax,%eax
je     11ae <main+0x4e>
lea    0xee5(%rip),%rdi
call   1060 <PASS@plt>
jmp    11ba <main+0x5a>
lea    0xe5d(%rip),%rdi
jmp    11b5 <main+0x55>
lea    0xe7b(%rip),%rdi
jmp    11b5 <main+0x55>
lea    0xe9b(%rip),%rdi
call   1080 <FAIL@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [39 x i8] c"lazy-binding-reg-params int parameters\00"
@EXIT_SUCCESS = global i32 0
@.str.1 = [41 x i8] c"lazy-binding-reg-params float parameters\00"
@.str.2 = [42 x i8] c"lazy-binding-reg-params vector parameters\00"
@.str.3 = [24 x i8] c"lazy-binding-reg-params\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @inttest()
%3 = icmp ne i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %0
%5 = call i32 @FAIL(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_SUCCESS
store i32 %6, i32* %1
br label %25
7: ; preds = %0
%8 = call i32 (...) @floattest()
%9 = icmp ne i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = call i32 @FAIL(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @EXIT_SUCCESS
store i32 %12, i32* %1
br label %25
13: ; preds = %7
%14 = call i64 (...) @vectorSupport()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = call i32 (...) @vectortest()
%18 = icmp ne i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = call i32 @FAIL(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%21 = load i32, i32* @EXIT_SUCCESS
store i32 %21, i32* %1
br label %25
22: ; preds = %16, %13
%23 = call i32 @PASS(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* @EXIT_SUCCESS
store i32 %24, i32* %1
br label %25
25: ; preds = %22, %19, %10, %4
%26 = load i32, i32* %1
ret i32 %26
}

LLVM IR (-O2):
@.str = [39 x i8] c"lazy-binding-reg-params int parameters\00"
@EXIT_SUCCESS = global i32 0
@.str.1 = [41 x i8] c"lazy-binding-reg-params float parameters\00"
@.str.2 = [42 x i8] c"lazy-binding-reg-params vector parameters\00"
@.str.3 = [24 x i8] c"lazy-binding-reg-params\00"
define i32 @main() {
%1 = tail call i32 (...) @inttest()
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @FAIL(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
br label %20
5: ; preds = %0
%6 = tail call i32 (...) @floattest()
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @FAIL(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %20
10: ; preds = %5
%11 = tail call i64 (...) @vectorSupport()
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %10
%14 = tail call i32 (...) @vectortest()
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @FAIL(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
br label %20
18: ; preds = %13, %10
%19 = tail call i32 @PASS(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %20
20: ; preds = %18, %16, %8, %3
%21 = load i32, i32* @EXIT_SUCCESS
ret i32 %21
}