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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
print_objects(char *const Name, long double *vector, unsigned long size,
              FILE *outfile) {
  long double objects;
  unsigned long i;
  i = 0;
  fprintf(outfile, "%s[%lu] = [", Name, size);
  unsigned long _iobjects = 0;
  for (objects = vector[_iobjects]; _iobjects++ < size;
       objects = vector[_iobjects]) {
    fprintf(outfile, "%Lf", objects);
    if (++i < size)
      fprintf(outfile, "%c", ',');
    else
      fprintf(outfile, "]\n");
  }
}


x86 assembly (clang, -O0):
<print_objects>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xebd(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
movq   $0x0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x50(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fstpt  -0x40(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x50(%rbp)
cmp    -0x20(%rbp),%rax
jae    11f7 <print_objects+0xe7>
mov    -0x28(%rbp),%rdi
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe7c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
cmp    -0x20(%rbp),%rax
jae    11c9 <print_objects+0xb9>
mov    -0x28(%rbp),%rdi
lea    0xe58(%rip),%rsi
mov    $0x2c,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11db <print_objects+0xcb>
mov    -0x28(%rbp),%rdi
lea    0xe3f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    11e0 <print_objects+0xd0>
mov    -0x18(%rbp),%rax
mov    -0x50(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
fstpt  -0x40(%rbp)
jmp    1164 <print_objects+0x54>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_objects>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%rdx
lea    0xeaf(%rip),%rsi
mov    %rcx,%rdi
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %r14,%r14
je     11d8 <print_objects+0xa8>
mov    %r14,%rbp
neg    %rbp
mov    $0x1,%r13d
lea    0xe96(%rip),%r12
jmp    11b2 <print_objects+0x82>
nopl   0x0(%rax,%rax,1)
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xe7f(%rip),%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
add    $0x10,%rbx
lea    0x1(,%r13,1),%rax
add    %rbp,%rax
add    $0x1,%r13
cmp    $0x1,%rax
je     11d8 <print_objects+0xa8>
fldt   (%rbx)
fstpt  (%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    %r14,%r13
jae    1180 <print_objects+0x50>
mov    $0x2c,%edi
mov    %r15,%rsi
call   1030 <fputc@plt>
jmp    1199 <print_objects+0x69>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%s[%lu] = [\00"
@.str.1 = [4 x i8] c"%Lf\00"
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [3 x i8] c"]\0A\00"
define i32 @print_objects(i8* %0, x86_fp80* %1, i64 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca x86_fp80*
%8 = alloca i64
%9 = alloca i32*
%10 = alloca x86_fp80
%11 = alloca i64
%12 = alloca i64
store i8* %0, i8** %6
store x86_fp80* %1, x86_fp80** %7
store i64 %2, i64* %8
store i32* %3, i32** %9
store i64 0, i64* %11
%13 = load i32*, i32** %9
%14 = load i8*, i8** %6
%15 = load i64, i64* %8
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %14, i64 %15)
store i64 0, i64* %12
%17 = load x86_fp80*, x86_fp80** %7
%18 = load i64, i64* %12
%19 = getelementptr inbounds x86_fp80, x86_fp80* %17, i64 %18
%20 = load x86_fp80, x86_fp80* %19
store x86_fp80 %20, x86_fp80* %10
br label %21
21: ; preds = %41, %4
%22 = load i64, i64* %12
%23 = add i64 %22, 1
store i64 %23, i64* %12
%24 = load i64, i64* %8
%25 = icmp ult i64 %22, %24
br i1 %25, label %26, label %46
26: ; preds = %21
%27 = load i32*, i32** %9
%28 = load x86_fp80, x86_fp80* %10
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %28)
%30 = load i64, i64* %11
%31 = add i64 %30, 1
store i64 %31, i64* %11
%32 = load i64, i64* %8
%33 = icmp ult i64 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %26
%35 = load i32*, i32** %9
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 44)
br label %40
37: ; preds = %26
%38 = load i32*, i32** %9
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %40
40: ; preds = %37, %34
br label %41
41: ; preds = %40
%42 = load x86_fp80*, x86_fp80** %7
%43 = load i64, i64* %12
%44 = getelementptr inbounds x86_fp80, x86_fp80* %42, i64 %43
%45 = load x86_fp80, x86_fp80* %44
store x86_fp80 %45, x86_fp80* %10
br label %21
46: ; preds = %21
%47 = load i32, i32* %5
ret i32 %47
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s[%lu] = [\00"
@.str.1 = [4 x i8] c"%Lf\00"
@.str.3 = [3 x i8] c"]\0A\00"
define i32 @print_objects(i8* %0, x86_fp80* nocapture %1, i64 %2, i32* nocapture %3) {
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0, i64 %2)
%6 = icmp eq i64 %2, 0
br i1 %6, label %23, label %7
7: ; preds = %4, %19
%8 = phi i64 [ %21, %19 ], [ 1, %4 ]
%9 = phi i64 [ %13, %19 ], [ 0, %4 ]
%10 = phi x86_fp80* [ %20, %19 ], [ %1, %4 ]
%11 = load x86_fp80, x86_fp80* %10
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %11)
%13 = add nuw i64 %9, 1
%14 = icmp ult i64 %13, %2
br i1 %14, label %15, label %17
15: ; preds = %7
%16 = tail call i32 @fputc(i32 44, i32* %3)
br label %19
17: ; preds = %7
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i64 2, i64 1, i32* %3)
br label %19
19: ; preds = %15, %17
%20 = getelementptr inbounds x86_fp80, x86_fp80* %1, i64 %8
%21 = add i64 %8, 1
%22 = icmp eq i64 %13, %2
br i1 %22, label %23, label %7
23: ; preds = %19, %4
ret i32 undef
}