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

/* Variables and functions */
char *convert_time(unsigned int, char *, int);
int /*<<< orphan*/ printf(char *, ...);
void show_lic_info(const char *mid, const char *usr, unsigned int begin,
                   unsigned int end) {
  char time_buf[24] = {};
  printf("[License info]\n");
  printf("mid  : %s\n", mid);
  printf("user : %s\n", usr);
  printf("begin: %s\n", convert_time(begin, time_buf, sizeof(time_buf)));
  printf("end  : %s\n", convert_time(end, time_buf, sizeof(time_buf)));
}


x86 assembly (clang, -O0):
<show_lic_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1050 <memset@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x18,%edx
call   1030 <convert_time@plt>
mov    %rax,%rsi
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x18,%edx
call   1030 <convert_time@plt>
mov    %rax,%rsi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_lic_info>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%rbx
mov    %rdi,%rbp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movq   $0x0,0x10(%rsp)
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe97(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe91(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rbx
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x18,%edx
call   1040 <convert_time@plt>
lea    0xe78(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x18,%edx
call   1040 <convert_time@plt>
lea    0xe62(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"[License info]\0A\00"
@.str.1 = [11 x i8] c"mid : %s\0A\00"
@.str.2 = [11 x i8] c"user : %s\0A\00"
@.str.3 = [11 x i8] c"begin: %s\0A\00"
@.str.4 = [11 x i8] c"end : %s\0A\00"
define void @show_lic_info(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca [24 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = bitcast [24 x i8]* %9 to i8*
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%12 = load i8*, i8** %5
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%16 = load i32, i32* %7
%17 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%18 = call i8* @convert_time(i32 %16, i8* %17, i32 24)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = load i32, i32* %8
%21 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%22 = call i8* @convert_time(i32 %20, i8* %21, i32 24)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %22)
ret void
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"mid : %s\0A\00"
@.str.2 = [11 x i8] c"user : %s\0A\00"
@.str.3 = [11 x i8] c"begin: %s\0A\00"
@.str.4 = [11 x i8] c"end : %s\0A\00"
@str = [15 x i8] c"[License info]\00"
define void @show_lic_info(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca [24 x i8]
%6 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%10 = call i8* @convert_time(i32 %2, i8* %6, i32 24)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = call i8* @convert_time(i32 %3, i8* %6, i32 24)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %12)
ret void
}