#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*/ puts(char *);
void print_version(void) {
  printf("%s %s\n", "smbact", "0.2");
  puts("");
  printf("Copyright (C) %s ZHAO Peng <shui.yunduo@gmail.com>.\nLicense GPLv3+: "
         "GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis "
         "is free software: you are free to change and redistribute it.\nThere "
         "is NO WARRANTY, to the extent permitted by law.\n",
         "2014");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed5(%rip),%rsi
lea    0xed5(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xebf(%rip),%rdi
lea    0xfb4(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed8(%rip),%rsi
lea    0xed8(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec4(%rip),%rdi
lea    0xfb9(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [7 x i8] c"smbact\00"
@.str.2 = [4 x i8] c"0.2\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [252 x i8] c"Copyright (C) %s ZHAO Peng <shui.yunduo@gmail.com>.\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.5 = [5 x i8] c"2014\00"
define void @print_version() {
%1 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([252 x i8], [252 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s %s\0A\00"
@.str.1 = [7 x i8] c"smbact\00"
@.str.2 = [4 x i8] c"0.2\00"
@.str.4 = [252 x i8] c"Copyright (C) %s ZHAO Peng <shui.yunduo@gmail.com>.\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.5 = [5 x i8] c"2014\00"
define void @print_version() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([252 x i8], [252 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
ret void
}