#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*/ cov_arr_log(long double *, int, char *, char *);
int /*<<< orphan*/ cov_log(char *, char *, int, long double);
void cov_arr_spec_log_(long double *delta, int *count, long double **lds) {
  cov_arr_log(*lds, *count, "ideal", "spec.cov");
  cov_log("delta", "spec.cov", 1, *delta);
}


x86 assembly (clang, -O0):
<cov_arr_spec_log_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdx
lea    0xeb7(%rip),%rcx
call   1030 <cov_arr_log@plt>
mov    -0x8(%rbp),%rax
fldt   (%rax)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xea9(%rip),%rdi
lea    0xe99(%rip),%rsi
mov    $0x1,%edx
call   1040 <cov_log@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cov_arr_spec_log_>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
mov    (%rdx),%rdi
mov    (%rsi),%esi
lea    0xeca(%rip),%rdx
lea    0xec9(%rip),%r14
mov    %r14,%rcx
call   1030 <cov_arr_log@plt>
fldt   (%rbx)
fstpt  (%rsp)
lea    0xebe(%rip),%rdi
mov    %r14,%rsi
mov    $0x1,%edx
call   1040 <cov_log@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"ideal\00"
@.str.1 = [9 x i8] c"spec.cov\00"
@.str.2 = [6 x i8] c"delta\00"
define void @cov_arr_spec_log_(x86_fp80* %0, i32* %1, x86_fp80** %2) {
%4 = alloca x86_fp80*
%5 = alloca i32*
%6 = alloca x86_fp80**
store x86_fp80* %0, x86_fp80** %4
store i32* %1, i32** %5
store x86_fp80** %2, x86_fp80*** %6
%7 = load x86_fp80**, x86_fp80*** %6
%8 = load x86_fp80*, x86_fp80** %7
%9 = load i32*, i32** %5
%10 = load i32, i32* %9
%11 = call i32 @cov_arr_log(x86_fp80* %8, i32 %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%12 = load x86_fp80*, x86_fp80** %4
%13 = load x86_fp80, x86_fp80* %12
%14 = call i32 @cov_log(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 1, x86_fp80 %13)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"ideal\00"
@.str.1 = [9 x i8] c"spec.cov\00"
@.str.2 = [6 x i8] c"delta\00"
define void @cov_arr_spec_log_(x86_fp80* nocapture %0, i32* nocapture %1, x86_fp80** nocapture %2) {
%4 = load x86_fp80*, x86_fp80** %2
%5 = load i32, i32* %1
%6 = tail call i32 @cov_arr_log(x86_fp80* %4, i32 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%7 = load x86_fp80, x86_fp80* %0
%8 = tail call i32 @cov_log(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 1, x86_fp80 %7)
ret void
}