#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*/ SYS_write;
int strlen(char const *);
int /*<<< orphan*/ syscall(int /*<<< orphan*/, int, char const *, int);
void DISPLAY(const char *pszCriticity, const char *pszMsg) {
  syscall(SYS_write, 2, pszCriticity, strlen(pszCriticity));
  syscall(SYS_write, 2, ": ", strlen(": "));
  syscall(SYS_write, 2, pszMsg, strlen(pszMsg));
  syscall(SYS_write, 2, "\n", 1);
}


x86 assembly (clang, -O0):
<DISPLAY>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rdx
mov    %eax,%ecx
mov    $0x2,%esi
call   1040 <syscall@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
lea    0xe8d(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%ecx
mov    $0x2,%esi
lea    0xe77(%rip),%rdx
call   1040 <syscall@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rdx
mov    %eax,%ecx
mov    $0x2,%esi
call   1040 <syscall@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
mov    $0x2,%esi
lea    0xe30(%rip),%rdx
mov    $0x1,%ecx
call   1040 <syscall@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DISPLAY>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x2eb4(%rip),%r15
mov    (%r15),%ebp
call   1030 <strlen@plt>
mov    %ebp,%edi
mov    $0x2,%esi
mov    %rbx,%rdx
mov    %eax,%ecx
call   1040 <syscall@plt>
mov    (%r15),%ebx
lea    0xea9(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %ebx,%edi
mov    $0x2,%esi
mov    %rbp,%rdx
mov    %eax,%ecx
call   1040 <syscall@plt>
mov    (%r15),%ebx
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %ebx,%edi
mov    $0x2,%esi
mov    %r14,%rdx
mov    %eax,%ecx
call   1040 <syscall@plt>
mov    (%r15),%edi
lea    0xe6d(%rip),%rdx
mov    $0x2,%esi
mov    $0x1,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <syscall@plt>

LLVM IR (-O0):
@SYS_write = global i32 0
@.str = [3 x i8] c": \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @DISPLAY(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @SYS_write
%6 = load i8*, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @syscall(i32 %5, i32 2, i8* %6, i32 %8)
%10 = load i32, i32* @SYS_write
%11 = call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @syscall(i32 %10, i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @SYS_write
%14 = load i8*, i8** %4
%15 = load i8*, i8** %4
%16 = call i32 @strlen(i8* %15)
%17 = call i32 @syscall(i32 %13, i32 2, i8* %14, i32 %16)
%18 = load i32, i32* @SYS_write
%19 = call i32 @syscall(i32 %18, i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
ret void
}

LLVM IR (-O2):
@SYS_write = global i32 0
@.str = [3 x i8] c": \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @DISPLAY(i8* %0, i8* %1) {
%3 = load i32, i32* @SYS_write
%4 = tail call i32 @strlen(i8* %0)
%5 = tail call i32 @syscall(i32 %3, i32 2, i8* %0, i32 %4)
%6 = load i32, i32* @SYS_write
%7 = tail call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @syscall(i32 %6, i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SYS_write
%10 = tail call i32 @strlen(i8* %1)
%11 = tail call i32 @syscall(i32 %9, i32 2, i8* %1, i32 %10)
%12 = load i32, i32* @SYS_write
%13 = tail call i32 @syscall(i32 %12, i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
ret void
}