#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*/ pr_alert(char *);
int /*<<< orphan*/ pr_crit(char *);
int /*<<< orphan*/ pr_debug(char *);
int /*<<< orphan*/ pr_err(char *);
int /*<<< orphan*/ pr_info(char *);
int /*<<< orphan*/ pr_notice(char *);
int /*<<< orphan*/ pr_warn(char *);
int myinit(void) {
  pr_alert("pr_alert\n");
  pr_crit("pr_crit\n");
  pr_err("pr_err");
  pr_warn("pr_warning\n");
  pr_notice("pr_notice\n");
  pr_info("pr_info\n");
  pr_debug("pr_debug\n");
  return 0;
}


x86 assembly (clang, -O0):
<myinit>:
push   %rbp
mov    %rsp,%rbp
lea    0xe85(%rip),%rdi
call   1050 <pr_alert@plt>
lea    0xe83(%rip),%rdi
call   1060 <pr_crit@plt>
lea    0xe80(%rip),%rdi
call   1080 <pr_err@plt>
lea    0xe7b(%rip),%rdi
call   1040 <pr_warn@plt>
lea    0xe7b(%rip),%rdi
call   1070 <pr_notice@plt>
lea    0xe7a(%rip),%rdi
call   1030 <pr_info@plt>
lea    0xe77(%rip),%rdi
call   1090 <pr_debug@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<myinit>:
push   %rax
lea    0xe88(%rip),%rdi
call   1050 <pr_alert@plt>
lea    0xe86(%rip),%rdi
call   1060 <pr_crit@plt>
lea    0xe83(%rip),%rdi
call   1080 <pr_err@plt>
lea    0xe7e(%rip),%rdi
call   1040 <pr_warn@plt>
lea    0xe7e(%rip),%rdi
call   1070 <pr_notice@plt>
lea    0xe7d(%rip),%rdi
call   1030 <pr_info@plt>
lea    0xe7a(%rip),%rdi
call   1090 <pr_debug@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"pr_alert\0A\00"
@.str.1 = [9 x i8] c"pr_crit\0A\00"
@.str.2 = [7 x i8] c"pr_err\00"
@.str.3 = [12 x i8] c"pr_warning\0A\00"
@.str.4 = [11 x i8] c"pr_notice\0A\00"
@.str.5 = [9 x i8] c"pr_info\0A\00"
@.str.6 = [10 x i8] c"pr_debug\0A\00"
define i32 @myinit() {
%1 = call i32 @pr_alert(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @pr_crit(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @pr_err(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @pr_warn(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @pr_notice(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @pr_info(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @pr_debug(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"pr_alert\0A\00"
@.str.1 = [9 x i8] c"pr_crit\0A\00"
@.str.2 = [7 x i8] c"pr_err\00"
@.str.3 = [12 x i8] c"pr_warning\0A\00"
@.str.4 = [11 x i8] c"pr_notice\0A\00"
@.str.5 = [9 x i8] c"pr_info\0A\00"
@.str.6 = [10 x i8] c"pr_debug\0A\00"
define i32 @myinit() {
%1 = tail call i32 @pr_alert(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @pr_crit(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @pr_err(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @pr_warn(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @pr_notice(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @pr_info(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @pr_debug(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}