#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 */
char *build_date();
char *build_time();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
char *svn_version();
int so_main() {
  printf("This library is used to adapt the IO operation,\n"
         "Simulate IO error, etc.. \n");
  printf("SVN Revision: %s\n", svn_version());
  printf("SO Build Time: %s %s\n", build_date(), build_time());
  printf("GCC Version: %s\n", "9.4.0");
  printf("\n");
  exit(0);
}


x86 assembly (clang, -O0):
<so_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <svn_version@plt>
mov    %rax,%rsi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <build_date@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <build_time@plt>
mov    -0x8(%rbp),%rsi
mov    %rax,%rdx
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    0xed1(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<so_main>:
push   %rbx
lea    0xec7(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <svn_version@plt>
lea    0xe75(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <build_date@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1060 <build_time@plt>
lea    0xe65(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe67(%rip),%rdi
lea    0xe71(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [75 x i8] c"This library is used to adapt the IO operation,\0ASimulate IO error, etc.. \0A\00"
@.str.1 = [18 x i8] c"SVN Revision: %s\0A\00"
@.str.2 = [22 x i8] c"SO Build Time: %s %s\0A\00"
@.str.3 = [17 x i8] c"GCC Version: %s\0A\00"
@.str.4 = [6 x i8] c"9.4.0\00"
@.str.5 = [2 x i8] c"\0A\00"
define i32 @so_main() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0))
%2 = call i8* (...) @svn_version()
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%4 = call i8* (...) @build_date()
%5 = call i8* (...) @build_time()
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %4, i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c"SVN Revision: %s\0A\00"
@.str.2 = [22 x i8] c"SO Build Time: %s %s\0A\00"
@.str.3 = [17 x i8] c"GCC Version: %s\0A\00"
@.str.4 = [6 x i8] c"9.4.0\00"
@str = [74 x i8] c"This library is used to adapt the IO operation,\0ASimulate IO error, etc.. \00"
define i32 @so_main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str, i64 0, i64 0))
%2 = tail call i8* (...) @svn_version()
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%4 = tail call i8* (...) @build_date()
%5 = tail call i8* (...) @build_time()
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %4, i8* %5)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @exit(i32 0)
unreachable
}