#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_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ my_strftime(char *, struct tm *);
int /*<<< orphan*/ print_tm(struct tm *);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int ret = 0;
  time_t now = time(NULL);
  printf("now = %ld\n", now);
  struct tm *t = localtime(&now);
  print_tm(t);
  my_strftime("%a", t);
  my_strftime("%A", t);
  my_strftime("%b", t);
  my_strftime("%B", t);
  my_strftime("%c", t);
  my_strftime("%C", t);
  my_strftime("%d", t);
  my_strftime("%D", t);
  my_strftime("%e", t);
  my_strftime("%F", t);
  my_strftime("%g", t);
  my_strftime("%G", t);
  my_strftime("%h", t);
  my_strftime("%H", t);
  my_strftime("%I", t);
  my_strftime("%k", t);
  my_strftime("%l", t);
  my_strftime("%j", t);
  my_strftime("%m", t);
  my_strftime("%M", t);
  my_strftime("%n", t);
  my_strftime("%p", t);
  my_strftime("%P", t);
  my_strftime("%r", t);
  my_strftime("%R", t);
  my_strftime("%S", t);
  my_strftime("%s", t);
  my_strftime("%t", t);
  my_strftime("%T", t);
  my_strftime("%u", t);
  my_strftime("%U", t);
  my_strftime("%V", t);
  my_strftime("%w", t);
  my_strftime("%W", t);
  my_strftime("%x", t);
  my_strftime("%X", t);
  my_strftime("%y", t);
  my_strftime("%Y", t);
  my_strftime("%z", t);
  my_strftime("%Z", t);
  my_strftime("%%", t);
  my_strftime("%+", t);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xe7d(%rip),%rdi
call   1050 <printf@plt>
lea    -0x18(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <print_tm@plt>
mov    -0x20(%rbp),%rsi
lea    0xe62(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe55(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe48(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe3b(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe2e(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe21(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe14(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xe07(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xdfa(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xded(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xde0(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xdd3(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xdc6(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xdb9(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xdac(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd9f(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd92(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd85(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd78(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd6b(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd5e(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd51(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd44(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd37(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd2a(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd1d(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd10(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xd03(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xcf6(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xce9(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xcdc(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xccf(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xcc2(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xcb5(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xca8(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc9b(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc8e(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc81(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc74(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc67(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc5a(%rip),%rdi
call   1040 <my_strftime@plt>
mov    -0x20(%rbp),%rsi
lea    0xc4d(%rip),%rdi
call   1040 <my_strftime@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xe99(%rip),%rdi
mov    %eax,%esi
call   1050 <printf@plt>
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1060 <print_tm@plt>
lea    0xe81(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe75(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe69(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe5d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe51(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe45(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe39(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe2d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe21(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe15(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xe09(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdfd(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdf1(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xde5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdd9(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdcd(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdc1(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xdb5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xda9(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd9d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd91(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd85(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd79(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd6d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd61(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd55(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd49(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd3d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd31(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd25(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd19(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd0d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xd01(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcf5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xce9(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcdd(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcd1(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcc5(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcb9(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xcad(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xca1(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
lea    0xc95(%rip),%rdi
mov    %rbx,%rsi
call   1040 <my_strftime@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [11 x i8] c"now = %ld\0A\00"
@.str.1 = [3 x i8] c"%a\00"
@.str.2 = [3 x i8] c"%A\00"
@.str.3 = [3 x i8] c"%b\00"
@.str.4 = [3 x i8] c"%B\00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [3 x i8] c"%C\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [3 x i8] c"%D\00"
@.str.9 = [3 x i8] c"%e\00"
@.str.10 = [3 x i8] c"%F\00"
@.str.11 = [3 x i8] c"%g\00"
@.str.12 = [3 x i8] c"%G\00"
@.str.13 = [3 x i8] c"%h\00"
@.str.14 = [3 x i8] c"%H\00"
@.str.15 = [3 x i8] c"%I\00"
@.str.16 = [3 x i8] c"%k\00"
@.str.17 = [3 x i8] c"%l\00"
@.str.18 = [3 x i8] c"%j\00"
@.str.19 = [3 x i8] c"%m\00"
@.str.20 = [3 x i8] c"%M\00"
@.str.21 = [3 x i8] c"%n\00"
@.str.22 = [3 x i8] c"%p\00"
@.str.23 = [3 x i8] c"%P\00"
@.str.24 = [3 x i8] c"%r\00"
@.str.25 = [3 x i8] c"%R\00"
@.str.26 = [3 x i8] c"%S\00"
@.str.27 = [3 x i8] c"%s\00"
@.str.28 = [3 x i8] c"%t\00"
@.str.29 = [3 x i8] c"%T\00"
@.str.30 = [3 x i8] c"%u\00"
@.str.31 = [3 x i8] c"%U\00"
@.str.32 = [3 x i8] c"%V\00"
@.str.33 = [3 x i8] c"%w\00"
@.str.34 = [3 x i8] c"%W\00"
@.str.35 = [3 x i8] c"%x\00"
@.str.36 = [3 x i8] c"%X\00"
@.str.37 = [3 x i8] c"%y\00"
@.str.38 = [3 x i8] c"%Y\00"
@.str.39 = [3 x i8] c"%z\00"
@.str.40 = [3 x i8] c"%Z\00"
@.str.41 = [3 x i8] c"%%\00"
@.str.42 = [3 x i8] c"%+\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.tm*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%9 = call i32 @time(i32* null)
store i32 %9, i32* %7
%10 = load i32, i32* %7
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = call %struct.tm* @localtime(i32* %7)
store %struct.tm* %12, %struct.tm** %8
%13 = load %struct.tm*, %struct.tm** %8
%14 = call i32 @print_tm(%struct.tm* %13)
%15 = load %struct.tm*, %struct.tm** %8
%16 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %15)
%17 = load %struct.tm*, %struct.tm** %8
%18 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %17)
%19 = load %struct.tm*, %struct.tm** %8
%20 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %19)
%21 = load %struct.tm*, %struct.tm** %8
%22 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %21)
%23 = load %struct.tm*, %struct.tm** %8
%24 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %23)
%25 = load %struct.tm*, %struct.tm** %8
%26 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %25)
%27 = load %struct.tm*, %struct.tm** %8
%28 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %27)
%29 = load %struct.tm*, %struct.tm** %8
%30 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %29)
%31 = load %struct.tm*, %struct.tm** %8
%32 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), %struct.tm* %31)
%33 = load %struct.tm*, %struct.tm** %8
%34 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), %struct.tm* %33)
%35 = load %struct.tm*, %struct.tm** %8
%36 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), %struct.tm* %35)
%37 = load %struct.tm*, %struct.tm** %8
%38 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), %struct.tm* %37)
%39 = load %struct.tm*, %struct.tm** %8
%40 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), %struct.tm* %39)
%41 = load %struct.tm*, %struct.tm** %8
%42 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), %struct.tm* %41)
%43 = load %struct.tm*, %struct.tm** %8
%44 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), %struct.tm* %43)
%45 = load %struct.tm*, %struct.tm** %8
%46 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), %struct.tm* %45)
%47 = load %struct.tm*, %struct.tm** %8
%48 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), %struct.tm* %47)
%49 = load %struct.tm*, %struct.tm** %8
%50 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), %struct.tm* %49)
%51 = load %struct.tm*, %struct.tm** %8
%52 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), %struct.tm* %51)
%53 = load %struct.tm*, %struct.tm** %8
%54 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), %struct.tm* %53)
%55 = load %struct.tm*, %struct.tm** %8
%56 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), %struct.tm* %55)
%57 = load %struct.tm*, %struct.tm** %8
%58 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), %struct.tm* %57)
%59 = load %struct.tm*, %struct.tm** %8
%60 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), %struct.tm* %59)
%61 = load %struct.tm*, %struct.tm** %8
%62 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0), %struct.tm* %61)
%63 = load %struct.tm*, %struct.tm** %8
%64 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0), %struct.tm* %63)
%65 = load %struct.tm*, %struct.tm** %8
%66 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), %struct.tm* %65)
%67 = load %struct.tm*, %struct.tm** %8
%68 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), %struct.tm* %67)
%69 = load %struct.tm*, %struct.tm** %8
%70 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), %struct.tm* %69)
%71 = load %struct.tm*, %struct.tm** %8
%72 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0), %struct.tm* %71)
%73 = load %struct.tm*, %struct.tm** %8
%74 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), %struct.tm* %73)
%75 = load %struct.tm*, %struct.tm** %8
%76 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), %struct.tm* %75)
%77 = load %struct.tm*, %struct.tm** %8
%78 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), %struct.tm* %77)
%79 = load %struct.tm*, %struct.tm** %8
%80 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0), %struct.tm* %79)
%81 = load %struct.tm*, %struct.tm** %8
%82 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), %struct.tm* %81)
%83 = load %struct.tm*, %struct.tm** %8
%84 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), %struct.tm* %83)
%85 = load %struct.tm*, %struct.tm** %8
%86 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0), %struct.tm* %85)
%87 = load %struct.tm*, %struct.tm** %8
%88 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.37, i64 0, i64 0), %struct.tm* %87)
%89 = load %struct.tm*, %struct.tm** %8
%90 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), %struct.tm* %89)
%91 = load %struct.tm*, %struct.tm** %8
%92 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.39, i64 0, i64 0), %struct.tm* %91)
%93 = load %struct.tm*, %struct.tm** %8
%94 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.40, i64 0, i64 0), %struct.tm* %93)
%95 = load %struct.tm*, %struct.tm** %8
%96 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.41, i64 0, i64 0), %struct.tm* %95)
%97 = load %struct.tm*, %struct.tm** %8
%98 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), %struct.tm* %97)
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [11 x i8] c"now = %ld\0A\00"
@.str.1 = [3 x i8] c"%a\00"
@.str.2 = [3 x i8] c"%A\00"
@.str.3 = [3 x i8] c"%b\00"
@.str.4 = [3 x i8] c"%B\00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [3 x i8] c"%C\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [3 x i8] c"%D\00"
@.str.9 = [3 x i8] c"%e\00"
@.str.10 = [3 x i8] c"%F\00"
@.str.11 = [3 x i8] c"%g\00"
@.str.12 = [3 x i8] c"%G\00"
@.str.13 = [3 x i8] c"%h\00"
@.str.14 = [3 x i8] c"%H\00"
@.str.15 = [3 x i8] c"%I\00"
@.str.16 = [3 x i8] c"%k\00"
@.str.17 = [3 x i8] c"%l\00"
@.str.18 = [3 x i8] c"%j\00"
@.str.19 = [3 x i8] c"%m\00"
@.str.20 = [3 x i8] c"%M\00"
@.str.21 = [3 x i8] c"%n\00"
@.str.22 = [3 x i8] c"%p\00"
@.str.23 = [3 x i8] c"%P\00"
@.str.24 = [3 x i8] c"%r\00"
@.str.25 = [3 x i8] c"%R\00"
@.str.26 = [3 x i8] c"%S\00"
@.str.27 = [3 x i8] c"%s\00"
@.str.28 = [3 x i8] c"%t\00"
@.str.29 = [3 x i8] c"%T\00"
@.str.30 = [3 x i8] c"%u\00"
@.str.31 = [3 x i8] c"%U\00"
@.str.32 = [3 x i8] c"%V\00"
@.str.33 = [3 x i8] c"%w\00"
@.str.34 = [3 x i8] c"%W\00"
@.str.35 = [3 x i8] c"%x\00"
@.str.36 = [3 x i8] c"%X\00"
@.str.37 = [3 x i8] c"%y\00"
@.str.38 = [3 x i8] c"%Y\00"
@.str.39 = [3 x i8] c"%z\00"
@.str.40 = [3 x i8] c"%Z\00"
@.str.41 = [3 x i8] c"%%\00"
@.str.42 = [3 x i8] c"%+\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i32 @time(i32* null)
store i32 %5, i32* %3
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call %struct.tm* @localtime(i32* %3)
%8 = call i32 @print_tm(%struct.tm* %7)
%9 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %7)
%10 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.tm* %7)
%11 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %7)
%12 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %struct.tm* %7)
%13 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), %struct.tm* %7)
%14 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), %struct.tm* %7)
%15 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), %struct.tm* %7)
%16 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), %struct.tm* %7)
%17 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), %struct.tm* %7)
%18 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), %struct.tm* %7)
%19 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), %struct.tm* %7)
%20 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), %struct.tm* %7)
%21 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), %struct.tm* %7)
%22 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), %struct.tm* %7)
%23 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), %struct.tm* %7)
%24 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), %struct.tm* %7)
%25 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), %struct.tm* %7)
%26 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), %struct.tm* %7)
%27 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), %struct.tm* %7)
%28 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), %struct.tm* %7)
%29 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), %struct.tm* %7)
%30 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), %struct.tm* %7)
%31 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), %struct.tm* %7)
%32 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0), %struct.tm* %7)
%33 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0), %struct.tm* %7)
%34 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), %struct.tm* %7)
%35 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), %struct.tm* %7)
%36 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), %struct.tm* %7)
%37 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0), %struct.tm* %7)
%38 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), %struct.tm* %7)
%39 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), %struct.tm* %7)
%40 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), %struct.tm* %7)
%41 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0), %struct.tm* %7)
%42 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), %struct.tm* %7)
%43 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), %struct.tm* %7)
%44 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0), %struct.tm* %7)
%45 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.37, i64 0, i64 0), %struct.tm* %7)
%46 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), %struct.tm* %7)
%47 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.39, i64 0, i64 0), %struct.tm* %7)
%48 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.40, i64 0, i64 0), %struct.tm* %7)
%49 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.41, i64 0, i64 0), %struct.tm* %7)
%50 = call i32 @my_strftime(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), %struct.tm* %7)
ret i32 0
}