#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 */
int /*<<< orphan*/ printf(char *, double, int, int, ...);
double track_angle(int, int);
int track_bbox_bottom(int, int);
int track_bbox_left(int, int);
int track_bbox_right(int, int);
int track_bbox_top(int, int);
scalar_t__ track_confidence(int, int);
scalar_t__ track_major_axis(int, int);
scalar_t__ track_minor_axis(int, int);
int track_size(int, int);
scalar_t__ track_x(int, int);
scalar_t__ track_y(int, int);
void print_blob(int channel, int blob) {
  printf("  Blob(channel=%d, index=%d): size=%d, x=%d, y=%d\n", channel, blob,
         track_size(channel, blob), (int)track_x(channel, blob),
         (int)track_y(channel, blob));
  printf("    confidence=%d, bbox=(%d,%d)-(%d,%d)\n",
         (int)track_confidence(channel, blob), track_bbox_left(channel, blob),
         track_bbox_top(channel, blob), track_bbox_right(channel, blob),
         track_bbox_bottom(channel, blob));
  printf("    angle=%g, major_axis=%d, minor_axis=%d\n",
         track_angle(channel, blob), (int)track_major_axis(channel, blob),
         (int)track_minor_axis(channel, blob));
}


x86 assembly (clang, -O0):
<print_blob>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <track_size@plt>
mov    %eax,-0x38(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1070 <track_x@plt>
mov    %eax,-0x34(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10a0 <track_y@plt>
movsd  -0x48(%rbp),%xmm0
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    %eax,%r8d
lea    0xde3(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10b0 <track_confidence@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <track_bbox_left@plt>
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10e0 <track_bbox_top@plt>
mov    %eax,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1090 <track_bbox_right@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <track_bbox_bottom@plt>
movsd  -0x30(%rbp),%xmm0
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    %eax,%r8d
lea    0xdae(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <track_angle@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10d0 <track_major_axis@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10c0 <track_minor_axis@plt>
movsd  -0x18(%rbp),%xmm0
mov    -0xc(%rbp),%esi
mov    %eax,%edx
lea    0xd96(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_blob>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %esi,%ebx
mov    %edi,%ebp
cvtsi2sd %edi,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1030 <track_size@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   1070 <track_x@plt>
mov    %rax,%r15
mov    %ebp,%edi
mov    %ebx,%esi
call   10a0 <track_y@plt>
lea    0xe02(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %eax,%r8d
mov    $0x1,%al
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   10b0 <track_confidence@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
call   1040 <track_bbox_left@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   10e0 <track_bbox_top@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %ebx,%esi
call   1090 <track_bbox_right@plt>
mov    %eax,%r12d
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <track_bbox_bottom@plt>
lea    0xdd3(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %eax,%r8d
mov    $0x1,%al
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1060 <track_angle@plt>
movsd  %xmm0,0x8(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
call   10d0 <track_major_axis@plt>
mov    %rax,%r14
mov    %ebp,%edi
mov    %ebx,%esi
call   10c0 <track_minor_axis@plt>
lea    0xdb8(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %r14d,%esi
mov    %eax,%edx
mov    $0x1,%al
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <printf@plt>

LLVM IR (-O0):
@.str = [51 x i8] c" Blob(channel=%d, index=%d): size=%d, x=%d, y=%d\0A\00"
@.str.1 = [41 x i8] c" confidence=%d, bbox=(%d,%d)-(%d,%d)\0A\00"
@.str.2 = [44 x i8] c" angle=%g, major_axis=%d, minor_axis=%d\0A\00"
define void @print_blob(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = sitofp i32 %5 to double
%7 = load i32, i32* %4
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = call i32 @track_size(i32 %8, i32 %9)
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i64 @track_x(i32 %11, i32 %12)
%14 = trunc i64 %13 to i32
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = call i64 @track_y(i32 %15, i32 %16)
%18 = trunc i64 %17 to i32
%19 = call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), double %6, i32 %7, i32 %10, i32 %14, i32 %18)
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = call i64 @track_confidence(i32 %20, i32 %21)
%23 = trunc i64 %22 to i32
%24 = sitofp i32 %23 to double
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = call i32 @track_bbox_left(i32 %25, i32 %26)
%28 = load i32, i32* %3
%29 = load i32, i32* %4
%30 = call i32 @track_bbox_top(i32 %28, i32 %29)
%31 = load i32, i32* %3
%32 = load i32, i32* %4
%33 = call i32 @track_bbox_right(i32 %31, i32 %32)
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = call i32 @track_bbox_bottom(i32 %34, i32 %35)
%37 = call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), double %24, i32 %27, i32 %30, i32 %33, i32 %36)
%38 = load i32, i32* %3
%39 = load i32, i32* %4
%40 = call double @track_angle(i32 %38, i32 %39)
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = call i64 @track_major_axis(i32 %41, i32 %42)
%44 = trunc i64 %43 to i32
%45 = load i32, i32* %3
%46 = load i32, i32* %4
%47 = call i64 @track_minor_axis(i32 %45, i32 %46)
%48 = trunc i64 %47 to i32
%49 = call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), double %40, i32 %44, i32 %48)
ret void
}

LLVM IR (-O2):
@.str = [51 x i8] c" Blob(channel=%d, index=%d): size=%d, x=%d, y=%d\0A\00"
@.str.1 = [41 x i8] c" confidence=%d, bbox=(%d,%d)-(%d,%d)\0A\00"
@.str.2 = [44 x i8] c" angle=%g, major_axis=%d, minor_axis=%d\0A\00"
define void @print_blob(i32 %0, i32 %1) {
%3 = sitofp i32 %0 to double
%4 = tail call i32 @track_size(i32 %0, i32 %1)
%5 = tail call i64 @track_x(i32 %0, i32 %1)
%6 = trunc i64 %5 to i32
%7 = tail call i64 @track_y(i32 %0, i32 %1)
%8 = trunc i64 %7 to i32
%9 = tail call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), double %3, i32 %1, i32 %4, i32 %6, i32 %8)
%10 = tail call i64 @track_confidence(i32 %0, i32 %1)
%11 = trunc i64 %10 to i32
%12 = sitofp i32 %11 to double
%13 = tail call i32 @track_bbox_left(i32 %0, i32 %1)
%14 = tail call i32 @track_bbox_top(i32 %0, i32 %1)
%15 = tail call i32 @track_bbox_right(i32 %0, i32 %1)
%16 = tail call i32 @track_bbox_bottom(i32 %0, i32 %1)
%17 = tail call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), double %12, i32 %13, i32 %14, i32 %15, i32 %16)
%18 = tail call double @track_angle(i32 %0, i32 %1)
%19 = tail call i64 @track_major_axis(i32 %0, i32 %1)
%20 = trunc i64 %19 to i32
%21 = tail call i64 @track_minor_axis(i32 %0, i32 %1)
%22 = trunc i64 %21 to i32
%23 = tail call i32 (i8*, double, i32, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), double %18, i32 %20, i32 %22)
ret void
}