#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 *, int /*<<< orphan*/, int, int, char *,
                          char *, char *, char *, char *, char *);
void print_version(void) {
  printf("%s v%d.%d.%d [%s]\n"
         "(%s %s) on %s.\n"
         "Built %s, %s.\n"
         "\n",
         "calc", 0, 4, 5, "nogithash", "GCC", "9.4.0", "Linux", "Mar 15 2022",
         "13:23:30");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
lea    0xede(%rip),%rdi
lea    0xf08(%rip),%rsi
xor    %edx,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
lea    0xef9(%rip),%r9
lea    0xefc(%rip),%r14
lea    0xef9(%rip),%rbx
lea    0xef8(%rip),%r11
lea    0xef7(%rip),%r10
lea    0xefc(%rip),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %r14
push   %rbx
push   %rax
sub    $0x8,%rsp
lea    0xf3d(%rip),%rax
lea    0xf2a(%rip),%r10
lea    0xf1d(%rip),%r11
lea    0xf10(%rip),%rbx
lea    0xf05(%rip),%r14
lea    0xebe(%rip),%rdi
lea    0xee8(%rip),%rsi
lea    0xee6(%rip),%r9
xor    %edx,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
call   1030 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [49 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0A\00"
@.str.1 = [5 x i8] c"calc\00"
@.str.2 = [10 x i8] c"nogithash\00"
@.str.3 = [4 x i8] c"GCC\00"
@.str.4 = [6 x i8] c"9.4.0\00"
@.str.5 = [6 x i8] c"Linux\00"
@.str.6 = [12 x i8] c"Mar 15 2022\00"
@.str.7 = [9 x i8] c"13:23:30\00"
define void @print_version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 4, i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0A\00"
@.str.1 = [5 x i8] c"calc\00"
@.str.2 = [10 x i8] c"nogithash\00"
@.str.3 = [4 x i8] c"GCC\00"
@.str.4 = [6 x i8] c"9.4.0\00"
@.str.5 = [6 x i8] c"Linux\00"
@.str.6 = [12 x i8] c"Mar 15 2022\00"
@.str.7 = [9 x i8] c"13:23:30\00"
define void @print_version() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 4, i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
ret void
}