#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*/ console_clear();
int get_cloud_max_x();
int get_cloud_max_y();
int get_cloud_max_z();
int get_cloud_min_x();
int get_cloud_min_y();
int get_cloud_min_z();
int points_in_cloud();
int /*<<< orphan*/ printf(char *, ...);
void printPointCloudInfo() {
  console_clear();
  printf("Point cloud information\n");
  printf("  - Size: %d\n", points_in_cloud());
  printf("  - Bounding box:\n"
         "    min world coordinate (%d, %d, %d)\n"
         "    max world coordinate (%d, %d, %d)\n\n",
         get_cloud_min_x(), get_cloud_min_y(), get_cloud_min_z(),
         get_cloud_max_x(), get_cloud_max_y(), get_cloud_max_z());
}


x86 assembly (clang, -O0):
<printPointCloudInfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1050 <console_clear@plt>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <points_in_cloud@plt>
mov    %eax,%esi
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1040 <get_cloud_min_x@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1090 <get_cloud_min_y@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <get_cloud_min_z@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   10b0 <get_cloud_max_x@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <get_cloud_max_y@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <get_cloud_max_z@plt>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%r8d
mov    -0x4(%rbp),%r9d
lea    0xe12(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printPointCloudInfo>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1060 <console_clear@plt>
lea    0xeb4(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1090 <points_in_cloud@plt>
lea    0xe33(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1040 <get_cloud_min_x@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10a0 <get_cloud_min_y@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1030 <get_cloud_min_z@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   10c0 <get_cloud_max_x@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1080 <get_cloud_max_y@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10b0 <get_cloud_max_z@plt>
mov    %eax,(%rsp)
lea    0xdf7(%rip),%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
mov    %ebx,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Point cloud information\0A\00"
@.str.1 = [14 x i8] c" - Size: %d\0A\00"
@.str.2 = [96 x i8] c" - Bounding box:\0A min world coordinate (%d, %d, %d)\0A max world coordinate (%d, %d, %d)\0A\0A\00"
define void @printPointCloudInfo() {
%1 = call i32 (...) @console_clear()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @points_in_cloud()
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @get_cloud_min_x()
%6 = call i32 (...) @get_cloud_min_y()
%7 = call i32 (...) @get_cloud_min_z()
%8 = call i32 (...) @get_cloud_max_x()
%9 = call i32 (...) @get_cloud_max_y()
%10 = call i32 (...) @get_cloud_max_z()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.2, i64 0, i64 0), i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10)
ret void
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c" - Size: %d\0A\00"
@.str.2 = [96 x i8] c" - Bounding box:\0A min world coordinate (%d, %d, %d)\0A max world coordinate (%d, %d, %d)\0A\0A\00"
@str = [24 x i8] c"Point cloud information\00"
define void @printPointCloudInfo() {
%1 = tail call i32 (...) @console_clear()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (...) @points_in_cloud()
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @get_cloud_min_x()
%6 = tail call i32 (...) @get_cloud_min_y()
%7 = tail call i32 (...) @get_cloud_min_z()
%8 = tail call i32 (...) @get_cloud_max_x()
%9 = tail call i32 (...) @get_cloud_max_y()
%10 = tail call i32 (...) @get_cloud_max_z()
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @.str.2, i64 0, i64 0), i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10)
ret void
}