#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 *, char *, ...);
void print_output(char filename[], double max_profit) {
  printf("Group Name: %s\n", "KaheKahe kakai");
  printf("Group Members: %s\t%s\t%s\n", "Marcelo Melo", "Bryan Hinton",
         "Carl Mitchell");
  printf("File: %s\tMaximum Profit: %.1f\n", filename, max_profit);
}


x86 assembly (clang, -O0):
<print_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
lea    0xed8(%rip),%rdi
lea    0xee1(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
lea    0xef4(%rip),%rsi
lea    0xefa(%rip),%rdx
lea    0xf00(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
movsd  -0x10(%rbp),%xmm0
lea    0xef7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_output>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %rdi,%rbx
lea    0xedb(%rip),%rdi
lea    0xee4(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0xef7(%rip),%rsi
lea    0xefd(%rip),%rdx
lea    0xf03(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    %rbx,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
add    $0x10,%rsp
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Group Name: %s\0A\00"
@.str.1 = [15 x i8] c"KaheKahe kakai\00"
@.str.2 = [25 x i8] c"Group Members: %s\09%s\09%s\0A\00"
@.str.3 = [13 x i8] c"Marcelo Melo\00"
@.str.4 = [13 x i8] c"Bryan Hinton\00"
@.str.5 = [14 x i8] c"Carl Mitchell\00"
@.str.6 = [31 x i8] c"File: %s\09Maximum Profit: %.1f\0A\00"
define void @print_output(i8* %0, double %1) {
%3 = alloca i8*
%4 = alloca double
store i8* %0, i8** %3
store double %1, double* %4
%5 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = load i8*, i8** %3
%8 = load double, double* %4
%9 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i8* %7, double %8)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"Group Name: %s\0A\00"
@.str.1 = [15 x i8] c"KaheKahe kakai\00"
@.str.2 = [25 x i8] c"Group Members: %s\09%s\09%s\0A\00"
@.str.3 = [13 x i8] c"Marcelo Melo\00"
@.str.4 = [13 x i8] c"Bryan Hinton\00"
@.str.5 = [14 x i8] c"Carl Mitchell\00"
@.str.6 = [31 x i8] c"File: %s\09Maximum Profit: %.1f\0A\00"
define void @print_output(i8* %0, double %1) {
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i8* %0, double %1)
ret void
}