#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*/ uint64_t;
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int tm_mday;
  int tm_hour;
  int tm_min;
  int tm_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gmtime_r(int /*<<< orphan*/ *, struct tm *);
void int64tostrtime(uint64_t v, char *sp) {
  time_t vtime;
  struct tm tm;
  int i;
  vtime = v;
  gmtime_r(&vtime, &tm);
  i = tm.tm_year + 1900;
  sp += 3;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp-- = i % 10 + '0';
  i /= 10;
  *sp = i % 10 + '0';
  sp += 4;
  *sp++ = '-';
  i = tm.tm_mon + 1;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = '-';
  i = tm.tm_mday;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = 'T';
  i = tm.tm_hour;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = ':';
  i = tm.tm_min;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = ':';
  i = tm.tm_sec % 60;
  *sp++ = i / 10 + '0';
  *sp++ = i % 10 + '0';
  *sp++ = 'Z';
  *sp = 0;
}


x86 assembly (clang, -O0):
<int64tostrtime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <gmtime_r@plt>
mov    -0x30(%rbp),%eax
add    $0x76c,%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x10(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x2d,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x2d,(%rax)
mov    -0x28(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x54,(%rax)
mov    -0x24(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x3a,(%rax)
mov    -0x20(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x3a,(%rax)
mov    -0x1c(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x5a,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<int64tostrtime>:
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <gmtime_r@plt>
mov    0x8(%rsp),%ecx
mov    %ecx,%eax
add    $0x76c,%eax
cltq
imul   $0x66666667,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    $0x2,%edx
add    %esi,%edx
lea    (%rdx,%rdx,1),%esi
lea    (%rsi,%rsi,4),%esi
neg    %esi
add    %esi,%ecx
add    $0x76c,%ecx
add    $0x30,%cl
mov    %cl,0x3(%rbx)
movslq %edx,%rcx
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x22,%rdx
add    %esi,%edx
add    %edx,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
add    $0x30,%cl
mov    %cl,0x2(%rbx)
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
movslq %ecx,%rcx
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x22,%rdx
add    %esi,%edx
add    %edx,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
add    $0x30,%cl
mov    %cl,0x1(%rbx)
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
sar    $0x6,%eax
add    %ecx,%eax
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,(%rbx)
movb   $0x2d,0x4(%rbx)
mov    0xc(%rsp),%eax
lea    0x1(%rax),%ecx
movslq %ecx,%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x30(%rcx),%edx
mov    %dl,0x5(%rbx)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
add    $0x30,%al
mov    %al,0x6(%rbx)
movb   $0x2d,0x7(%rbx)
movslq 0x10(%rsp),%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x30(%rcx),%edx
mov    %dl,0x8(%rbx)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0x9(%rbx)
movb   $0x54,0xa(%rbx)
movslq 0x14(%rsp),%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x30(%rcx),%edx
mov    %dl,0xb(%rbx)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0xc(%rbx)
movb   $0x3a,0xd(%rbx)
movslq 0x18(%rsp),%rax
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x30(%rcx),%edx
mov    %dl,0xe(%rbx)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0xf(%rbx)
movb   $0x3a,0x10(%rbx)
movslq 0x1c(%rsp),%rax
imul   $0xffffffff88888889,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x3c,%ecx,%ecx
sub    %ecx,%eax
movsbl %al,%ecx
imul   $0x67,%ecx,%ecx
movzwl %cx,%ecx
movswl %cx,%edx
shr    $0xf,%ecx
shr    $0xa,%edx
add    %cl,%dl
lea    0x30(%rdx),%ecx
mov    %cl,0x11(%rbx)
movzbl %dl,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%al
add    $0x30,%al
mov    %al,0x12(%rbx)
movw   $0x5a,0x13(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
define void @int64tostrtime(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca %struct.tm
%7 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%8 = load i32, i32* %3
store i32 %8, i32* %5
%9 = call i32 @gmtime_r(i32* %5, %struct.tm* %6)
%10 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 0
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1900
store i32 %12, i32* %7
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i64 3
store i8* %14, i8** %4
%15 = load i32, i32* %7
%16 = srem i32 %15, 10
%17 = add nsw i32 %16, 48
%18 = trunc i32 %17 to i8
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i32 -1
store i8* %20, i8** %4
store i8 %18, i8* %19
%21 = load i32, i32* %7
%22 = sdiv i32 %21, 10
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = srem i32 %23, 10
%25 = add nsw i32 %24, 48
%26 = trunc i32 %25 to i8
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i32 -1
store i8* %28, i8** %4
store i8 %26, i8* %27
%29 = load i32, i32* %7
%30 = sdiv i32 %29, 10
store i32 %30, i32* %7
%31 = load i32, i32* %7
%32 = srem i32 %31, 10
%33 = add nsw i32 %32, 48
%34 = trunc i32 %33 to i8
%35 = load i8*, i8** %4
%36 = getelementptr inbounds i8, i8* %35, i32 -1
store i8* %36, i8** %4
store i8 %34, i8* %35
%37 = load i32, i32* %7
%38 = sdiv i32 %37, 10
store i32 %38, i32* %7
%39 = load i32, i32* %7
%40 = srem i32 %39, 10
%41 = add nsw i32 %40, 48
%42 = trunc i32 %41 to i8
%43 = load i8*, i8** %4
store i8 %42, i8* %43
%44 = load i8*, i8** %4
%45 = getelementptr inbounds i8, i8* %44, i64 4
store i8* %45, i8** %4
%46 = load i8*, i8** %4
%47 = getelementptr inbounds i8, i8* %46, i32 1
store i8* %47, i8** %4
store i8 45, i8* %46
%48 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 1
%49 = load i32, i32* %48
%50 = add nsw i32 %49, 1
store i32 %50, i32* %7
%51 = load i32, i32* %7
%52 = sdiv i32 %51, 10
%53 = add nsw i32 %52, 48
%54 = trunc i32 %53 to i8
%55 = load i8*, i8** %4
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %4
store i8 %54, i8* %55
%57 = load i32, i32* %7
%58 = srem i32 %57, 10
%59 = add nsw i32 %58, 48
%60 = trunc i32 %59 to i8
%61 = load i8*, i8** %4
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %4
store i8 %60, i8* %61
%63 = load i8*, i8** %4
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %4
store i8 45, i8* %63
%65 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 2
%66 = load i32, i32* %65
store i32 %66, i32* %7
%67 = load i32, i32* %7
%68 = sdiv i32 %67, 10
%69 = add nsw i32 %68, 48
%70 = trunc i32 %69 to i8
%71 = load i8*, i8** %4
%72 = getelementptr inbounds i8, i8* %71, i32 1
store i8* %72, i8** %4
store i8 %70, i8* %71
%73 = load i32, i32* %7
%74 = srem i32 %73, 10
%75 = add nsw i32 %74, 48
%76 = trunc i32 %75 to i8
%77 = load i8*, i8** %4
%78 = getelementptr inbounds i8, i8* %77, i32 1
store i8* %78, i8** %4
store i8 %76, i8* %77
%79 = load i8*, i8** %4
%80 = getelementptr inbounds i8, i8* %79, i32 1
store i8* %80, i8** %4
store i8 84, i8* %79
%81 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 3
%82 = load i32, i32* %81
store i32 %82, i32* %7
%83 = load i32, i32* %7
%84 = sdiv i32 %83, 10
%85 = add nsw i32 %84, 48
%86 = trunc i32 %85 to i8
%87 = load i8*, i8** %4
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %4
store i8 %86, i8* %87
%89 = load i32, i32* %7
%90 = srem i32 %89, 10
%91 = add nsw i32 %90, 48
%92 = trunc i32 %91 to i8
%93 = load i8*, i8** %4
%94 = getelementptr inbounds i8, i8* %93, i32 1
store i8* %94, i8** %4
store i8 %92, i8* %93
%95 = load i8*, i8** %4
%96 = getelementptr inbounds i8, i8* %95, i32 1
store i8* %96, i8** %4
store i8 58, i8* %95
%97 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 4
%98 = load i32, i32* %97
store i32 %98, i32* %7
%99 = load i32, i32* %7
%100 = sdiv i32 %99, 10
%101 = add nsw i32 %100, 48
%102 = trunc i32 %101 to i8
%103 = load i8*, i8** %4
%104 = getelementptr inbounds i8, i8* %103, i32 1
store i8* %104, i8** %4
store i8 %102, i8* %103
%105 = load i32, i32* %7
%106 = srem i32 %105, 10
%107 = add nsw i32 %106, 48
%108 = trunc i32 %107 to i8
%109 = load i8*, i8** %4
%110 = getelementptr inbounds i8, i8* %109, i32 1
store i8* %110, i8** %4
store i8 %108, i8* %109
%111 = load i8*, i8** %4
%112 = getelementptr inbounds i8, i8* %111, i32 1
store i8* %112, i8** %4
store i8 58, i8* %111
%113 = getelementptr inbounds %struct.tm, %struct.tm* %6, i32 0, i32 5
%114 = load i32, i32* %113
%115 = srem i32 %114, 60
store i32 %115, i32* %7
%116 = load i32, i32* %7
%117 = sdiv i32 %116, 10
%118 = add nsw i32 %117, 48
%119 = trunc i32 %118 to i8
%120 = load i8*, i8** %4
%121 = getelementptr inbounds i8, i8* %120, i32 1
store i8* %121, i8** %4
store i8 %119, i8* %120
%122 = load i32, i32* %7
%123 = srem i32 %122, 10
%124 = add nsw i32 %123, 48
%125 = trunc i32 %124 to i8
%126 = load i8*, i8** %4
%127 = getelementptr inbounds i8, i8* %126, i32 1
store i8* %127, i8** %4
store i8 %125, i8* %126
%128 = load i8*, i8** %4
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %4
store i8 90, i8* %128
%130 = load i8*, i8** %4
store i8 0, i8* %130
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
define void @int64tostrtime(i32 %0, i8* writeonly %1) {
%3 = alloca i32
%4 = alloca %struct.tm
%5 = bitcast i32* %3 to i8*
%6 = bitcast %struct.tm* %4 to i8*
store i32 %0, i32* %3
%7 = call i32 @gmtime_r(i32* %3, %struct.tm* %4)
%8 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
%9 = load i32, i32* %8
%10 = add nsw i32 %9, 1900
%11 = getelementptr inbounds i8, i8* %1, i64 3
%12 = srem i32 %10, 10
%13 = trunc i32 %12 to i8
%14 = add nsw i8 %13, 48
%15 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %14, i8* %11
%16 = sdiv i32 %10, 10
%17 = srem i32 %16, 10
%18 = trunc i32 %17 to i8
%19 = add nsw i8 %18, 48
%20 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %19, i8* %15
%21 = sdiv i32 %10, 100
%22 = srem i32 %21, 10
%23 = trunc i32 %22 to i8
%24 = add nsw i8 %23, 48
store i8 %24, i8* %20
%25 = sdiv i32 %10, 1000
%26 = srem i32 %25, 10
%27 = trunc i32 %26 to i8
%28 = add nsw i8 %27, 48
store i8 %28, i8* %1
%29 = getelementptr inbounds i8, i8* %1, i64 4
%30 = getelementptr inbounds i8, i8* %1, i64 5
store i8 45, i8* %29
%31 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
%32 = load i32, i32* %31
%33 = add nsw i32 %32, 1
%34 = sdiv i32 %33, 10
%35 = trunc i32 %34 to i8
%36 = add i8 %35, 48
%37 = getelementptr inbounds i8, i8* %1, i64 6
store i8 %36, i8* %30
%38 = srem i32 %33, 10
%39 = trunc i32 %38 to i8
%40 = add nsw i8 %39, 48
%41 = getelementptr inbounds i8, i8* %1, i64 7
store i8 %40, i8* %37
%42 = getelementptr inbounds i8, i8* %1, i64 8
store i8 45, i8* %41
%43 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
%44 = load i32, i32* %43
%45 = sdiv i32 %44, 10
%46 = trunc i32 %45 to i8
%47 = add i8 %46, 48
%48 = getelementptr inbounds i8, i8* %1, i64 9
store i8 %47, i8* %42
%49 = srem i32 %44, 10
%50 = trunc i32 %49 to i8
%51 = add nsw i8 %50, 48
%52 = getelementptr inbounds i8, i8* %1, i64 10
store i8 %51, i8* %48
%53 = getelementptr inbounds i8, i8* %1, i64 11
store i8 84, i8* %52
%54 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 3
%55 = load i32, i32* %54
%56 = sdiv i32 %55, 10
%57 = trunc i32 %56 to i8
%58 = add i8 %57, 48
%59 = getelementptr inbounds i8, i8* %1, i64 12
store i8 %58, i8* %53
%60 = srem i32 %55, 10
%61 = trunc i32 %60 to i8
%62 = add nsw i8 %61, 48
%63 = getelementptr inbounds i8, i8* %1, i64 13
store i8 %62, i8* %59
%64 = getelementptr inbounds i8, i8* %1, i64 14
store i8 58, i8* %63
%65 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 4
%66 = load i32, i32* %65
%67 = sdiv i32 %66, 10
%68 = trunc i32 %67 to i8
%69 = add i8 %68, 48
%70 = getelementptr inbounds i8, i8* %1, i64 15
store i8 %69, i8* %64
%71 = srem i32 %66, 10
%72 = trunc i32 %71 to i8
%73 = add nsw i8 %72, 48
%74 = getelementptr inbounds i8, i8* %1, i64 16
store i8 %73, i8* %70
%75 = getelementptr inbounds i8, i8* %1, i64 17
store i8 58, i8* %74
%76 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 5
%77 = load i32, i32* %76
%78 = srem i32 %77, 60
%79 = trunc i32 %78 to i8
%80 = sdiv i8 %79, 10
%81 = add nsw i8 %80, 48
%82 = getelementptr inbounds i8, i8* %1, i64 18
store i8 %81, i8* %75
%83 = srem i8 %79, 10
%84 = add nsw i8 %83, 48
%85 = getelementptr inbounds i8, i8* %1, i64 19
store i8 %84, i8* %82
%86 = getelementptr inbounds i8, i8* %1, i64 20
store i8 90, i8* %85
store i8 0, i8* %86
ret void
}