#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 */
struct binary_exponential_buffer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/
add_string_to_binary_exponential_buffer(void *,
                                        struct binary_exponential_buffer *);
void add_include(struct binary_exponential_buffer *output,
                 unsigned char *prefix, unsigned char *filename) {
  add_string_to_binary_exponential_buffer((void *)"#include \"", output);
  add_string_to_binary_exponential_buffer((void *)prefix, output);
  add_string_to_binary_exponential_buffer((void *)filename, output);
  add_string_to_binary_exponential_buffer((void *)"\"\n", output);
}


x86 assembly (clang, -O0):
<add_include>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed1(%rip),%rdi
call   1030 <add_string_to_binary_exponential_buffer@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <add_string_to_binary_exponential_buffer@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <add_string_to_binary_exponential_buffer@plt>
mov    -0x8(%rbp),%rsi
lea    0xeb2(%rip),%rdi
call   1030 <add_string_to_binary_exponential_buffer@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_include>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xedb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <add_string_to_binary_exponential_buffer@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <add_string_to_binary_exponential_buffer@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <add_string_to_binary_exponential_buffer@plt>
lea    0xec1(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <add_string_to_binary_exponential_buffer@plt>

LLVM IR (-O0):
%struct.binary_exponential_buffer = type { i32 }
@.str = [11 x i8] c"#include \22\00"
@.str.1 = [3 x i8] c"\22\0A\00"
define void @add_include(%struct.binary_exponential_buffer* %0, i8* %1, i8* %2) {
%4 = alloca %struct.binary_exponential_buffer*
%5 = alloca i8*
%6 = alloca i8*
store %struct.binary_exponential_buffer* %0, %struct.binary_exponential_buffer** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load %struct.binary_exponential_buffer*, %struct.binary_exponential_buffer** %4
%8 = call i32 @add_string_to_binary_exponential_buffer(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %struct.binary_exponential_buffer* %7)
%9 = load i8*, i8** %5
%10 = load %struct.binary_exponential_buffer*, %struct.binary_exponential_buffer** %4
%11 = call i32 @add_string_to_binary_exponential_buffer(i8* %9, %struct.binary_exponential_buffer* %10)
%12 = load i8*, i8** %6
%13 = load %struct.binary_exponential_buffer*, %struct.binary_exponential_buffer** %4
%14 = call i32 @add_string_to_binary_exponential_buffer(i8* %12, %struct.binary_exponential_buffer* %13)
%15 = load %struct.binary_exponential_buffer*, %struct.binary_exponential_buffer** %4
%16 = call i32 @add_string_to_binary_exponential_buffer(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %struct.binary_exponential_buffer* %15)
ret void
}

LLVM IR (-O2):
%struct.binary_exponential_buffer = type { i32 }
@.str = [11 x i8] c"#include \22\00"
@.str.1 = [3 x i8] c"\22\0A\00"
define void @add_include(%struct.binary_exponential_buffer* %0, i8* %1, i8* %2) {
%4 = tail call i32 @add_string_to_binary_exponential_buffer(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %struct.binary_exponential_buffer* %0)
%5 = tail call i32 @add_string_to_binary_exponential_buffer(i8* %1, %struct.binary_exponential_buffer* %0)
%6 = tail call i32 @add_string_to_binary_exponential_buffer(i8* %2, %struct.binary_exponential_buffer* %0)
%7 = tail call i32 @add_string_to_binary_exponential_buffer(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %struct.binary_exponential_buffer* %0)
ret void
}