#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*/ printf(char *, ...);
void show_version(void) {
  printf("Process isolator 1.0\n");
  printf("(c) 2012 Martin Mares and Bernard Blackham\n");
  printf("\nCompile-time configuration:\n");
  printf("Sandbox directory: %s\n", "/tmp/box");
  printf("Sandbox credentials: uid=%u-%u gid=%u-%u\n", 60000, 60000 + 30000 - 1,
         60000, 60000 + 30000 - 1);
}


x86 assembly (clang, -O0):
<show_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
lea    0xf2b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
mov    $0xea60,%ecx
mov    $0x15f8f,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_version>:
push   %rax
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
lea    0xec4(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
mov    $0xea60,%esi
mov    $0x15f8f,%edx
mov    $0xea60,%ecx
mov    $0x15f8f,%r8d
xor    %eax,%eax
pop    %r9
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Process isolator 1.0\0A\00"
@.str.1 = [44 x i8] c"(c) 2012 Martin Mares and Bernard Blackham\0A\00"
@.str.2 = [30 x i8] c"\0ACompile-time configuration:\0A\00"
@.str.3 = [23 x i8] c"Sandbox directory: %s\0A\00"
@.str.4 = [9 x i8] c"/tmp/box\00"
@.str.5 = [42 x i8] c"Sandbox credentials: uid=%u-%u gid=%u-%u\0A\00"
define void @show_version() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 60000, i32 89999, i32 60000, i32 89999)
ret void
}

LLVM IR (-O2):
@.str.3 = [23 x i8] c"Sandbox directory: %s\0A\00"
@.str.4 = [9 x i8] c"/tmp/box\00"
@.str.5 = [42 x i8] c"Sandbox credentials: uid=%u-%u gid=%u-%u\0A\00"
@str = [21 x i8] c"Process isolator 1.0\00"
@str.6 = [43 x i8] c"(c) 2012 Martin Mares and Bernard Blackham\00"
@str.7 = [29 x i8] c"\0ACompile-time configuration:\00"
define void @show_version() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 60000, i32 89999, i32 60000, i32 89999)
ret void
}