#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*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strncpy(char *, char *, int);
void printit(int counter, long start, long end) {
  char buffer[30];
  printf("%d deletion(s) between ", counter);
  strncpy(buffer, ctime((time_t *)&start), 30);
  buffer[24] = '\0';
  printf("%s and %s", buffer, ctime((time_t *)&end));
}


x86 assembly (clang, -O0):
<printit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x10(%rbp),%rdi
call   1040 <ctime@plt>
mov    -0x50(%rbp),%rdi
mov    %rax,%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x28(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <ctime@plt>
mov    -0x48(%rbp),%rsi
mov    %rax,%rdx
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printit>:
push   %rbx
sub    $0x30,%rsp
mov    %edi,%eax
mov    %rsi,0x8(%rsp)
mov    %rdx,(%rsp)
lea    0xeb9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rdi
call   1040 <ctime@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
mov    $0x1e,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x28(%rsp)
mov    %rsp,%rdi
call   1040 <ctime@plt>
lea    0xe95(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"%d deletion(s) between \00"
@.str.1 = [10 x i8] c"%s and %s\00"
define void @printit(i32 %0, i64 %1, i64 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
%7 = alloca [30 x i8]
store i32 %0, i32* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = load i32, i32* %4
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%11 = bitcast i64* %5 to i32*
%12 = call i8* @ctime(i32* %11)
%13 = call i32 @strncpy(i8* %10, i8* %12, i32 30)
%14 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 24
store i8 0, i8* %14
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%16 = bitcast i64* %6 to i32*
%17 = call i8* @ctime(i32* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %15, i8* %17)
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"%d deletion(s) between \00"
@.str.1 = [10 x i8] c"%s and %s\00"
define void @printit(i32 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca [30 x i8]
store i64 %1, i64* %4
store i64 %2, i64* %5
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %0)
%9 = bitcast i64* %4 to i32*
%10 = call i8* @ctime(i32* %9)
%11 = call i32 @strncpy(i8* %7, i8* %10, i32 30)
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 24
store i8 0, i8* %12
%13 = bitcast i64* %5 to i32*
%14 = call i8* @ctime(i32* %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %14)
ret void
}