#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;

/* Variables and functions */
char *ctime(int /*<<< orphan*/ *);
char *svz_time(long t) {
  static char *asc;
  char *p;
  p = asc = ctime((time_t *)&t);
  while (*p)
    p++;
  while (*p < ' ')
    *(p--) = '\0';
  return asc;
}


x86 assembly (clang, -O0):
<svz_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <ctime@plt>
mov    %rax,0x2f04(%rip)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     114e <svz_time+0x3e>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1130 <svz_time+0x20>
jmp    1153 <svz_time+0x43>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jge    117a <svz_time+0x6a>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x0,(%rax)
jmp    1153 <svz_time+0x43>
mov    0x2eaf(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<svz_time>:
push   %rax
mov    %rdi,(%rsp)
mov    %rsp,%rdi
call   1030 <ctime@plt>
mov    %rax,0x2f0c(%rip)
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
nopl   0x0(%rax,%rax,1)
cmpb   $0x0,0x1(%rcx)
lea    0x1(%rcx),%rcx
jne    1130 <svz_time+0x20>
nopw   0x0(%rax,%rax,1)
movb   $0x0,(%rcx)
cmpb   $0x20,-0x1(%rcx)
lea    -0x1(%rcx),%rcx
jl     1140 <svz_time+0x30>
pop    %rcx
ret

LLVM IR (-O0):
@svz_time.asc = internal global i8* null
define i8* @svz_time(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = bitcast i64* %2 to i32*
%5 = call i8* @ctime(i32* %4)
store i8* %5, i8** @svz_time.asc
store i8* %5, i8** %3
br label %6
6: ; preds = %10, %1
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %3
br label %6
13: ; preds = %6
br label %14
14: ; preds = %19, %13
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp slt i32 %17, 32
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i8*, i8** %3
%21 = getelementptr inbounds i8, i8* %20, i32 -1
store i8* %21, i8** %3
store i8 0, i8* %20
br label %14
22: ; preds = %14
%23 = load i8*, i8** @svz_time.asc
ret i8* %23
}

LLVM IR (-O2):
@svz_time.asc = internal unnamed_addr global i8* null
define i8* @svz_time(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = bitcast i64* %2 to i32*
%4 = call i8* @ctime(i32* %3)
store i8* %4, i8** @svz_time.asc
br label %5
5: ; preds = %5, %1
%6 = phi i8* [ %4, %1 ], [ %9, %5 ]
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
%9 = getelementptr inbounds i8, i8* %6, i64 1
br i1 %8, label %10, label %5
10: ; preds = %5, %10
%11 = phi i8* [ %12, %10 ], [ %6, %5 ]
%12 = getelementptr inbounds i8, i8* %11, i64 -1
store i8 0, i8* %11
%13 = load i8, i8* %12
%14 = icmp slt i8 %13, 32
br i1 %14, label %10, label %15
15: ; preds = %10
ret i8* %4
}