#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"
      "rshell 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, either version 2 of the License, or\n"
      "(at your option) any later version.\n"
      "\n",
      "rshell", 0, 4, 1, "nogithash", "GCC", "9.4.0", "Linux", "Mar 18 2022",
      "23:43:08");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
lea    0xede(%rip),%rdi
lea    0xff3(%rip),%rsi
xor    %edx,%edx
mov    $0x4,%ecx
mov    $0x1,%r8d
lea    0xfe6(%rip),%r9
lea    0xfe9(%rip),%r14
lea    0xfe6(%rip),%rbx
lea    0xfe5(%rip),%r11
lea    0xfe4(%rip),%r10
lea    0xfe9(%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    0x102a(%rip),%rax
lea    0x1017(%rip),%r10
lea    0x100a(%rip),%r11
lea    0xffd(%rip),%rbx
lea    0xff2(%rip),%r14
lea    0xebe(%rip),%rdi
lea    0xfd3(%rip),%rsi
lea    0xfd3(%rip),%r9
xor    %edx,%edx
mov    $0x4,%ecx
mov    $0x1,%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 = [284 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0Arshell 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, either version 2 of the License, or\0A(at your option) any later version.\0A\0A\00"
@.str.1 = [7 x i8] c"rshell\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 18 2022\00"
@.str.7 = [9 x i8] c"23:43:08\00"
define void @print_version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([284 x i8], [284 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 4, i32 1, 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 = [284 x i8] c"%s v%d.%d.%d [%s]\0A(%s %s) on %s.\0ABuilt %s, %s.\0A\0Arshell 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, either version 2 of the License, or\0A(at your option) any later version.\0A\0A\00"
@.str.1 = [7 x i8] c"rshell\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 18 2022\00"
@.str.7 = [9 x i8] c"23:43:08\00"
define void @print_version() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([284 x i8], [284 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 4, i32 1, 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
}