#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 int uint;

/* Variables and functions */
int /*<<< orphan*/ dGdp_non_gc_penalty_pseq(double **, int, int, double **);
int /*<<< orphan*/ dGdp_stack_pseq(double **, int, int, int, int, double **);
void dGdp_bulgeloop_pseq(double **p, uint size, uint i1, uint j1, uint i2,
                         uint j2, double **dGdp) {
  if (size == 1) {
    dGdp_stack_pseq(p, i1, j1, i2, j2, dGdp);
  } else {
    dGdp_non_gc_penalty_pseq(p, i1, j1, dGdp);
    dGdp_non_gc_penalty_pseq(p, j2, i2, dGdp);
  }
}


x86 assembly (clang, -O0):
<dGdp_bulgeloop_pseq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
cmpl   $0x1,-0xc(%rbp)
jne    116a <dGdp_bulgeloop_pseq+0x4a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    0x10(%rbp),%r9
call   1040 <dGdp_stack_pseq@plt>
jmp    1190 <dGdp_bulgeloop_pseq+0x70>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    0x10(%rbp),%rcx
call   1030 <dGdp_non_gc_penalty_pseq@plt>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    0x10(%rbp),%rcx
call   1030 <dGdp_non_gc_penalty_pseq@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dGdp_bulgeloop_pseq>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %rdi,%rbp
mov    0x30(%rsp),%rbx
cmp    $0x1,%esi
jne    1159 <dGdp_bulgeloop_pseq+0x39>
mov    %rbp,%rdi
mov    %edx,%esi
mov    %ecx,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    %rbx,%r9
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <dGdp_stack_pseq@plt>
mov    %rbp,%rdi
mov    %edx,%esi
mov    %ecx,%edx
mov    %rbx,%rcx
call   1030 <dGdp_non_gc_penalty_pseq@plt>
mov    %rbp,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <dGdp_non_gc_penalty_pseq@plt>

LLVM IR (-O0):
define void @dGdp_bulgeloop_pseq(double** %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, double** %6) {
%8 = alloca double**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double**
store double** %0, double*** %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store double** %6, double*** %14
%15 = load i32, i32* %9
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %25
17: ; preds = %7
%18 = load double**, double*** %8
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load i32, i32* %13
%23 = load double**, double*** %14
%24 = call i32 @dGdp_stack_pseq(double** %18, i32 %19, i32 %20, i32 %21, i32 %22, double** %23)
br label %36
25: ; preds = %7
%26 = load double**, double*** %8
%27 = load i32, i32* %10
%28 = load i32, i32* %11
%29 = load double**, double*** %14
%30 = call i32 @dGdp_non_gc_penalty_pseq(double** %26, i32 %27, i32 %28, double** %29)
%31 = load double**, double*** %8
%32 = load i32, i32* %13
%33 = load i32, i32* %12
%34 = load double**, double*** %14
%35 = call i32 @dGdp_non_gc_penalty_pseq(double** %31, i32 %32, i32 %33, double** %34)
br label %36
36: ; preds = %25, %17
ret void
}

LLVM IR (-O2):
define void @dGdp_bulgeloop_pseq(double** %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, double** %6) {
%8 = icmp eq i32 %1, 1
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 @dGdp_stack_pseq(double** %0, i32 %2, i32 %3, i32 %4, i32 %5, double** %6)
br label %14
11: ; preds = %7
%12 = tail call i32 @dGdp_non_gc_penalty_pseq(double** %0, i32 %2, i32 %3, double** %6)
%13 = tail call i32 @dGdp_non_gc_penalty_pseq(double** %0, i32 %5, i32 %4, double** %6)
br label %14
14: ; preds = %11, %9
ret void
}