#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*/ detectFeatureDP();
int /*<<< orphan*/ detectFeatureSP();
int do_test(int, char **);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  if (!detectFeatureDP() && !detectFeatureSP()) {
    fprintf(stderr, "\n\n***** This host does not support the necessary CPU "
                    "features to execute this program *****\n\n\n");
    printf("0\n");
    fclose(stdout);
    exit(-1);
  }
  return do_test(argc, argv);
}


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)
mov    $0x0,%al
call   1090 <detectFeatureDP@plt>
cmp    $0x0,%eax
jne    11df <main+0x6f>
mov    $0x0,%al
call   1070 <detectFeatureSP@plt>
cmp    $0x0,%eax
jne    11df <main+0x6f>
mov    0x2e33(%rip),%rax
mov    (%rax),%edi
lea    0xe4a(%rip),%rsi
call   1050 <fprintf@plt>
lea    0xe9d(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e0a(%rip),%rax
mov    (%rax),%edi
call   1030 <fclose@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <do_test@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1090 <detectFeatureDP@plt>
test   %eax,%eax
jne    118e <main+0x1e>
xor    %eax,%eax
call   1070 <detectFeatureSP@plt>
test   %eax,%eax
je     119e <main+0x2e>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <do_test@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
lea    0xe52(%rip),%rsi
call   1050 <fprintf@plt>
lea    0xea5(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
call   1040 <fclose@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [95 x i8] c"\0A\0A***** This host does not support the necessary CPU features to execute this program *****\0A\0A\0A\00"
@.str.1 = [3 x i8] c"0\0A\00"
@stdout = global i32 0
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 i32 (...) @detectFeatureDP()
%7 = icmp ne i32 %6, 0
br i1 %7, label %18, label %8
8: ; preds = %2
%9 = call i32 (...) @detectFeatureSP()
%10 = icmp ne i32 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %8
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 @fclose(i32 %15)
%17 = call i32 @exit(i32 -1)
unreachable
18: ; preds = %8, %2
%19 = load i32, i32* %4
%20 = load i8**, i8*** %5
%21 = call i32 @do_test(i32 %19, i8** %20)
ret i32 %21
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [95 x i8] c"\0A\0A***** This host does not support the necessary CPU features to execute this program *****\0A\0A\0A\00"
@stdout = global i32 0
@str = [2 x i8] c"0\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @detectFeatureDP()
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %15
5: ; preds = %2
%6 = tail call i32 (...) @detectFeatureSP()
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = tail call i32 @fclose(i32 %12)
%14 = tail call i32 @exit(i32 -1)
unreachable
15: ; preds = %5, %2
%16 = tail call i32 @do_test(i32 %0, i8** %1)
ret i32 %16
}