#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 */
struct itstree_node {
  int dummy;
};
struct histogram {
  int dummy;
};

/* Variables and functions */
size_t div_or_zero(size_t, size_t);
size_t histogram_get_all(struct histogram const *);
size_t histogram_get_bin_c(struct histogram const *, int);
int /*<<< orphan*/ itstree_count_priv(struct itstree_node const *, size_t *,
                                      size_t *, size_t *);
int /*<<< orphan*/ itstree_count_real(struct itstree_node const *, size_t *,
                                      size_t *, size_t *);
int /*<<< orphan*/ printf(char *, double, double, double);
void print_recall(const struct itstree_node *itst, const struct histogram *h,
                  size_t numits, size_t lmax) {
  size_t n30, n50, n70, p30, p50, p70, N, T;
  double r30, r50, r70;
  n30 = n50 = n70 = 0;
  p30 = p50 = p70 = 0;
  itstree_count_real(itst, &n30, &n50, &n70);
  itstree_count_priv(itst, &p30, &p50, &p70);
  r30 = div_or_zero(p30, n30);
  r50 = div_or_zero(p50, n50);
  r70 = div_or_zero(p70, n70);
  printf("Confthr: %14.2lf %14.2lf %14.2lf\n", .30, .50, .70);
  printf("Private:   %12lu   %12lu   %12lu\n", p30, p50, p70);
  printf("Real   :   %12lu   %12lu   %12lu\n", n30, n50, n70);
  printf("Recall : %14.2lf %14.2lf %14.2lf\n", r30, r50, r70);
  switch (lmax) {
  case 3:
    N = numits * (numits - 1) * (numits - 1);
    break;
  case 5: {
    size_t x2 = numits * numits;
    size_t x4 = x2 * x2;
    N = 3 * x4 - 23 * x2 * numits + 75 * x2 - 97 * numits;
    N = (N + 42) / 12 * numits;
    break;
  }
  default:
    N = 0;
  }
  T = histogram_get_all(h);
  n30 = N * div_or_zero(histogram_get_bin_c(h, 6), T);
  n50 = N * div_or_zero(histogram_get_bin_c(h, 4), T);
  n70 = N * div_or_zero(histogram_get_bin_c(h, 2), T);
  r30 = div_or_zero(p30, n30);
  r50 = div_or_zero(p50, n50);
  r70 = div_or_zero(p70, n70);
  printf("estReal:   %12lu   %12lu   %12lu\n", n30, n50, n70);
  printf("estRcll: %14.2lf %14.2lf %14.2lf\n", r30, r50, r70);
}


x86 assembly (clang, -O0):
<print_recall>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
call   1080 <itstree_count_real@plt>
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
call   1060 <itstree_count_priv@plt>
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
movaps 0xe12(%rip),%xmm1
movaps %xmm1,-0xb0(%rbp)
punpckldq %xmm1,%xmm0
movapd 0xe0f(%rip),%xmm1
movaps %xmm1,-0xa0(%rbp)
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <div_or_zero@plt>
movaps -0xb0(%rbp),%xmm2
movaps -0xa0(%rbp),%xmm1
movq   %rax,%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1050 <div_or_zero@plt>
movaps -0xb0(%rbp),%xmm2
movaps -0xa0(%rbp),%xmm1
movq   %rax,%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
lea    0xda5(%rip),%rdi
movsd  0xd85(%rip),%xmm0
movsd  0xd85(%rip),%xmm1
movsd  0xd85(%rip),%xmm2
call   1030 <printf@plt>
movaps -0xb0(%rbp),%xmm4
movaps -0xa0(%rbp),%xmm3
movq   -0x40(%rbp),%xmm0
punpckldq %xmm4,%xmm0
subpd  %xmm3,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x48(%rbp),%xmm1
punpckldq %xmm4,%xmm1
subpd  %xmm3,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movq   -0x50(%rbp),%xmm2
punpckldq %xmm4,%xmm2
subpd  %xmm3,%xmm2
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm2
addsd  %xmm3,%xmm2
lea    0xd4d(%rip),%rdi
call   1030 <printf@plt>
movaps -0xb0(%rbp),%xmm4
movaps -0xa0(%rbp),%xmm3
movq   -0x28(%rbp),%xmm0
punpckldq %xmm4,%xmm0
subpd  %xmm3,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x30(%rbp),%xmm1
punpckldq %xmm4,%xmm1
subpd  %xmm3,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movq   -0x38(%rbp),%xmm2
punpckldq %xmm4,%xmm2
subpd  %xmm3,%xmm2
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm2
addsd  %xmm3,%xmm2
lea    0xd0d(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
lea    0xd14(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
sub    $0x3,%rax
je     13bf <print_recall+0x25f>
jmp    13a9 <print_recall+0x249>
mov    -0x90(%rbp),%rax
sub    $0x5,%rax
je     13e4 <print_recall+0x284>
jmp    144a <print_recall+0x2ea>
mov    -0x18(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    $0x1,%rcx
imul   %rcx,%rax
mov    -0x18(%rbp),%rcx
sub    $0x1,%rcx
imul   %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    1452 <print_recall+0x2f2>
mov    -0x18(%rbp),%rax
imul   -0x18(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
imul   -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
imul   $0x3,-0x88(%rbp),%rax
03
imul   $0x17,-0x80(%rbp),%rcx
imul   -0x18(%rbp),%rcx
sub    %rcx,%rax
imul   $0x4b,-0x80(%rbp),%rcx
add    %rcx,%rax
imul   $0x61,-0x18(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
add    $0x2a,%rax
mov    $0xc,%ecx
xor    %edx,%edx
div    %rcx
imul   -0x18(%rbp),%rax
mov    %rax,-0x58(%rbp)
jmp    1452 <print_recall+0x2f2>
movq   $0x0,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <histogram_get_all@plt>
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    -0x60(%rbp),%rsi
call   1050 <div_or_zero@plt>
mov    %rax,%rcx
mov    -0xe8(%rbp),%rax
imul   %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x4,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    -0x60(%rbp),%rsi
call   1050 <div_or_zero@plt>
mov    %rax,%rcx
mov    -0xe0(%rbp),%rax
imul   %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    -0x60(%rbp),%rsi
call   1050 <div_or_zero@plt>
mov    %rax,%rcx
mov    -0xd8(%rbp),%rax
imul   %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
movaps 0xae3(%rip),%xmm1
movaps %xmm1,-0xd0(%rbp)
punpckldq %xmm1,%xmm0
movapd 0xae0(%rip),%xmm1
movaps %xmm1,-0xc0(%rbp)
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <div_or_zero@plt>
movaps -0xd0(%rbp),%xmm2
movaps -0xc0(%rbp),%xmm1
movq   %rax,%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1050 <div_or_zero@plt>
movaps -0xd0(%rbp),%xmm4
movaps -0xc0(%rbp),%xmm3
movq   %rax,%xmm0
punpckldq %xmm4,%xmm0
subpd  %xmm3,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movq   -0x28(%rbp),%xmm0
punpckldq %xmm4,%xmm0
subpd  %xmm3,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x30(%rbp),%xmm1
punpckldq %xmm4,%xmm1
subpd  %xmm3,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movq   -0x38(%rbp),%xmm2
punpckldq %xmm4,%xmm2
subpd  %xmm3,%xmm2
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm2
addsd  %xmm3,%xmm2
lea    0xab6(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
lea    0xabd(%rip),%rdi
call   1030 <printf@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_recall>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rdi,%rbx
movq   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
movq   $0x0,0x18(%rsp)
movq   $0x0,0x20(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
call   1080 <itstree_count_real@plt>
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rbx,%rdi
call   1060 <itstree_count_priv@plt>
mov    0x28(%rsp),%rdi
mov    0x10(%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
punpckldq 0xe0f(%rip),%xmm0
subpd  0xe17(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x50(%rsp)
mov    0x20(%rsp),%rdi
mov    0x8(%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
punpckldq 0xdd9(%rip),%xmm0
subpd  0xde1(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
mov    0x18(%rsp),%rdi
mov    (%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
punpckldq 0xda4(%rip),%xmm0
subpd  0xdac(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x30(%rsp)
lea    0xdbb(%rip),%rdi
movsd  0xd9b(%rip),%xmm0
movsd  0xd9b(%rip),%xmm1
movsd  0xd9b(%rip),%xmm2
call   1030 <printf@plt>
movsd  0x28(%rsp),%xmm1
movapd 0xd58(%rip),%xmm4
unpcklps %xmm4,%xmm1
movapd 0xd5d(%rip),%xmm5
subpd  %xmm5,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  0x20(%rsp),%xmm2
unpcklps %xmm4,%xmm2
subpd  %xmm5,%xmm2
movapd %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
addsd  %xmm2,%xmm1
movsd  0x18(%rsp),%xmm3
unpcklps %xmm4,%xmm3
subpd  %xmm5,%xmm3
movapd %xmm3,%xmm2
unpckhpd %xmm3,%xmm2
addsd  %xmm3,%xmm2
lea    0xd5e(%rip),%rdi
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm1
movapd 0xcf1(%rip),%xmm3
unpcklps %xmm3,%xmm1
movapd 0xcf6(%rip),%xmm5
subpd  %xmm5,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
unpcklps %xmm3,%xmm2
movapd %xmm3,%xmm4
subpd  %xmm5,%xmm2
movapd %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
addsd  %xmm2,%xmm1
movsd  (%rsp),%xmm3
unpcklps %xmm4,%xmm3
subpd  %xmm5,%xmm3
movapd %xmm3,%xmm2
unpckhpd %xmm3,%xmm2
addsd  %xmm3,%xmm2
lea    0xd16(%rip),%rdi
call   1030 <printf@plt>
lea    0xd2c(%rip),%rdi
movaps 0x50(%rsp),%xmm0
movaps 0x40(%rsp),%xmm1
movaps 0x30(%rsp),%xmm2
call   1030 <printf@plt>
cmp    $0x5,%r15
je     13a1 <print_recall+0x241>
cmp    $0x3,%r15
jne    13de <print_recall+0x27e>
lea    -0x1(%r12),%rax
imul   %rax,%r12
imul   %rax,%r12
jmp    13e1 <print_recall+0x281>
mov    %r12,%rax
imul   %r12,%rax
lea    (%rax,%rax,2),%rcx
imul   $0xffffffffffffffe9,%r12,%rdx
imul   $0xffffffffffffff9f,%r12,%rsi
add    %rdx,%rcx
add    $0x4b,%rcx
imul   %rax,%rcx
lea    (%rsi,%rcx,1),%rax
add    $0x2a,%rax
movabs $0xaaaaaaaaaaaaaaab,%rcx
aa aa aa
mul    %rcx
shr    $0x3,%rdx
imul   %rdx,%r12
jmp    13e1 <print_recall+0x281>
xor    %r12d,%r12d
mov    %r14,%rdi
call   1040 <histogram_get_all@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x6,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1050 <div_or_zero@plt>
imul   %r12,%rax
mov    %rax,0x10(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1050 <div_or_zero@plt>
imul   %r12,%rax
mov    %rax,0x8(%rsp)
mov    %r14,%rdi
mov    $0x2,%esi
call   1070 <histogram_get_bin_c@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1050 <div_or_zero@plt>
imul   %r12,%rax
mov    %rax,(%rsp)
mov    0x28(%rsp),%rdi
mov    0x10(%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
movdqa 0xb96(%rip),%xmm1
punpckldq %xmm1,%xmm0
movapd 0xb9a(%rip),%xmm1
subpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x50(%rsp)
mov    0x20(%rsp),%rdi
mov    0x8(%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
punpckldq 0xb58(%rip),%xmm0
subpd  0xb60(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
mov    0x18(%rsp),%rdi
mov    (%rsp),%rsi
call   1050 <div_or_zero@plt>
movq   %rax,%xmm0
movdqa 0xb23(%rip),%xmm3
punpckldq %xmm3,%xmm0
movapd 0xb27(%rip),%xmm5
subpd  %xmm5,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x30(%rsp)
movq   0x10(%rsp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm5,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movq   0x8(%rsp),%xmm2
punpckldq %xmm3,%xmm2
movdqa %xmm3,%xmm4
subpd  %xmm5,%xmm2
movapd %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
addsd  %xmm2,%xmm1
movq   (%rsp),%xmm3
punpckldq %xmm4,%xmm3
subpd  %xmm5,%xmm3
movapd %xmm3,%xmm2
unpckhpd %xmm3,%xmm2
addsd  %xmm3,%xmm2
lea    0xb69(%rip),%rdi
call   1030 <printf@plt>
lea    0xb7f(%rip),%rdi
movaps 0x50(%rsp),%xmm0
movaps 0x40(%rsp),%xmm1
movaps 0x30(%rsp),%xmm2
call   1030 <printf@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.itstree_node = type { i32 }
%struct.histogram = type { i32 }
@.str = [34 x i8] c"Confthr: %14.2lf %14.2lf %14.2lf\0A\00"
@.str.1 = [34 x i8] c"Private: %12lu %12lu %12lu\0A\00"
@.str.2 = [34 x i8] c"Real : %12lu %12lu %12lu\0A\00"
@.str.3 = [34 x i8] c"Recall : %14.2lf %14.2lf %14.2lf\0A\00"
@.str.4 = [34 x i8] c"estReal: %12lu %12lu %12lu\0A\00"
@.str.5 = [34 x i8] c"estRcll: %14.2lf %14.2lf %14.2lf\0A\00"
define void @print_recall(%struct.itstree_node* %0, %struct.histogram* %1, i64 %2, i64 %3) {
%5 = alloca %struct.itstree_node*
%6 = alloca %struct.histogram*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca i64
%21 = alloca i64
store %struct.itstree_node* %0, %struct.itstree_node** %5
store %struct.histogram* %1, %struct.histogram** %6
store i64 %2, i64* %7
store i64 %3, i64* %8
store i64 0, i64* %11
store i64 0, i64* %10
store i64 0, i64* %9
store i64 0, i64* %14
store i64 0, i64* %13
store i64 0, i64* %12
%22 = load %struct.itstree_node*, %struct.itstree_node** %5
%23 = call i32 @itstree_count_real(%struct.itstree_node* %22, i64* %9, i64* %10, i64* %11)
%24 = load %struct.itstree_node*, %struct.itstree_node** %5
%25 = call i32 @itstree_count_priv(%struct.itstree_node* %24, i64* %12, i64* %13, i64* %14)
%26 = load i64, i64* %12
%27 = load i64, i64* %9
%28 = call i64 @div_or_zero(i64 %26, i64 %27)
%29 = uitofp i64 %28 to double
store double %29, double* %17
%30 = load i64, i64* %13
%31 = load i64, i64* %10
%32 = call i64 @div_or_zero(i64 %30, i64 %31)
%33 = uitofp i64 %32 to double
store double %33, double* %18
%34 = load i64, i64* %14
%35 = load i64, i64* %11
%36 = call i64 @div_or_zero(i64 %34, i64 %35)
%37 = uitofp i64 %36 to double
store double %37, double* %19
%38 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double 3.000000e-01, double 5.000000e-01, double 0x3FE6666666666666)
%39 = load i64, i64* %12
%40 = uitofp i64 %39 to double
%41 = load i64, i64* %13
%42 = uitofp i64 %41 to double
%43 = load i64, i64* %14
%44 = uitofp i64 %43 to double
%45 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %40, double %42, double %44)
%46 = load i64, i64* %9
%47 = uitofp i64 %46 to double
%48 = load i64, i64* %10
%49 = uitofp i64 %48 to double
%50 = load i64, i64* %11
%51 = uitofp i64 %50 to double
%52 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %47, double %49, double %51)
%53 = load double, double* %17
%54 = load double, double* %18
%55 = load double, double* %19
%56 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), double %53, double %54, double %55)
%57 = load i64, i64* %8
switch i64 %57, label %91 [
i64 3, label %58
i64 5, label %66
]
58: ; preds = %4
%59 = load i64, i64* %7
%60 = load i64, i64* %7
%61 = sub i64 %60, 1
%62 = mul i64 %59, %61
%63 = load i64, i64* %7
%64 = sub i64 %63, 1
%65 = mul i64 %62, %64
store i64 %65, i64* %15
br label %92
66: ; preds = %4
%67 = load i64, i64* %7
%68 = load i64, i64* %7
%69 = mul i64 %67, %68
store i64 %69, i64* %20
%70 = load i64, i64* %20
%71 = load i64, i64* %20
%72 = mul i64 %70, %71
store i64 %72, i64* %21
%73 = load i64, i64* %21
%74 = mul i64 3, %73
%75 = load i64, i64* %20
%76 = mul i64 23, %75
%77 = load i64, i64* %7
%78 = mul i64 %76, %77
%79 = sub i64 %74, %78
%80 = load i64, i64* %20
%81 = mul i64 75, %80
%82 = add i64 %79, %81
%83 = load i64, i64* %7
%84 = mul i64 97, %83
%85 = sub i64 %82, %84
store i64 %85, i64* %15
%86 = load i64, i64* %15
%87 = add i64 %86, 42
%88 = udiv i64 %87, 12
%89 = load i64, i64* %7
%90 = mul i64 %88, %89
store i64 %90, i64* %15
br label %92
91: ; preds = %4
store i64 0, i64* %15
br label %92
92: ; preds = %91, %66, %58
%93 = load %struct.histogram*, %struct.histogram** %6
%94 = call i64 @histogram_get_all(%struct.histogram* %93)
store i64 %94, i64* %16
%95 = load i64, i64* %15
%96 = load %struct.histogram*, %struct.histogram** %6
%97 = call i64 @histogram_get_bin_c(%struct.histogram* %96, i32 6)
%98 = load i64, i64* %16
%99 = call i64 @div_or_zero(i64 %97, i64 %98)
%100 = mul i64 %95, %99
store i64 %100, i64* %9
%101 = load i64, i64* %15
%102 = load %struct.histogram*, %struct.histogram** %6
%103 = call i64 @histogram_get_bin_c(%struct.histogram* %102, i32 4)
%104 = load i64, i64* %16
%105 = call i64 @div_or_zero(i64 %103, i64 %104)
%106 = mul i64 %101, %105
store i64 %106, i64* %10
%107 = load i64, i64* %15
%108 = load %struct.histogram*, %struct.histogram** %6
%109 = call i64 @histogram_get_bin_c(%struct.histogram* %108, i32 2)
%110 = load i64, i64* %16
%111 = call i64 @div_or_zero(i64 %109, i64 %110)
%112 = mul i64 %107, %111
store i64 %112, i64* %11
%113 = load i64, i64* %12
%114 = load i64, i64* %9
%115 = call i64 @div_or_zero(i64 %113, i64 %114)
%116 = uitofp i64 %115 to double
store double %116, double* %17
%117 = load i64, i64* %13
%118 = load i64, i64* %10
%119 = call i64 @div_or_zero(i64 %117, i64 %118)
%120 = uitofp i64 %119 to double
store double %120, double* %18
%121 = load i64, i64* %14
%122 = load i64, i64* %11
%123 = call i64 @div_or_zero(i64 %121, i64 %122)
%124 = uitofp i64 %123 to double
store double %124, double* %19
%125 = load i64, i64* %9
%126 = uitofp i64 %125 to double
%127 = load i64, i64* %10
%128 = uitofp i64 %127 to double
%129 = load i64, i64* %11
%130 = uitofp i64 %129 to double
%131 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), double %126, double %128, double %130)
%132 = load double, double* %17
%133 = load double, double* %18
%134 = load double, double* %19
%135 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), double %132, double %133, double %134)
ret void
}

LLVM IR (-O2):
%struct.itstree_node = type { i32 }
%struct.histogram = type { i32 }
@.str = [34 x i8] c"Confthr: %14.2lf %14.2lf %14.2lf\0A\00"
@.str.1 = [34 x i8] c"Private: %12lu %12lu %12lu\0A\00"
@.str.2 = [34 x i8] c"Real : %12lu %12lu %12lu\0A\00"
@.str.3 = [34 x i8] c"Recall : %14.2lf %14.2lf %14.2lf\0A\00"
@.str.4 = [34 x i8] c"estReal: %12lu %12lu %12lu\0A\00"
@.str.5 = [34 x i8] c"estRcll: %14.2lf %14.2lf %14.2lf\0A\00"
define void @print_recall(%struct.itstree_node* %0, %struct.histogram* %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = bitcast i64* %5 to i8*
%12 = bitcast i64* %6 to i8*
%13 = bitcast i64* %7 to i8*
%14 = bitcast i64* %8 to i8*
%15 = bitcast i64* %9 to i8*
%16 = bitcast i64* %10 to i8*
store i64 0, i64* %7
store i64 0, i64* %6
store i64 0, i64* %5
store i64 0, i64* %10
store i64 0, i64* %9
store i64 0, i64* %8
%17 = call i32 @itstree_count_real(%struct.itstree_node* %0, i64* %5, i64* %6, i64* %7)
%18 = call i32 @itstree_count_priv(%struct.itstree_node* %0, i64* %8, i64* %9, i64* %10)
%19 = load i64, i64* %8
%20 = load i64, i64* %5
%21 = call i64 @div_or_zero(i64 %19, i64 %20)
%22 = uitofp i64 %21 to double
%23 = load i64, i64* %9
%24 = load i64, i64* %6
%25 = call i64 @div_or_zero(i64 %23, i64 %24)
%26 = uitofp i64 %25 to double
%27 = load i64, i64* %10
%28 = load i64, i64* %7
%29 = call i64 @div_or_zero(i64 %27, i64 %28)
%30 = uitofp i64 %29 to double
%31 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double 3.000000e-01, double 5.000000e-01, double 0x3FE6666666666666)
%32 = load i64, i64* %8
%33 = uitofp i64 %32 to double
%34 = load i64, i64* %9
%35 = uitofp i64 %34 to double
%36 = load i64, i64* %10
%37 = uitofp i64 %36 to double
%38 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %33, double %35, double %37)
%39 = load i64, i64* %5
%40 = uitofp i64 %39 to double
%41 = load i64, i64* %6
%42 = uitofp i64 %41 to double
%43 = load i64, i64* %7
%44 = uitofp i64 %43 to double
%45 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %40, double %42, double %44)
%46 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), double %22, double %26, double %30)
switch i64 %3, label %63 [
i64 3, label %47
i64 5, label %51
]
47: ; preds = %4
%48 = add i64 %2, -1
%49 = mul i64 %48, %2
%50 = mul i64 %49, %48
br label %63
51: ; preds = %4
%52 = mul i64 %2, %2
%53 = mul i64 %52, 3
%54 = mul i64 %2, -23
%55 = mul i64 %2, -97
%56 = add i64 %53, 75
%57 = add i64 %56, %54
%58 = mul i64 %57, %52
%59 = add i64 %55, 42
%60 = add i64 %59, %58
%61 = udiv i64 %60, 12
%62 = mul i64 %61, %2
br label %63
63: ; preds = %4, %51, %47
%64 = phi i64 [ %62, %51 ], [ %50, %47 ], [ 0, %4 ]
%65 = call i64 @histogram_get_all(%struct.histogram* %1)
%66 = call i64 @histogram_get_bin_c(%struct.histogram* %1, i32 6)
%67 = call i64 @div_or_zero(i64 %66, i64 %65)
%68 = mul i64 %67, %64
store i64 %68, i64* %5
%69 = call i64 @histogram_get_bin_c(%struct.histogram* %1, i32 4)
%70 = call i64 @div_or_zero(i64 %69, i64 %65)
%71 = mul i64 %70, %64
store i64 %71, i64* %6
%72 = call i64 @histogram_get_bin_c(%struct.histogram* %1, i32 2)
%73 = call i64 @div_or_zero(i64 %72, i64 %65)
%74 = mul i64 %73, %64
store i64 %74, i64* %7
%75 = load i64, i64* %8
%76 = load i64, i64* %5
%77 = call i64 @div_or_zero(i64 %75, i64 %76)
%78 = uitofp i64 %77 to double
%79 = load i64, i64* %9
%80 = load i64, i64* %6
%81 = call i64 @div_or_zero(i64 %79, i64 %80)
%82 = uitofp i64 %81 to double
%83 = load i64, i64* %10
%84 = load i64, i64* %7
%85 = call i64 @div_or_zero(i64 %83, i64 %84)
%86 = uitofp i64 %85 to double
%87 = load i64, i64* %5
%88 = uitofp i64 %87 to double
%89 = load i64, i64* %6
%90 = uitofp i64 %89 to double
%91 = load i64, i64* %7
%92 = uitofp i64 %91 to double
%93 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), double %88, double %90, double %92)
%94 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), double %78, double %82, double %86)
ret void
}