#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ *getenv(char *);
int /*<<< orphan*/ stderr;
void get_ordered_corelist_error_message(const char *file, int line) {
  if (getenv("O64_OMP_VERBOSE") != NULL) {
    fprintf(stderr,
            "Get_Ordered_Corelist: error in generating affinity map "
            "at %s, line %d.\n",
            file, line);
    fprintf(stderr,
            "Get_Ordered_Corelist: generating a default affinity map\n");
  }
}


x86 assembly (clang, -O0):
<get_ordered_corelist_error_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <getenv@plt>
cmp    $0x0,%rax
je     117a <get_ordered_corelist_error_message+0x5a>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xee5(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_ordered_corelist_error_message>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xed0(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     116c <get_ordered_corelist_error_message+0x4c>
mov    0x2e9f(%rip),%r14
mov    (%r14),%edi
lea    0xec5(%rip),%rsi
mov    %rbx,%rdx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r14),%edi
lea    0xef7(%rip),%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <fprintf@plt>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"O64_OMP_VERBOSE\00"
@stderr = global i32 0
@.str.1 = [72 x i8] c"Get_Ordered_Corelist: error in generating affinity map at %s, line %d.\0A\00"
@.str.2 = [57 x i8] c"Get_Ordered_Corelist: generating a default affinity map\0A\00"
define void @get_ordered_corelist_error_message(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32* @getenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32* %5, null
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %3
%10 = load i32, i32* %4
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0), i8* %9, i32 %10)
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %7, %2
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"O64_OMP_VERBOSE\00"
@stderr = global i32 0
@.str.1 = [72 x i8] c"Get_Ordered_Corelist: error in generating affinity map at %s, line %d.\0A\00"
@.str.2 = [57 x i8] c"Get_Ordered_Corelist: generating a default affinity map\0A\00"
define void @get_ordered_corelist_error_message(i8* %0, i32 %1) {
%3 = tail call i32* @getenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %1)
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %5, %2
ret void
}