#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*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
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);
  printf("\n");
  mpfr_set_d(op1, -4. / 3, MPFR_RNDN);
  all(op1, op2);
  printf("\n");
  mpfr_set_d(op1, 1. / 3, MPFR_RNDN);
  mpfr_set_d(op2, -113. / 10, MPFR_RNDN);
  all(op1, op2);
  printf("\n");
  mpfr_set_d(op1, +0, MPFR_RNDN);
  mpfr_set_d(op2, -1. / 10, MPFR_RNDN);
  all(op1, op2);
  printf("\n");
  mpfr_set_d(op1, -0., MPFR_RNDN);
  mpfr_set_d(op2, -0., 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   1070 <mpfr_inits@plt>
mov    -0x8(%rbp),%edi
mov    0x2e70(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2e5d(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
lea    0xe5a(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    0x2e33(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%esi
call   1040 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
lea    0xe2d(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    0x2e06(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
mov    $0xfffffff5,%esi
call   1040 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
lea    0xded(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    0x2dc6(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2db3(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
lea    0xdb0(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    0x2d89(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2d76(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <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   1070 <mpfr_inits@plt>
mov    0x2e89(%rip),%rbx
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%edx
mov    $0xffffffff,%esi
call   1050 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%edx
mov    $0xfffffff5,%esi
call   1050 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
call   1040 <all@plt>
xor    %edx,%edx
call   1060 <mpfr_clears@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@MPFR_RNDN = global i32 0
@.str = [2 x i8] c"\0A\00"
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, i32 0, i32 %8)
%10 = load i32, i32* %3
%11 = load i32, i32* @MPFR_RNDN
%12 = call i32 @mpfr_set_d(i32 %10, i32 0, i32 %11)
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = call i32 @all(i32 %13, i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = load i32, i32* @MPFR_RNDN
%19 = call i32 @mpfr_set_d(i32 %17, i32 -1, i32 %18)
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = call i32 @all(i32 %20, i32 %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* %2
%25 = load i32, i32* @MPFR_RNDN
%26 = call i32 @mpfr_set_d(i32 %24, i32 0, i32 %25)
%27 = load i32, i32* %3
%28 = load i32, i32* @MPFR_RNDN
%29 = call i32 @mpfr_set_d(i32 %27, i32 -11, i32 %28)
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = call i32 @all(i32 %30, i32 %31)
%33 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%34 = load i32, i32* %2
%35 = load i32, i32* @MPFR_RNDN
%36 = call i32 @mpfr_set_d(i32 %34, i32 0, i32 %35)
%37 = load i32, i32* %3
%38 = load i32, i32* @MPFR_RNDN
%39 = call i32 @mpfr_set_d(i32 %37, i32 0, i32 %38)
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = call i32 @all(i32 %40, i32 %41)
%43 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%44 = load i32, i32* %2
%45 = load i32, i32* @MPFR_RNDN
%46 = call i32 @mpfr_set_d(i32 %44, i32 0, i32 %45)
%47 = load i32, i32* %3
%48 = load i32, i32* @MPFR_RNDN
%49 = call i32 @mpfr_set_d(i32 %47, i32 0, i32 %48)
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = call i32 @all(i32 %50, i32 %51)
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = call i32 @mpfr_clears(i32 %53, i32 %54, 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, i32 0, i32 %2)
%4 = load i32, i32* @MPFR_RNDN
%5 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %4)
%6 = tail call i32 @all(i32 undef, i32 undef)
%7 = tail call i32 @putchar(i32 10)
%8 = load i32, i32* @MPFR_RNDN
%9 = tail call i32 @mpfr_set_d(i32 undef, i32 -1, i32 %8)
%10 = tail call i32 @all(i32 undef, i32 undef)
%11 = tail call i32 @putchar(i32 10)
%12 = load i32, i32* @MPFR_RNDN
%13 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %12)
%14 = load i32, i32* @MPFR_RNDN
%15 = tail call i32 @mpfr_set_d(i32 undef, i32 -11, i32 %14)
%16 = tail call i32 @all(i32 undef, i32 undef)
%17 = tail call i32 @putchar(i32 10)
%18 = load i32, i32* @MPFR_RNDN
%19 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %18)
%20 = load i32, i32* @MPFR_RNDN
%21 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %20)
%22 = tail call i32 @all(i32 undef, i32 undef)
%23 = tail call i32 @putchar(i32 10)
%24 = load i32, i32* @MPFR_RNDN
%25 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %24)
%26 = load i32, i32* @MPFR_RNDN
%27 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %26)
%28 = tail call i32 @all(i32 undef, i32 undef)
%29 = tail call i32 @mpfr_clears(i32 undef, i32 undef, i32* null)
ret i32 0
}