#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 union cochran_config_value {
  int dummy;
} cochran_config_value;
struct cochran_config {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ cochran_config_print_label(struct cochran_config *);
int /*<<< orphan*/ cochran_config_print_value(struct cochran_config *,
                                              union cochran_config_value *);
int /*<<< orphan*/ printf(char *);
void cochran_config_print(struct cochran_config *cfg,
                          union cochran_config_value *value) {
  cochran_config_print_label(cfg);
  printf(": ");
  cochran_config_print_value(cfg, value);
  printf("\n");
}


x86 assembly (clang, -O0):
<cochran_config_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <cochran_config_print_label@plt>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <cochran_config_print_value@plt>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cochran_config_print>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1060 <cochran_config_print_label@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <cochran_config_print_value@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putchar@plt>

LLVM IR (-O0):
%struct.cochran_config = type { i32 }
%union.cochran_config_value = type { i32 }
@.str = [3 x i8] c": \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @cochran_config_print(%struct.cochran_config* %0, %union.cochran_config_value* %1) {
%3 = alloca %struct.cochran_config*
%4 = alloca %union.cochran_config_value*
store %struct.cochran_config* %0, %struct.cochran_config** %3
store %union.cochran_config_value* %1, %union.cochran_config_value** %4
%5 = load %struct.cochran_config*, %struct.cochran_config** %3
%6 = call i32 @cochran_config_print_label(%struct.cochran_config* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = load %struct.cochran_config*, %struct.cochran_config** %3
%9 = load %union.cochran_config_value*, %union.cochran_config_value** %4
%10 = call i32 @cochran_config_print_value(%struct.cochran_config* %8, %union.cochran_config_value* %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.cochran_config = type { i32 }
%union.cochran_config_value = type { i32 }
@.str = [3 x i8] c": \00"
define void @cochran_config_print(%struct.cochran_config* %0, %union.cochran_config_value* %1) {
%3 = tail call i32 @cochran_config_print_label(%struct.cochran_config* %0)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @cochran_config_print_value(%struct.cochran_config* %0, %union.cochran_config_value* %1)
%6 = tail call i32 @putchar(i32 10)
ret void
}