#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 *);
int /*<<< orphan*/ write_str(char *);
void write_timestamp(uint64_t v) {
  time_t vtime;
  struct tm tm;
  char s[30], *sp;
  int i;
  vtime = v;
  gmtime_r(&vtime, &tm);
  i = tm.tm_year + 1900;
  sp = s + 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;
  write_str(s);
}


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

x86 assembly (clang, -O2):
<write_timestamp>:
sub    $0x48,%rsp
mov    %edi,0x2c(%rsp)
lea    0x2c(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   1030 <gmtime_r@plt>
mov    0x30(%rsp),%edx
mov    0x34(%rsp),%eax
mov    %edx,%ecx
add    $0x76c,%ecx
movslq %ecx,%rcx
imul   $0x66666667,%rcx,%rsi
mov    %rsi,%rdi
shr    $0x3f,%rdi
shr    $0x20,%rsi
sar    $0x2,%esi
add    %edi,%esi
lea    (%rsi,%rsi,1),%edi
lea    (%rdi,%rdi,4),%edi
neg    %edi
add    %edi,%edx
add    $0x76c,%edx
add    $0x30,%dl
mov    %dl,0x3(%rsp)
movslq %esi,%rdx
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdi
shr    $0x3f,%rdi
shr    $0x22,%rsi
add    %edi,%esi
add    %esi,%esi
lea    (%rsi,%rsi,4),%esi
sub    %esi,%edx
add    $0x30,%dl
mov    %dl,0x2(%rsp)
imul   $0x51eb851f,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    $0x5,%edx
add    %esi,%edx
movslq %edx,%rdx
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdi
shr    $0x3f,%rdi
shr    $0x22,%rsi
add    %edi,%esi
add    %esi,%esi
lea    (%rsi,%rsi,4),%esi
sub    %esi,%edx
add    $0x30,%dl
mov    %dl,0x1(%rsp)
imul   $0x10624dd3,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x6,%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,(%rsp)
movb   $0x2d,0x4(%rsp)
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(%rsp)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
add    $0x30,%al
mov    %al,0x6(%rsp)
movb   $0x2d,0x7(%rsp)
movslq 0x38(%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(%rsp)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0x9(%rsp)
movb   $0x54,0xa(%rsp)
movslq 0x3c(%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(%rsp)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0xc(%rsp)
movb   $0x3a,0xd(%rsp)
movslq 0x40(%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(%rsp)
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    $0x30,%al
mov    %al,0xf(%rsp)
movb   $0x3a,0x10(%rsp)
movslq 0x44(%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(%rsp)
movzbl %dl,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%al
add    $0x30,%al
mov    %al,0x12(%rsp)
movw   $0x5a,0x13(%rsp)
mov    %rsp,%rdi
call   1040 <write_str@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
define void @write_timestamp(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.tm
%5 = alloca [30 x i8]
%6 = alloca i8*
%7 = alloca i32
store i32 %0, i32* %2
%8 = load i32, i32* %2
store i32 %8, i32* %3
%9 = call i32 @gmtime_r(i32* %3, %struct.tm* %4)
%10 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1900
store i32 %12, i32* %7
%13 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds i8, i8* %13, i64 3
store i8* %14, i8** %6
%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** %6
%20 = getelementptr inbounds i8, i8* %19, i32 -1
store i8* %20, i8** %6
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** %6
%28 = getelementptr inbounds i8, i8* %27, i32 -1
store i8* %28, i8** %6
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** %6
%36 = getelementptr inbounds i8, i8* %35, i32 -1
store i8* %36, i8** %6
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** %6
store i8 %42, i8* %43
%44 = load i8*, i8** %6
%45 = getelementptr inbounds i8, i8* %44, i64 4
store i8* %45, i8** %6
%46 = load i8*, i8** %6
%47 = getelementptr inbounds i8, i8* %46, i32 1
store i8* %47, i8** %6
store i8 45, i8* %46
%48 = getelementptr inbounds %struct.tm, %struct.tm* %4, 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** %6
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %6
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** %6
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %6
store i8 %60, i8* %61
%63 = load i8*, i8** %6
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %6
store i8 45, i8* %63
%65 = getelementptr inbounds %struct.tm, %struct.tm* %4, 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** %6
%72 = getelementptr inbounds i8, i8* %71, i32 1
store i8* %72, i8** %6
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** %6
%78 = getelementptr inbounds i8, i8* %77, i32 1
store i8* %78, i8** %6
store i8 %76, i8* %77
%79 = load i8*, i8** %6
%80 = getelementptr inbounds i8, i8* %79, i32 1
store i8* %80, i8** %6
store i8 84, i8* %79
%81 = getelementptr inbounds %struct.tm, %struct.tm* %4, 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** %6
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %6
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** %6
%94 = getelementptr inbounds i8, i8* %93, i32 1
store i8* %94, i8** %6
store i8 %92, i8* %93
%95 = load i8*, i8** %6
%96 = getelementptr inbounds i8, i8* %95, i32 1
store i8* %96, i8** %6
store i8 58, i8* %95
%97 = getelementptr inbounds %struct.tm, %struct.tm* %4, 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** %6
%104 = getelementptr inbounds i8, i8* %103, i32 1
store i8* %104, i8** %6
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** %6
%110 = getelementptr inbounds i8, i8* %109, i32 1
store i8* %110, i8** %6
store i8 %108, i8* %109
%111 = load i8*, i8** %6
%112 = getelementptr inbounds i8, i8* %111, i32 1
store i8* %112, i8** %6
store i8 58, i8* %111
%113 = getelementptr inbounds %struct.tm, %struct.tm* %4, 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** %6
%121 = getelementptr inbounds i8, i8* %120, i32 1
store i8* %121, i8** %6
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** %6
%127 = getelementptr inbounds i8, i8* %126, i32 1
store i8* %127, i8** %6
store i8 %125, i8* %126
%128 = load i8*, i8** %6
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %6
store i8 90, i8* %128
%130 = load i8*, i8** %6
store i8 0, i8* %130
%131 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%132 = call i32 @write_str(i8* %131)
ret void
}

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