#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 compile_state {
  int dummy;
};
struct basic_blocks {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ analyze_idominators(struct compile_state *,
                                       struct basic_blocks *);
int /*<<< orphan*/ analyze_ipdominators(struct compile_state *,
                                        struct basic_blocks *);
int /*<<< orphan*/ setup_basic_blocks(struct compile_state *,
                                      struct basic_blocks *);
void analyze_basic_blocks(struct compile_state *state,
                          struct basic_blocks *bb) {
  setup_basic_blocks(state, bb);
  analyze_idominators(state, bb);
  analyze_ipdominators(state, bb);
}


x86 assembly (clang, -O0):
<analyze_basic_blocks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <setup_basic_blocks@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <analyze_idominators@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <analyze_ipdominators@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<analyze_basic_blocks>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <setup_basic_blocks@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <analyze_idominators@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <analyze_ipdominators@plt>

LLVM IR (-O0):
%struct.compile_state = type { i32 }
%struct.basic_blocks = type { i32 }
define void @analyze_basic_blocks(%struct.compile_state* %0, %struct.basic_blocks* %1) {
%3 = alloca %struct.compile_state*
%4 = alloca %struct.basic_blocks*
store %struct.compile_state* %0, %struct.compile_state** %3
store %struct.basic_blocks* %1, %struct.basic_blocks** %4
%5 = load %struct.compile_state*, %struct.compile_state** %3
%6 = load %struct.basic_blocks*, %struct.basic_blocks** %4
%7 = call i32 @setup_basic_blocks(%struct.compile_state* %5, %struct.basic_blocks* %6)
%8 = load %struct.compile_state*, %struct.compile_state** %3
%9 = load %struct.basic_blocks*, %struct.basic_blocks** %4
%10 = call i32 @analyze_idominators(%struct.compile_state* %8, %struct.basic_blocks* %9)
%11 = load %struct.compile_state*, %struct.compile_state** %3
%12 = load %struct.basic_blocks*, %struct.basic_blocks** %4
%13 = call i32 @analyze_ipdominators(%struct.compile_state* %11, %struct.basic_blocks* %12)
ret void
}

LLVM IR (-O2):
%struct.compile_state = type { i32 }
%struct.basic_blocks = type { i32 }
define void @analyze_basic_blocks(%struct.compile_state* %0, %struct.basic_blocks* %1) {
%3 = tail call i32 @setup_basic_blocks(%struct.compile_state* %0, %struct.basic_blocks* %1)
%4 = tail call i32 @analyze_idominators(%struct.compile_state* %0, %struct.basic_blocks* %1)
%5 = tail call i32 @analyze_ipdominators(%struct.compile_state* %0, %struct.basic_blocks* %1)
ret void
}