#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 /*<<< orphan*/, char *, 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"
      "%s is free software: you can redistribute it and/or modify\n"
      "it under the terms of the GNU General Public License as published by\n"
      "the Free Software Foundation, version 2 or later.\n",
      "qotd", 0, 12, 0, "nogithash", "GCC", "9.4.0", "Linux", "Mar 17 2022",
      "23:54:21", "qotd");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0xedc(%rip),%rdi
lea    0xfb8(%rip),%rax
xor    %r8d,%r8d
mov    $0xc,%ecx
lea    0xfae(%rip),%r9
lea    0xfb1(%rip),%r15
lea    0xfae(%rip),%r14
lea    0xfad(%rip),%rbx
lea    0xfac(%rip),%r11
lea    0xfb1(%rip),%r10
mov    %rax,%rsi
mov    %r8d,%edx
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %r14
push   %rbx
push   %rax
lea    0xfc8(%rip),%rsi
lea    0xfec(%rip),%rax
lea    0xfd9(%rip),%r10
lea    0xfcc(%rip),%r11
lea    0xfbf(%rip),%rbx
lea    0xfb4(%rip),%r14
lea    0xebb(%rip),%rdi
lea    0xf9c(%rip),%r9
xor    %edx,%edx
mov    $0xc,%ecx
xor    %r8d,%r8d
push   %rsi
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 = [227 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0A%s is free software: you can redistribute it and/or modify\0Ait under the terms of the GNU General Public License as published by\0Athe Free Software Foundation, version 2 or later.\0A\00"
@.str.1 = [5 x i8] c"qotd\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 17 2022\00"
@.str.7 = [9 x i8] c"23:54:21\00"
define void @print_version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([227 x i8], [227 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 12, i32 0, 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), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [227 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0A%s is free software: you can redistribute it and/or modify\0Ait under the terms of the GNU General Public License as published by\0Athe Free Software Foundation, version 2 or later.\0A\00"
@.str.1 = [5 x i8] c"qotd\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 17 2022\00"
@.str.7 = [9 x i8] c"23:54:21\00"
define void @print_version() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([227 x i8], [227 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 12, i32 0, 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), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret void
}