#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 *, char *, ...);
void print_version() {
  printf("%s, version %s, released %s\n", "batbeep", "1.3.1", "2010-04-06");
  printf("   compiled %s, %s\n\n", "Mar 17 2022", "03:28:12");
  printf("%s\n", "Rikard Johansson, 2010");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xefb(%rip),%rsi
lea    0xefc(%rip),%rdx
lea    0xefb(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
lea    0xf06(%rip),%rsi
lea    0xf0b(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
lea    0xeff(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xefe(%rip),%rsi
lea    0xeff(%rip),%rdx
lea    0xefe(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
lea    0xf09(%rip),%rsi
lea    0xf0e(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    0xf02(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"%s, version %s, released %s\0A\00"
@.str.1 = [8 x i8] c"batbeep\00"
@.str.2 = [6 x i8] c"1.3.1\00"
@.str.3 = [11 x i8] c"2010-04-06\00"
@.str.4 = [21 x i8] c" compiled %s, %s\0A\0A\00"
@.str.5 = [12 x i8] c"Mar 17 2022\00"
@.str.6 = [9 x i8] c"03:28:12\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [23 x i8] c"Rikard Johansson, 2010\00"
define void @print_version() {
%1 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%2 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%3 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"%s, version %s, released %s\0A\00"
@.str.1 = [8 x i8] c"batbeep\00"
@.str.2 = [6 x i8] c"1.3.1\00"
@.str.3 = [11 x i8] c"2010-04-06\00"
@.str.4 = [21 x i8] c" compiled %s, %s\0A\0A\00"
@.str.5 = [12 x i8] c"Mar 17 2022\00"
@.str.6 = [9 x i8] c"03:28:12\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [23 x i8] c"Rikard Johansson, 2010\00"
define void @print_version() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
ret void
}