#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 */
scalar_t__ calloc(int, int);
char *decode_format(int, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ initialize_sndlib();
int /*<<< orphan*/ localtime(int /*<<< orphan*/ *);
scalar_t__ mus_probe_file(char *);
int /*<<< orphan*/ printf(char *);
int sound_chans(char *);
char *sound_comment(char *);
int sound_data_format(char *);
char *sound_format_name(int);
int sound_header_type(char *);
int sound_original_format(char *);
int sound_samples(char *);
int sound_srate(char *);
char *sound_type_name(int);
int /*<<< orphan*/ sound_write_date(char *);
int /*<<< orphan*/ sprintf(char *, char *, int, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strftime(char *, int, char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int chans, srate, samples, format, type;
  float length;
  time_t date;
  char *comment, *header_name;
  char *format_info, *format_name;
  char timestr[64];
  if (argc == 1) {
    printf("usage: sndinfo file\n");
    exit(0);
  }
  initialize_sndlib();
  if (mus_probe_file(argv[1])) {
    date = sound_write_date(argv[1]);
    srate = sound_srate(argv[1]);
    chans = sound_chans(argv[1]);
    samples = sound_samples(argv[1]);
    comment = sound_comment(argv[1]);
    length = (float)samples / (float)(chans * srate);
    type = sound_header_type(argv[1]);
    header_name = sound_type_name(type);
    format = sound_data_format(argv[1]);
    if (format != -1)
      format_info = sound_format_name(format);
    else {
      format_info = (char *)calloc(64, sizeof(char));
      format = sound_original_format(argv[1]);
      format_name = decode_format(format, type);
      if (format_name)
        sprintf(format_info, "%d (%s)", format, format_name);
      else
        sprintf(format_info, "%d", format);
    }
    strftime(timestr, 64, "%a %d-%b-%Y %H:%M %Z", localtime(&date));
    fprintf(stdout, "%s:\n  srate: %d\n  chans: %d\n  length: %f\n", argv[1],
            srate, chans, length);
    fprintf(stdout, "  type: %s\n  format: %s\n  written: %s\n  comment: %s\n",
            header_name, format_info, timestr, (comment) ? comment : "");
  } else
    fprintf(stderr, "%s: %s\n", argv[1], strerror(errno));
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1286 <main+0x36>
lea    0xd86(%rip),%rdi
call   1070 <printf@plt>
xor    %edi,%edi
call   1130 <exit@plt>
mov    $0x0,%al
call   10b0 <initialize_sndlib@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10f0 <mus_probe_file@plt>
cmp    $0x0,%rax
je     14c0 <main+0x270>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1080 <sound_write_date@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1170 <sound_srate@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <sound_chans@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10c0 <sound_samples@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <sound_comment@plt>
mov    %rax,-0x38(%rbp)
cvtsi2ssl -0x1c(%rbp),%xmm0
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <sound_header_type@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
call   10e0 <sound_type_name@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1160 <sound_data_format@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0xffffffff,-0x20(%rbp)
je     1355 <main+0x105>
mov    -0x20(%rbp),%edi
call   1110 <sound_format_name@plt>
mov    %rax,-0x48(%rbp)
jmp    13ca <main+0x17a>
mov    $0x40,%edi
mov    $0x1,%esi
call   1090 <calloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10d0 <sound_original_format@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1140 <decode_format@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     13b0 <main+0x160>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    -0x50(%rbp),%rcx
lea    0xc71(%rip),%rsi
mov    $0x0,%al
call   1120 <sprintf@plt>
jmp    13c5 <main+0x175>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xc5f(%rip),%rsi
mov    $0x0,%al
call   1120 <sprintf@plt>
jmp    13ca <main+0x17a>
lea    -0x90(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x2c(%rbp),%rdi
call   1030 <localtime@plt>
mov    -0xb8(%rbp),%rdi
mov    %eax,%ecx
mov    $0x40,%esi
lea    0xc2a(%rip),%rdx
call   1100 <strftime@plt>
mov    0x2bce(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc12(%rip),%rsi
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    0x2b9f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xac(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1478 <main+0x228>
mov    -0x38(%rbp),%rax
mov    %rax,-0xc0(%rbp)
jmp    148b <main+0x23b>
lea    0xb95(%rip),%rax
mov    %rax,-0xc0(%rbp)
jmp    148b <main+0x23b>
mov    -0x98(%rbp),%r8
mov    -0xa0(%rbp),%rcx
mov    -0xa8(%rbp),%rdx
mov    -0xac(%rbp),%edi
mov    -0xc0(%rbp),%r9
lea    0xbab(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    150a <main+0x2ba>
mov    0x2b19(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xcc(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0xc8(%rbp)
mov    0x2af3(%rip),%rax
mov    (%rax),%edi
call   1150 <strerror@plt>
mov    -0xcc(%rbp),%edi
mov    -0xc8(%rbp),%rdx
mov    %rax,%rcx
lea    0xb91(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
cmp    $0x1,%edi
je     1430 <main+0x1e0>
mov    %rsi,%r15
xor    %eax,%eax
call   10b0 <initialize_sndlib@plt>
mov    0x8(%r15),%rdi
call   10f0 <mus_probe_file@plt>
test   %rax,%rax
je     1310 <main+0xc0>
mov    0x8(%r15),%rdi
call   1080 <sound_write_date@plt>
mov    %eax,0x14(%rsp)
mov    0x8(%r15),%rdi
call   1170 <sound_srate@plt>
mov    %eax,%ebx
mov    0x8(%r15),%rdi
call   1070 <sound_chans@plt>
mov    %eax,%ebp
mov    0x8(%r15),%rdi
call   10c0 <sound_samples@plt>
mov    %eax,%r14d
mov    0x8(%r15),%rdi
call   1060 <sound_comment@plt>
cvtsi2ss %r14d,%xmm1
mov    %ebp,0x8(%rsp)
mov    %ebx,0x10(%rsp)
imul   %ebx,%ebp
cvtsi2ss %ebp,%xmm0
mov    %rax,%r14
divss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
mov    0x8(%r15),%rdi
call   1040 <sound_header_type@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   10e0 <sound_type_name@plt>
mov    %rax,0x18(%rsp)
mov    0x8(%r15),%rdi
call   1160 <sound_data_format@plt>
cmp    $0xffffffff,%eax
je     1346 <main+0xf6>
mov    %eax,%edi
call   1110 <sound_format_name@plt>
mov    %rax,%r13
jmp    139f <main+0x14f>
mov    0x2cc9(%rip),%rax
mov    (%rax),%ebp
mov    0x8(%r15),%rbx
mov    0x2cb4(%rip),%rax
mov    (%rax),%edi
call   1150 <strerror@plt>
lea    0xd4d(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    141f <main+0x1cf>
mov    $0x40,%edi
mov    $0x1,%esi
call   1090 <calloc@plt>
mov    %rax,%r13
mov    0x8(%r15),%rdi
call   10d0 <sound_original_format@plt>
mov    %eax,%r12d
mov    %eax,%edi
mov    %ebp,%esi
call   1140 <decode_format@plt>
test   %rax,%rax
je     138b <main+0x13b>
lea    0xc87(%rip),%rsi
mov    %r13,%rdi
mov    %r12d,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1120 <sprintf@plt>
jmp    139f <main+0x14f>
lea    0xc76(%rip),%rsi
mov    %r13,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1120 <sprintf@plt>
mov    0x8(%rsp),%ebx
lea    0x14(%rsp),%rdi
call   1030 <localtime@plt>
lea    0xc57(%rip),%rdx
lea    0x20(%rsp),%r12
mov    %r12,%rdi
mov    $0x40,%esi
mov    %eax,%ecx
call   1100 <strftime@plt>
mov    0x2c01(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x8(%r15),%rdx
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc39(%rip),%rsi
mov    0x10(%rsp),%ecx
mov    %ebx,%r8d
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    0x0(%rbp),%edi
test   %r14,%r14
lea    0xc47(%rip),%r9
cmovne %r14,%r9
lea    0xc3d(%rip),%rsi
mov    0x18(%rsp),%rdx
mov    %r13,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   10a0 <fprintf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc50(%rip),%rdi
call   1050 <puts@plt>
xor    %edi,%edi
call   1130 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"usage: sndinfo file\0A\00"
@.str.1 = [8 x i8] c"%d (%s)\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [21 x i8] c"%a %d-%b-%Y %H:%M %Z\00"
@stdout = global i32 0
@.str.4 = [42 x i8] c"%s:\0A srate: %d\0A chans: %d\0A length: %f\0A\00"
@.str.5 = [53 x i8] c" type: %s\0A format: %s\0A written: %s\0A comment: %s\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.7 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca float
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca [64 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i32, i32* %4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @exit(i32 0)
unreachable
23: ; preds = %2
%24 = call i32 (...) @initialize_sndlib()
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 1
%27 = load i8*, i8** %26
%28 = call i64 @mus_probe_file(i8* %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %120
30: ; preds = %23
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32 @sound_write_date(i8* %33)
store i32 %34, i32* %12
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @sound_srate(i8* %37)
store i32 %38, i32* %7
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 @sound_chans(i8* %41)
store i32 %42, i32* %6
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = call i32 @sound_samples(i8* %45)
store i32 %46, i32* %8
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = load i8*, i8** %48
%50 = call i8* @sound_comment(i8* %49)
store i8* %50, i8** %13
%51 = load i32, i32* %8
%52 = sitofp i32 %51 to float
%53 = load i32, i32* %6
%54 = load i32, i32* %7
%55 = mul nsw i32 %53, %54
%56 = sitofp i32 %55 to float
%57 = fdiv float %52, %56
store float %57, float* %11
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 1
%60 = load i8*, i8** %59
%61 = call i32 @sound_header_type(i8* %60)
store i32 %61, i32* %10
%62 = load i32, i32* %10
%63 = call i8* @sound_type_name(i32 %62)
store i8* %63, i8** %14
%64 = load i8**, i8*** %5
%65 = getelementptr inbounds i8*, i8** %64, i64 1
%66 = load i8*, i8** %65
%67 = call i32 @sound_data_format(i8* %66)
store i32 %67, i32* %9
%68 = load i32, i32* %9
%69 = icmp ne i32 %68, -1
br i1 %69, label %70, label %73
70: ; preds = %30
%71 = load i32, i32* %9
%72 = call i8* @sound_format_name(i32 %71)
store i8* %72, i8** %15
br label %95
73: ; preds = %30
%74 = call i64 @calloc(i32 64, i32 1)
%75 = inttoptr i64 %74 to i8*
store i8* %75, i8** %15
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 1
%78 = load i8*, i8** %77
%79 = call i32 @sound_original_format(i8* %78)
store i32 %79, i32* %9
%80 = load i32, i32* %9
%81 = load i32, i32* %10
%82 = call i8* @decode_format(i32 %80, i32 %81)
store i8* %82, i8** %16
%83 = load i8*, i8** %16
%84 = icmp ne i8* %83, null
br i1 %84, label %85, label %90
85: ; preds = %73
%86 = load i8*, i8** %15
%87 = load i32, i32* %9
%88 = load i8*, i8** %16
%89 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %87, i8* %88)
br label %94
90: ; preds = %73
%91 = load i8*, i8** %15
%92 = load i32, i32* %9
%93 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %91, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %92)
br label %94
94: ; preds = %90, %85
br label %95
95: ; preds = %94, %70
%96 = getelementptr inbounds [64 x i8], [64 x i8]* %17, i64 0, i64 0
%97 = call i32 @localtime(i32* %12)
%98 = call i32 @strftime(i8* %96, i32 64, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %97)
%99 = load i32, i32* @stdout
%100 = load i8**, i8*** %5
%101 = getelementptr inbounds i8*, i8** %100, i64 1
%102 = load i8*, i8** %101
%103 = load i32, i32* %7
%104 = load i32, i32* %6
%105 = load float, float* %11
%106 = fpext float %105 to double
%107 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %102, i32 %103, i32 %104, double %106)
%108 = load i32, i32* @stdout
%109 = load i8*, i8** %14
%110 = load i8*, i8** %15
%111 = getelementptr inbounds [64 x i8], [64 x i8]* %17, i64 0, i64 0
%112 = load i8*, i8** %13
%113 = icmp ne i8* %112, null
br i1 %113, label %114, label %116
114: ; preds = %95
%115 = load i8*, i8** %13
br label %117
116: ; preds = %95
br label %117
117: ; preds = %116, %114
%118 = phi i8* [ %115, %114 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), %116 ]
%119 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i8* %109, i8* %110, i8* %111, i8* %118)
br label %128
120: ; preds = %23
%121 = load i32, i32* @stderr
%122 = load i8**, i8*** %5
%123 = getelementptr inbounds i8*, i8** %122, i64 1
%124 = load i8*, i8** %123
%125 = load i32, i32* @errno
%126 = call i8* @strerror(i32 %125)
%127 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %121, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %124, i8* %126)
br label %128
128: ; preds = %120, %117
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [8 x i8] c"%d (%s)\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [21 x i8] c"%a %d-%b-%Y %H:%M %Z\00"
@stdout = global i32 0
@.str.4 = [42 x i8] c"%s:\0A srate: %d\0A chans: %d\0A length: %f\0A\00"
@.str.5 = [53 x i8] c" type: %s\0A format: %s\0A written: %s\0A comment: %s\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.7 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
@str = [20 x i8] c"usage: sndinfo file\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [64 x i8]
%5 = bitcast i32* %3 to i8*
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%7 = icmp eq i32 %0, 1
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @exit(i32 0)
unreachable
11: ; preds = %2
%12 = tail call i32 (...) @initialize_sndlib()
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i64 @mus_probe_file(i8* %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %63, label %17
17: ; preds = %11
%18 = load i8*, i8** %13
%19 = tail call i32 @sound_write_date(i8* %18)
store i32 %19, i32* %3
%20 = load i8*, i8** %13
%21 = tail call i32 @sound_srate(i8* %20)
%22 = load i8*, i8** %13
%23 = tail call i32 @sound_chans(i8* %22)
%24 = load i8*, i8** %13
%25 = tail call i32 @sound_samples(i8* %24)
%26 = load i8*, i8** %13
%27 = tail call i8* @sound_comment(i8* %26)
%28 = sitofp i32 %25 to float
%29 = mul nsw i32 %23, %21
%30 = sitofp i32 %29 to float
%31 = fdiv float %28, %30
%32 = load i8*, i8** %13
%33 = tail call i32 @sound_header_type(i8* %32)
%34 = tail call i8* @sound_type_name(i32 %33)
%35 = load i8*, i8** %13
%36 = tail call i32 @sound_data_format(i8* %35)
%37 = icmp eq i32 %36, -1
br i1 %37, label %40, label %38
38: ; preds = %17
%39 = tail call i8* @sound_format_name(i32 %36)
br label %51
40: ; preds = %17
%41 = tail call i64 @calloc(i32 64, i32 1)
%42 = inttoptr i64 %41 to i8*
%43 = load i8*, i8** %13
%44 = tail call i32 @sound_original_format(i8* %43)
%45 = tail call i8* @decode_format(i32 %44, i32 %33)
%46 = icmp eq i8* %45, null
br i1 %46, label %49, label %47
47: ; preds = %40
%48 = tail call i32 (i8*, i8*, i32, ...) @sprintf(i8* dereferenceable(1) %42, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %44, i8* %45)
br label %51
49: ; preds = %40
%50 = tail call i32 (i8*, i8*, i32, ...) @sprintf(i8* dereferenceable(1) %42, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %44)
br label %51
51: ; preds = %47, %49, %38
%52 = phi i8* [ %39, %38 ], [ %42, %47 ], [ %42, %49 ]
%53 = call i32 @localtime(i32* %3)
%54 = call i32 @strftime(i8* %6, i32 64, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %53)
%55 = load i32, i32* @stdout
%56 = load i8*, i8** %13
%57 = fpext float %31 to double
%58 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %56, i32 %21, i32 %23, double %57)
%59 = load i32, i32* @stdout
%60 = icmp eq i8* %27, null
%61 = select i1 %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* %27
%62 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i8* %34, i8* %52, i8* %6, i8* %61)
br label %69
63: ; preds = %11
%64 = load i32, i32* @stderr
%65 = load i8*, i8** %13
%66 = load i32, i32* @errno
%67 = tail call i8* @strerror(i32 %66)
%68 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %65, i8* %67)
br label %69
69: ; preds = %63, %51
ret i32 0
}