#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 version(void) {
  printf((" GNU nano version %s (compiled %s, %s)\n"), "1.2.5", "23:47:41",
         "Mar 17 2022");
  printf((" Email: nano@nano-editor.org	Web: http://www.nano-editor.org/"));
  printf(("\n Compiled options:"));
  printf(" --disable-nls");
  printf(" --enable-tiny");
  printf(" --enable-color");
  printf(" --enable-nanorc");
  printf("\n");
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf06(%rip),%rsi
lea    0xf05(%rip),%rdx
lea    0xf07(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0xef8(%rip),%rdx
lea    0xefa(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf28(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf30(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf32(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [40 x i8] c" GNU nano version %s (compiled %s, %s)\0A\00"
@.str.1 = [6 x i8] c"1.2.5\00"
@.str.2 = [9 x i8] c"23:47:41\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [62 x i8] c" Email: nano@nano-editor.org\09Web: http://www.nano-editor.org/\00"
@.str.5 = [20 x i8] c"\0A Compiled options:\00"
@.str.6 = [15 x i8] c" --disable-nls\00"
@.str.7 = [15 x i8] c" --enable-tiny\00"
@.str.8 = [16 x i8] c" --enable-color\00"
@.str.9 = [17 x i8] c" --enable-nanorc\00"
@.str.10 = [2 x i8] c"\0A\00"
define void @version() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [40 x i8] c" GNU nano version %s (compiled %s, %s)\0A\00"
@.str.1 = [6 x i8] c"1.2.5\00"
@.str.2 = [9 x i8] c"23:47:41\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [62 x i8] c" Email: nano@nano-editor.org\09Web: http://www.nano-editor.org/\00"
@.str.5 = [20 x i8] c"\0A Compiled options:\00"
@.str.6 = [15 x i8] c" --disable-nls\00"
@.str.7 = [15 x i8] c" --enable-tiny\00"
@.str.8 = [16 x i8] c" --enable-color\00"
@.str.9 = [17 x i8] c" --enable-nanorc\00"
define void @version() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
ret void
}