#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 */
typedef int /*<<< orphan*/ mpfr_t;

/* Variables and functions */
int /*<<< orphan*/ MPFR_RNDN;
int /*<<< orphan*/ all(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_clears(int /*<<< orphan*/, int /*<<< orphan*/,
                               int /*<<< orphan*/ *);
int /*<<< orphan*/ mpfr_inits(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/ *);
int /*<<< orphan*/ mpfr_set_d(int /*<<< orphan*/, double, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_set_inf(int /*<<< orphan*/, int);
int /*<<< orphan*/ mpfr_set_nan(int /*<<< orphan*/);
int main() {
  mpfr_t op1, op2;
  mpfr_inits(op1, op2, NULL);
  mpfr_set_d(op1, 1. / 3, MPFR_RNDN);
  mpfr_set_d(op2, 1. / 10, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_d(op1, 876.543 / 3.2, MPFR_RNDN);
  mpfr_set_d(op2, 123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_d(op1, -876.543 / 3.2, MPFR_RNDN);
  mpfr_set_d(op2, 123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_d(op1, -876.543 / 3.2, MPFR_RNDN);
  mpfr_set_d(op2, -123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_d(op1, 876.543 / 3.2, MPFR_RNDN);
  mpfr_set_d(op2, -123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_inf(op1, 1);
  mpfr_set_d(op2, -123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_set_nan(op1);
  mpfr_set_d(op2, -123.456 / 2.1, MPFR_RNDN);
  all(op1, op2);
  mpfr_clears(op1, op2, NULL);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edx
call   1080 <mpfr_inits@plt>
mov    -0x8(%rbp),%edi
mov    0x2e60(%rip),%rax
mov    (%rax),%esi
movsd  0xe96(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
movsd  0xe75(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    0x2e23(%rip),%rax
mov    (%rax),%esi
movsd  0xe39(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2e0a(%rip),%rax
mov    (%rax),%esi
movsd  0xe30(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
movsd  0xe04(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
movsd  0xdf3(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    0x2da9(%rip),%rax
mov    (%rax),%esi
movsd  0xdc7(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2d90(%rip),%rax
mov    (%rax),%esi
movsd  0xd9e(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    0x2d6c(%rip),%rax
mov    (%rax),%esi
movsd  0xd82(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2d53(%rip),%rax
mov    (%rax),%esi
movsd  0xd61(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1070 <mpfr_set_inf@plt>
mov    -0xc(%rbp),%edi
mov    0x2d22(%rip),%rax
mov    (%rax),%esi
movsd  0xd30(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
call   1040 <mpfr_set_nan@plt>
mov    -0xc(%rbp),%edi
mov    0x2cf6(%rip),%rax
mov    (%rax),%esi
movsd  0xd04(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edx
call   1060 <mpfr_clears@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edx,%edx
call   1080 <mpfr_inits@plt>
mov    0x2e79(%rip),%rbx
mov    (%rbx),%esi
movsd  0xe87(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%esi
movsd  0xe80(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
mov    (%rbx),%esi
movsd  0xe74(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%esi
movsd  0xe6d(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
mov    (%rbx),%esi
movsd  0xe61(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%esi
movsd  0xe4a(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
mov    (%rbx),%esi
movsd  0xe3e(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%esi
movsd  0xe37(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
mov    (%rbx),%esi
movsd  0xe0b(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%esi
movsd  0xe14(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
mov    $0x1,%esi
call   1070 <mpfr_set_inf@plt>
mov    (%rbx),%esi
movsd  0xdf6(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
call   1040 <mpfr_set_nan@plt>
mov    (%rbx),%esi
movsd  0xddd(%rip),%xmm0
call   1050 <mpfr_set_d@plt>
call   1030 <all@plt>
xor    %edx,%edx
call   1060 <mpfr_clears@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@MPFR_RNDN = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = call i32 @mpfr_inits(i32 %4, i32 %5, i32* null)
%7 = load i32, i32* %2
%8 = load i32, i32* @MPFR_RNDN
%9 = call i32 @mpfr_set_d(i32 %7, double 0x3FD5555555555555, i32 %8)
%10 = load i32, i32* %3
%11 = load i32, i32* @MPFR_RNDN
%12 = call i32 @mpfr_set_d(i32 %10, double 1.000000e-01, i32 %11)
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = call i32 @all(i32 %13, i32 %14)
%16 = load i32, i32* %2
%17 = load i32, i32* @MPFR_RNDN
%18 = call i32 @mpfr_set_d(i32 %16, double 0x40711EB70A3D70A4, i32 %17)
%19 = load i32, i32* %3
%20 = load i32, i32* @MPFR_RNDN
%21 = call i32 @mpfr_set_d(i32 %19, double 0x404D64EFE898231C, i32 %20)
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = call i32 @all(i32 %22, i32 %23)
%25 = load i32, i32* %2
%26 = load i32, i32* @MPFR_RNDN
%27 = call i32 @mpfr_set_d(i32 %25, double 0xC0711EB70A3D70A4, i32 %26)
%28 = load i32, i32* %3
%29 = load i32, i32* @MPFR_RNDN
%30 = call i32 @mpfr_set_d(i32 %28, double 0x404D64EFE898231C, i32 %29)
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = call i32 @all(i32 %31, i32 %32)
%34 = load i32, i32* %2
%35 = load i32, i32* @MPFR_RNDN
%36 = call i32 @mpfr_set_d(i32 %34, double 0xC0711EB70A3D70A4, i32 %35)
%37 = load i32, i32* %3
%38 = load i32, i32* @MPFR_RNDN
%39 = call i32 @mpfr_set_d(i32 %37, double 0xC04D64EFE898231C, i32 %38)
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = call i32 @all(i32 %40, i32 %41)
%43 = load i32, i32* %2
%44 = load i32, i32* @MPFR_RNDN
%45 = call i32 @mpfr_set_d(i32 %43, double 0x40711EB70A3D70A4, i32 %44)
%46 = load i32, i32* %3
%47 = load i32, i32* @MPFR_RNDN
%48 = call i32 @mpfr_set_d(i32 %46, double 0xC04D64EFE898231C, i32 %47)
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = call i32 @all(i32 %49, i32 %50)
%52 = load i32, i32* %2
%53 = call i32 @mpfr_set_inf(i32 %52, i32 1)
%54 = load i32, i32* %3
%55 = load i32, i32* @MPFR_RNDN
%56 = call i32 @mpfr_set_d(i32 %54, double 0xC04D64EFE898231C, i32 %55)
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = call i32 @all(i32 %57, i32 %58)
%60 = load i32, i32* %2
%61 = call i32 @mpfr_set_nan(i32 %60)
%62 = load i32, i32* %3
%63 = load i32, i32* @MPFR_RNDN
%64 = call i32 @mpfr_set_d(i32 %62, double 0xC04D64EFE898231C, i32 %63)
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = call i32 @all(i32 %65, i32 %66)
%68 = load i32, i32* %2
%69 = load i32, i32* %3
%70 = call i32 @mpfr_clears(i32 %68, i32 %69, i32* null)
ret i32 0
}

LLVM IR (-O2):
@MPFR_RNDN = global i32 0
define i32 @main() {
%1 = tail call i32 @mpfr_inits(i32 undef, i32 undef, i32* null)
%2 = load i32, i32* @MPFR_RNDN
%3 = tail call i32 @mpfr_set_d(i32 undef, double 0x3FD5555555555555, i32 %2)
%4 = load i32, i32* @MPFR_RNDN
%5 = tail call i32 @mpfr_set_d(i32 undef, double 1.000000e-01, i32 %4)
%6 = tail call i32 @all(i32 undef, i32 undef)
%7 = load i32, i32* @MPFR_RNDN
%8 = tail call i32 @mpfr_set_d(i32 undef, double 0x40711EB70A3D70A4, i32 %7)
%9 = load i32, i32* @MPFR_RNDN
%10 = tail call i32 @mpfr_set_d(i32 undef, double 0x404D64EFE898231C, i32 %9)
%11 = tail call i32 @all(i32 undef, i32 undef)
%12 = load i32, i32* @MPFR_RNDN
%13 = tail call i32 @mpfr_set_d(i32 undef, double 0xC0711EB70A3D70A4, i32 %12)
%14 = load i32, i32* @MPFR_RNDN
%15 = tail call i32 @mpfr_set_d(i32 undef, double 0x404D64EFE898231C, i32 %14)
%16 = tail call i32 @all(i32 undef, i32 undef)
%17 = load i32, i32* @MPFR_RNDN
%18 = tail call i32 @mpfr_set_d(i32 undef, double 0xC0711EB70A3D70A4, i32 %17)
%19 = load i32, i32* @MPFR_RNDN
%20 = tail call i32 @mpfr_set_d(i32 undef, double 0xC04D64EFE898231C, i32 %19)
%21 = tail call i32 @all(i32 undef, i32 undef)
%22 = load i32, i32* @MPFR_RNDN
%23 = tail call i32 @mpfr_set_d(i32 undef, double 0x40711EB70A3D70A4, i32 %22)
%24 = load i32, i32* @MPFR_RNDN
%25 = tail call i32 @mpfr_set_d(i32 undef, double 0xC04D64EFE898231C, i32 %24)
%26 = tail call i32 @all(i32 undef, i32 undef)
%27 = tail call i32 @mpfr_set_inf(i32 undef, i32 1)
%28 = load i32, i32* @MPFR_RNDN
%29 = tail call i32 @mpfr_set_d(i32 undef, double 0xC04D64EFE898231C, i32 %28)
%30 = tail call i32 @all(i32 undef, i32 undef)
%31 = tail call i32 @mpfr_set_nan(i32 undef)
%32 = load i32, i32* @MPFR_RNDN
%33 = tail call i32 @mpfr_set_d(i32 undef, double 0xC04D64EFE898231C, i32 %32)
%34 = tail call i32 @all(i32 undef, i32 undef)
%35 = tail call i32 @mpfr_clears(i32 undef, i32 undef, i32* null)
ret i32 0
}