#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void sys_version_show(FILE *stream) {
  fprintf(stream, "************************************************************"
                  "************************\n");
  fprintf(stream, "****		Product Name: %s\n", "NC616");
  fprintf(stream, "****		Program Version: %s\n", "V2.0");
  fprintf(stream, "****		Build Time: %s %s\n", "Mar 18 2022",
          "19:18:11");
  fprintf(stream, "************************************************************"
                  "************************\n");
}


x86 assembly (clang, -O0):
<sys_version_show>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1d(%rip),%rsi
lea    0xf2e(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf22(%rip),%rsi
lea    0xf36(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf29(%rip),%rsi
lea    0xf3b(%rip),%rdx
lea    0xf40(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe75(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sys_version_show>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%r14
mov    $0x55,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf0c(%rip),%rsi
lea    0xf1d(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf12(%rip),%rsi
lea    0xf26(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf1a(%rip),%rsi
lea    0xf2c(%rip),%rdx
lea    0xf31(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x55,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [86 x i8] c"************************************************************************************\0A\00"
@.str.1 = [24 x i8] c"****\09\09Product Name: %s\0A\00"
@.str.2 = [6 x i8] c"NC616\00"
@.str.3 = [27 x i8] c"****\09\09Program Version: %s\0A\00"
@.str.4 = [5 x i8] c"V2.0\00"
@.str.5 = [25 x i8] c"****\09\09Build Time: %s %s\0A\00"
@.str.6 = [12 x i8] c"Mar 18 2022\00"
@.str.7 = [9 x i8] c"19:18:11\00"
define void @sys_version_show(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([25 x i8], [25 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))
%11 = load i32*, i32** %2
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [86 x i8] c"************************************************************************************\0A\00"
@.str.1 = [24 x i8] c"****\09\09Product Name: %s\0A\00"
@.str.2 = [6 x i8] c"NC616\00"
@.str.3 = [27 x i8] c"****\09\09Program Version: %s\0A\00"
@.str.4 = [5 x i8] c"V2.0\00"
@.str.5 = [25 x i8] c"****\09\09Build Time: %s %s\0A\00"
@.str.6 = [12 x i8] c"Mar 18 2022\00"
@.str.7 = [9 x i8] c"19:18:11\00"
define void @sys_version_show(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), i64 85, i64 1, i32* %0)
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([25 x i8], [25 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))
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0), i64 85, i64 1, i32* %0)
ret void
}