#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 */
scalar_t__ calloc(int, int);
float **set_param_limits(int Nparam) {
  float **param_lim;
  int i;
  param_lim = (float **)calloc(2, sizeof(float *));
  for (i = 0; i < 2; i++)
    param_lim[i] = (float *)calloc(Nparam, sizeof(float));
  param_lim[0][0] = 0.5000;
  param_lim[1][0] = 1.e-5;
  param_lim[0][1] = 0.50000;
  param_lim[1][1] = 1.e-5;
  param_lim[0][2] = 1.0000;
  param_lim[1][2] = 0.2000;
  param_lim[0][3] = 2.50;
  param_lim[1][3] = 0.10;
  param_lim[0][4] = 2.50;
  param_lim[1][4] = 0.10;
  return (param_lim);
}


x86 assembly (clang, -O0):
<set_param_limits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x2,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    1169 <set_param_limits+0x59>
mov    -0x4(%rbp),%edi
mov    $0x4,%esi
call   1030 <calloc@plt>
mov    %rax,%rdx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1135 <set_param_limits+0x25>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movss  0xe9c(%rip),%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movss  0xe84(%rip),%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movss  0xe75(%rip),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movss  0xe5c(%rip),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movss  0xe44(%rip),%xmm0
movss  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movss  0xe2b(%rip),%xmm0
movss  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movss  0xe13(%rip),%xmm0
movss  %xmm0,0xc(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movss  0xdfa(%rip),%xmm0
movss  %xmm0,0xc(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movss  0xdea(%rip),%xmm0
movss  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movss  0xdd1(%rip),%xmm0
movss  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_param_limits>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
mov    $0x2,%edi
mov    $0x8,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    $0x4,%esi
call   1030 <calloc@plt>
mov    %rax,(%rbx)
mov    %ebp,%edi
mov    $0x4,%esi
call   1030 <calloc@plt>
mov    %rax,0x8(%rbx)
mov    (%rbx),%rcx
movl   $0x3f000000,(%rcx)
movl   $0x3727c5ac,(%rax)
movl   $0x3f000000,0x4(%rcx)
movl   $0x3727c5ac,0x4(%rax)
movl   $0x3f800000,0x8(%rcx)
movl   $0x3e4ccccd,0x8(%rax)
movl   $0x40200000,0xc(%rcx)
movl   $0x3dcccccd,0xc(%rax)
movl   $0x40200000,0x10(%rcx)
movl   $0x3dcccccd,0x10(%rax)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define float** @set_param_limits(i32 %0) {
%2 = alloca i32
%3 = alloca float**
%4 = alloca i32
store i32 %0, i32* %2
%5 = call i64 @calloc(i32 2, i32 8)
%6 = inttoptr i64 %5 to float**
store float** %6, float*** %3
store i32 0, i32* %4
br label %7
7: ; preds = %18, %1
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = load i32, i32* %2
%12 = call i64 @calloc(i32 %11, i32 4)
%13 = inttoptr i64 %12 to float*
%14 = load float**, float*** %3
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds float*, float** %14, i64 %16
store float* %13, float** %17
br label %18
18: ; preds = %10
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
br label %7
21: ; preds = %7
%22 = load float**, float*** %3
%23 = getelementptr inbounds float*, float** %22, i64 0
%24 = load float*, float** %23
%25 = getelementptr inbounds float, float* %24, i64 0
store float 5.000000e-01, float* %25
%26 = load float**, float*** %3
%27 = getelementptr inbounds float*, float** %26, i64 1
%28 = load float*, float** %27
%29 = getelementptr inbounds float, float* %28, i64 0
store float 0x3EE4F8B580000000, float* %29
%30 = load float**, float*** %3
%31 = getelementptr inbounds float*, float** %30, i64 0
%32 = load float*, float** %31
%33 = getelementptr inbounds float, float* %32, i64 1
store float 5.000000e-01, float* %33
%34 = load float**, float*** %3
%35 = getelementptr inbounds float*, float** %34, i64 1
%36 = load float*, float** %35
%37 = getelementptr inbounds float, float* %36, i64 1
store float 0x3EE4F8B580000000, float* %37
%38 = load float**, float*** %3
%39 = getelementptr inbounds float*, float** %38, i64 0
%40 = load float*, float** %39
%41 = getelementptr inbounds float, float* %40, i64 2
store float 1.000000e+00, float* %41
%42 = load float**, float*** %3
%43 = getelementptr inbounds float*, float** %42, i64 1
%44 = load float*, float** %43
%45 = getelementptr inbounds float, float* %44, i64 2
store float 0x3FC99999A0000000, float* %45
%46 = load float**, float*** %3
%47 = getelementptr inbounds float*, float** %46, i64 0
%48 = load float*, float** %47
%49 = getelementptr inbounds float, float* %48, i64 3
store float 2.500000e+00, float* %49
%50 = load float**, float*** %3
%51 = getelementptr inbounds float*, float** %50, i64 1
%52 = load float*, float** %51
%53 = getelementptr inbounds float, float* %52, i64 3
store float 0x3FB99999A0000000, float* %53
%54 = load float**, float*** %3
%55 = getelementptr inbounds float*, float** %54, i64 0
%56 = load float*, float** %55
%57 = getelementptr inbounds float, float* %56, i64 4
store float 2.500000e+00, float* %57
%58 = load float**, float*** %3
%59 = getelementptr inbounds float*, float** %58, i64 1
%60 = load float*, float** %59
%61 = getelementptr inbounds float, float* %60, i64 4
store float 0x3FB99999A0000000, float* %61
%62 = load float**, float*** %3
ret float** %62
}

LLVM IR (-O2):
define float** @set_param_limits(i32 %0) {
%2 = tail call i64 @calloc(i32 2, i32 8)
%3 = inttoptr i64 %2 to float**
%4 = tail call i64 @calloc(i32 %0, i32 4)
%5 = inttoptr i64 %4 to float*
store float* %5, float** %3
%6 = tail call i64 @calloc(i32 %0, i32 4)
%7 = inttoptr i64 %6 to float*
%8 = getelementptr inbounds float*, float** %3, i64 1
store float* %7, float** %8
%9 = load float*, float** %3
store float 5.000000e-01, float* %9
store float 0x3EE4F8B580000000, float* %7
%10 = getelementptr inbounds float, float* %9, i64 1
store float 5.000000e-01, float* %10
%11 = getelementptr inbounds float, float* %7, i64 1
store float 0x3EE4F8B580000000, float* %11
%12 = getelementptr inbounds float, float* %9, i64 2
store float 1.000000e+00, float* %12
%13 = getelementptr inbounds float, float* %7, i64 2
store float 0x3FC99999A0000000, float* %13
%14 = getelementptr inbounds float, float* %9, i64 3
store float 2.500000e+00, float* %14
%15 = getelementptr inbounds float, float* %7, i64 3
store float 0x3FB99999A0000000, float* %15
%16 = getelementptr inbounds float, float* %9, i64 4
store float 2.500000e+00, float* %16
%17 = getelementptr inbounds float, float* %7, i64 4
store float 0x3FB99999A0000000, float* %17
ret float** %3
}