#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 bootstrap_state {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ add_file_dependency_rule(struct bootstrap_state *,
                                            unsigned char *, unsigned char *);
int /*<<< orphan*/ add_library_dependency_rule(struct bootstrap_state *,
                                               unsigned char *,
                                               unsigned char *);
int /*<<< orphan*/ add_object_build_rule(struct bootstrap_state *,
                                         unsigned char *, unsigned char *);
void make_build_rules(struct bootstrap_state *state, const char *outfile,
                      const char *infile) {
  add_object_build_rule(state, (unsigned char *)outfile,
                        (unsigned char *)infile);
  add_library_dependency_rule(state, (unsigned char *)outfile,
                              (unsigned char *)infile);
  add_file_dependency_rule(state, (unsigned char *)outfile,
                           (unsigned char *)infile);
}


x86 assembly (clang, -O0):
<make_build_rules>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <add_object_build_rule@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <add_library_dependency_rule@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1050 <add_file_dependency_rule@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_build_rules>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1040 <add_object_build_rule@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <add_library_dependency_rule@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <add_file_dependency_rule@plt>

LLVM IR (-O0):
%struct.bootstrap_state = type { i32 }
define void @make_build_rules(%struct.bootstrap_state* %0, i8* %1, i8* %2) {
%4 = alloca %struct.bootstrap_state*
%5 = alloca i8*
%6 = alloca i8*
store %struct.bootstrap_state* %0, %struct.bootstrap_state** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load %struct.bootstrap_state*, %struct.bootstrap_state** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i32 @add_object_build_rule(%struct.bootstrap_state* %7, i8* %8, i8* %9)
%11 = load %struct.bootstrap_state*, %struct.bootstrap_state** %4
%12 = load i8*, i8** %5
%13 = load i8*, i8** %6
%14 = call i32 @add_library_dependency_rule(%struct.bootstrap_state* %11, i8* %12, i8* %13)
%15 = load %struct.bootstrap_state*, %struct.bootstrap_state** %4
%16 = load i8*, i8** %5
%17 = load i8*, i8** %6
%18 = call i32 @add_file_dependency_rule(%struct.bootstrap_state* %15, i8* %16, i8* %17)
ret void
}

LLVM IR (-O2):
%struct.bootstrap_state = type { i32 }
define void @make_build_rules(%struct.bootstrap_state* %0, i8* %1, i8* %2) {
%4 = tail call i32 @add_object_build_rule(%struct.bootstrap_state* %0, i8* %1, i8* %2)
%5 = tail call i32 @add_library_dependency_rule(%struct.bootstrap_state* %0, i8* %1, i8* %2)
%6 = tail call i32 @add_file_dependency_rule(%struct.bootstrap_state* %0, i8* %1, i8* %2)
ret void
}