void initializations(design) struct Design *design;
{
  void init_locations(), init_bounds(), init_overlaps(), init_weights();
  void init_heat_param();
  printf("Initializing locations.\n\n");
  init_locations(design);
  printf("Initializing box bounds.\n\n");
  init_bounds(design);
  printf("Initializing overlaps.\n\n");
  init_overlaps(design);
  printf("Initializing weights.\n\n");
  init_weights(design);
  printf("Initializing heat parameters.\n\n");
  init_heat_param(design);
}


x86 assembly (clang, -O0):
<initializations>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <init_locations@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1070 <init_bounds@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1080 <init_overlaps@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1050 <init_weights@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <init_heat_param@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initializations>:
push   %rbx
mov    %rdi,%rbx
lea    0xe95(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <init_locations@plt>
lea    0xe98(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <init_bounds@plt>
lea    0xe9c(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <init_overlaps@plt>
lea    0xe9e(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <init_weights@plt>
lea    0xe9f(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <init_heat_param@plt>

LLVM IR (-O0):
%struct.Design = type opaque
@.str = [26 x i8] c"Initializing locations.\0A\0A\00"
@.str.1 = [27 x i8] c"Initializing box bounds.\0A\0A\00"
@.str.2 = [25 x i8] c"Initializing overlaps.\0A\0A\00"
@.str.3 = [24 x i8] c"Initializing weights.\0A\0A\00"
@.str.4 = [32 x i8] c"Initializing heat parameters.\0A\0A\00"
define void @initializations(%struct.Design* %0) {
%2 = alloca %struct.Design*
store %struct.Design* %0, %struct.Design** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = load %struct.Design*, %struct.Design** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%6 = load %struct.Design*, %struct.Design** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%8 = load %struct.Design*, %struct.Design** %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%10 = load %struct.Design*, %struct.Design** %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%12 = load %struct.Design*, %struct.Design** %2
ret void
}

LLVM IR (-O2):
%struct.Design = type opaque
@str = [25 x i8] c"Initializing locations.\0A\00"
@str.5 = [26 x i8] c"Initializing box bounds.\0A\00"
@str.6 = [24 x i8] c"Initializing overlaps.\0A\00"
@str.7 = [23 x i8] c"Initializing weights.\0A\00"
@str.8 = [31 x i8] c"Initializing heat parameters.\0A\00"
define void @initializations(%struct.Design* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
tail call void (%struct.Design*, ...) bitcast (void (...)* @init_locations to void (%struct.Design*, ...)*)(%struct.Design* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.5, i64 0, i64 0))
tail call void (%struct.Design*, ...) bitcast (void (...)* @init_bounds to void (%struct.Design*, ...)*)(%struct.Design* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.6, i64 0, i64 0))
tail call void (%struct.Design*, ...) bitcast (void (...)* @init_overlaps to void (%struct.Design*, ...)*)(%struct.Design* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.7, i64 0, i64 0))
tail call void (%struct.Design*, ...) bitcast (void (...)* @init_weights to void (%struct.Design*, ...)*)(%struct.Design* %0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.8, i64 0, i64 0))
tail call void (%struct.Design*, ...) bitcast (void (...)* @init_heat_param to void (%struct.Design*, ...)*)(%struct.Design* %0)
ret void
}