#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 _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int standard_deflate(int maxitr, int maxdef, double tolerr, double tolres,
                     double tolrnk) {
  int fail;
  double tols[3];
  tols[0] = tolerr;
  tols[1] = tolres;
  tols[2] = tolrnk;
  fail = _ada_use_c2phc4c(196, &maxitr, &maxdef, tols, 0);
  return fail;
}


x86 assembly (clang, -O0):
<standard_deflate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    -0x40(%rbp),%rcx
mov    $0xc4,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_deflate>:
sub    $0x28,%rsp
mov    %edi,0xc(%rsp)
mov    %esi,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  %xmm2,0x20(%rsp)
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    $0xc4,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @standard_deflate(i32 %0, i32 %1, double %2, double %3, double %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca [3 x double]
store i32 %0, i32* %6
store i32 %1, i32* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
%13 = load double, double* %8
%14 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
store double %13, double* %14
%15 = load double, double* %9
%16 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 1
store double %15, double* %16
%17 = load double, double* %10
%18 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
store double %17, double* %18
%19 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%20 = call i32 @_ada_use_c2phc4c(i32 196, i32* %6, i32* %7, double* %19, i32 0)
store i32 %20, i32* %11
%21 = load i32, i32* %11
ret i32 %21
}

LLVM IR (-O2):
define i32 @standard_deflate(i32 %0, i32 %1, double %2, double %3, double %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca [3 x double]
store i32 %0, i32* %6
store i32 %1, i32* %7
%9 = bitcast [3 x double]* %8 to i8*
%10 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
store double %2, double* %10
%11 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 1
store double %3, double* %11
%12 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 2
store double %4, double* %12
%13 = call i32 @_ada_use_c2phc4c(i32 196, i32* %6, i32* %7, double* %10, i32 0)
ret i32 %13
}