#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*/ UnzipVersion;

/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int /*<<< orphan*/, char *,
                           char *);
char *GetUnZipInfoVersions(void) {
  static char UnzipVersion[200];
  memset(UnzipVersion, 0, sizeof(UnzipVersion));
  sprintf(UnzipVersion, "Unzip Module\n%d.%d%d%s of %s", 5, 5, 0, "",
          "17 February 2002");
  return UnzipVersion;
}


x86 assembly (clang, -O0):
<GetUnZipInfoVersions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0x2f11(%rip),%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1030 <memset@plt>
lea    0x2efe(%rip),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x5,%ecx
xor    %r8d,%r8d
lea    0xed5(%rip),%r9
lea    0xebe(%rip),%rax
mov    %ecx,%edx
mov    %rax,(%rsp)
call   1040 <sprintf@plt>
lea    0x2ecf(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetUnZipInfoVersions>:
push   %rbx
sub    $0x10,%rsp
lea    0x2f14(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1030 <memset@plt>
lea    0xedb(%rip),%rax
mov    %rax,(%rsp)
lea    0xeb3(%rip),%rsi
lea    0xed9(%rip),%r9
mov    %rbx,%rdi
mov    $0x5,%edx
mov    $0x5,%ecx
xor    %r8d,%r8d
call   1040 <sprintf@plt>
mov    %rbx,%rax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@GetUnZipInfoVersions.UnzipVersion = internal global [200 x i8] zeroinitializer
@.str = [29 x i8] c"Unzip Module\0A%d.%d%d%s of %s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [17 x i8] c"17 February 2002\00"
define i8* @GetUnZipInfoVersions() {
%1 = call i32 @memset(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0), i32 0, i32 200)
%2 = call i32 @sprintf(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 5, i32 5, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
ret i8* getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0)
}

LLVM IR (-O2):
@GetUnZipInfoVersions.UnzipVersion = internal global [200 x i8] zeroinitializer
@.str = [29 x i8] c"Unzip Module\0A%d.%d%d%s of %s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [17 x i8] c"17 February 2002\00"
define i8* @GetUnZipInfoVersions() {
%1 = tail call i32 @memset(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0), i32 0, i32 200)
%2 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 5, i32 5, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
ret i8* getelementptr inbounds ([200 x i8], [200 x i8]* @GetUnZipInfoVersions.UnzipVersion, i64 0, i64 0)
}