#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*/ create_L_U_signals(float *, int, int, int, int, float *,
                                      float *);
void create_L_U_signals_multi(float *q, int num_of_points, int max_dim, int r,
                              float *L, float *U) {
  int curr_dim;
  for (curr_dim = 0; curr_dim < max_dim; curr_dim++) {
    create_L_U_signals(q, num_of_points, curr_dim, max_dim, r, L, U);
  }
}


x86 assembly (clang, -O0):
<create_L_U_signals_multi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1170 <create_L_U_signals_multi+0x60>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x20(%rbp),%r9
mov    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <create_L_U_signals@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1134 <create_L_U_signals_multi+0x24>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_L_U_signals_multi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %edx,%edx
jle    1169 <create_L_U_signals_multi+0x59>
mov    %r8,%r12
mov    %ecx,%ebp
mov    %edx,%r15d
mov    %esi,%r13d
mov    %rdi,%rbx
xor    %r14d,%r14d
mov    %r9,0x10(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %r9,(%rsp)
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %ebp,%r8d
mov    %r12,%r9
call   1030 <create_L_U_signals@plt>
mov    0x10(%rsp),%r9
add    $0x1,%r14d
cmp    %r14d,%r15d
jne    1140 <create_L_U_signals_multi+0x30>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @create_L_U_signals_multi(float* %0, i32 %1, i32 %2, i32 %3, float* %4, float* %5) {
%7 = alloca float*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca float*
%12 = alloca float*
%13 = alloca i32
store float* %0, float** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store float* %4, float** %11
store float* %5, float** %12
store i32 0, i32* %13
br label %14
14: ; preds = %27, %6
%15 = load i32, i32* %13
%16 = load i32, i32* %9
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %30
18: ; preds = %14
%19 = load float*, float** %7
%20 = load i32, i32* %8
%21 = load i32, i32* %13
%22 = load i32, i32* %9
%23 = load i32, i32* %10
%24 = load float*, float** %11
%25 = load float*, float** %12
%26 = call i32 @create_L_U_signals(float* %19, i32 %20, i32 %21, i32 %22, i32 %23, float* %24, float* %25)
br label %27
27: ; preds = %18
%28 = load i32, i32* %13
%29 = add nsw i32 %28, 1
store i32 %29, i32* %13
br label %14
30: ; preds = %14
ret void
}

LLVM IR (-O2):
define void @create_L_U_signals_multi(float* %0, i32 %1, i32 %2, i32 %3, float* %4, float* %5) {
%7 = icmp sgt i32 %2, 0
br i1 %7, label %8, label %13
8: ; preds = %6, %8
%9 = phi i32 [ %11, %8 ], [ 0, %6 ]
%10 = tail call i32 @create_L_U_signals(float* %0, i32 %1, i32 %9, i32 %2, i32 %3, float* %4, float* %5)
%11 = add nuw nsw i32 %9, 1
%12 = icmp eq i32 %11, %2
br i1 %12, label %13, label %8
13: ; preds = %8, %6
ret void
}