#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void version() {
  printf("This is demo program for "
         "AlcaSync"
         " version "
         "0.3.1 BETA"
         "\nCopyright (c) "
         "2002 Michal Cihar"
         "\n");
  printf(
      "This program is free software; you can redistribute it and/or modify\n");
  printf(
      "it under the terms of the GNU General Public License as published by\n");
  printf("the Free Software Foundation; either version 2 of the License, or\n");
  printf("(at your option) any later version.\n");
  exit(255);
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
mov    $0xff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc9(%rip),%rdi
call   1030 <puts@plt>
mov    $0xff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [86 x i8] c"This is demo program for AlcaSync version 0.3.1 BETA\0ACopyright (c) 2002 Michal Cihar\0A\00"
@.str.1 = [70 x i8] c"This program is free software; you can redistribute it and/or modify\0A\00"
@.str.2 = [70 x i8] c"it under the terms of the GNU General Public License as published by\0A\00"
@.str.3 = [67 x i8] c"the Free Software Foundation; either version 2 of the License, or\0A\00"
@.str.4 = [37 x i8] c"(at your option) any later version.\0A\00"
define void @version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @exit(i32 255)
unreachable
}

LLVM IR (-O2):
@str = [85 x i8] c"This is demo program for AlcaSync version 0.3.1 BETA\0ACopyright (c) 2002 Michal Cihar\00"
@str.5 = [69 x i8] c"This program is free software; you can redistribute it and/or modify\00"
@str.6 = [69 x i8] c"it under the terms of the GNU General Public License as published by\00"
@str.7 = [66 x i8] c"the Free Software Foundation; either version 2 of the License, or\00"
@str.8 = [36 x i8] c"(at your option) any later version.\00"
define void @version() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.7, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.8, i64 0, i64 0))
%6 = tail call i32 @exit(i32 255)
unreachable
}