#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 */

/* Variables and functions */
char *date_get_now_hhmm(int /*<<< orphan*/);
char *date_get_now_yyyy_mm_dd(int /*<<< orphan*/);
int /*<<< orphan*/ date_get_utc_offset();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void output_starting_argv_stderr(int argc, char **argv) {
  fprintf(stderr, "%s %s: %s", date_get_now_yyyy_mm_dd(date_get_utc_offset()),
          date_get_now_hhmm(date_get_utc_offset()), argv[0]);
  while (--argc)
    fprintf(stderr, " %s", *++argv);
  fprintf(stderr, "\n\n");
  fflush(stderr);
}


x86 assembly (clang, -O0):
<output_starting_argv_stderr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e7a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1040 <date_get_utc_offset@plt>
mov    %eax,%edi
call   1030 <date_get_now_yyyy_mm_dd@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1040 <date_get_utc_offset@plt>
mov    %eax,%edi
call   1070 <date_get_now_hhmm@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rdx
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%r8
lea    0xe5d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
je     11eb <output_starting_argv_stderr+0x9b>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdx
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    11aa <output_starting_argv_stderr+0x5a>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
lea    0xe0f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_starting_argv_stderr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r13
mov    %edi,%r15d
mov    0x2e78(%rip),%r12
mov    (%r12),%r14d
xor    %eax,%eax
call   1040 <date_get_utc_offset@plt>
mov    %eax,%edi
call   1030 <date_get_now_yyyy_mm_dd@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   1040 <date_get_utc_offset@plt>
mov    %eax,%edi
call   1070 <date_get_now_hhmm@plt>
mov    0x0(%r13),%r8
lea    0xe6a(%rip),%rsi
mov    %r14d,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
cmp    $0x1,%r15d
je     11db <output_starting_argv_stderr+0x8b>
mov    %r15d,%ebp
mov    $0x1,%ebx
lea    0xe4b(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r12),%edi
mov    0x0(%r13,%rbx,8),%rdx
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%rbx
cmp    %ebx,%ebp
jne    11c0 <output_starting_argv_stderr+0x70>
mov    (%r12),%edi
lea    0xe24(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fflush@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [10 x i8] c"%s %s: %s\00"
@.str.1 = [4 x i8] c" %s\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
define void @output_starting_argv_stderr(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* @stderr
%6 = call i32 (...) @date_get_utc_offset()
%7 = call i8* @date_get_now_yyyy_mm_dd(i32 %6)
%8 = call i32 (...) @date_get_utc_offset()
%9 = call i8* @date_get_now_hhmm(i32 %8)
%10 = load i8**, i8*** %4
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %9, i8* %12)
br label %14
14: ; preds = %18, %2
%15 = load i32, i32* %3
%16 = add nsw i32 %15, -1
store i32 %16, i32* %3
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %4
%21 = getelementptr inbounds i8*, i8** %20, i32 1
store i8** %21, i8*** %4
%22 = load i8*, i8** %21
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %22)
br label %14
24: ; preds = %14
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fflush(i32 %27)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [10 x i8] c"%s %s: %s\00"
@.str.1 = [4 x i8] c" %s\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
define void @output_starting_argv_stderr(i32 %0, i8** nocapture %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 (...) @date_get_utc_offset()
%5 = tail call i8* @date_get_now_yyyy_mm_dd(i32 %4)
%6 = tail call i32 (...) @date_get_utc_offset()
%7 = tail call i8* @date_get_now_hhmm(i32 %6)
%8 = load i8*, i8** %1
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %7, i8* %8)
%10 = add nsw i32 %0, -1
%11 = icmp eq i32 %10, 0
br i1 %11, label %21, label %12
12: ; preds = %2, %12
%13 = phi i32 [ %19, %12 ], [ %10, %2 ]
%14 = phi i8** [ %16, %12 ], [ %1, %2 ]
%15 = load i32, i32* @stderr
%16 = getelementptr inbounds i8*, i8** %14, i64 1
%17 = load i8*, i8** %16
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = add nsw i32 %13, -1
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %12
21: ; preds = %12, %2
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 @fflush(i32 %24)
ret void
}