#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_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_init(int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_set_d(int /*<<< orphan*/, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main() {
  {
    mpfr_t op1;
    mpfr_init(op1);
    mpfr_t op2;
    mpfr_init(op2);
    mpfr_set_d(op1, 1. / 3, MPFR_RNDN);
    mpfr_set_d(op2, 1. / 10, MPFR_RNDN);
    all(op1, op2);
    printf("\n");
    mpfr_clear(op1);
    mpfr_clear(op2);
  };
  {
    mpfr_t op1;
    mpfr_init(op1);
    mpfr_t op2;
    mpfr_init(op2);
    mpfr_set_d(op1, -4. / 3, MPFR_RNDN);
    mpfr_set_d(op2, 1. / 10, MPFR_RNDN);
    all(op1, op2);
    printf("\n");
    mpfr_clear(op1);
    mpfr_clear(op2);
  };
  {
    mpfr_t op1;
    mpfr_init(op1);
    mpfr_t op2;
    mpfr_init(op2);
    mpfr_set_d(op1, 1. / 3, MPFR_RNDN);
    mpfr_set_d(op2, -113. / 10, MPFR_RNDN);
    all(op1, op2);
    printf("\n");
    mpfr_clear(op1);
    mpfr_clear(op2);
  };
  {
    mpfr_t op1;
    mpfr_init(op1);
    mpfr_t op2;
    mpfr_init(op2);
    mpfr_set_d(op1, +0., MPFR_RNDN);
    mpfr_set_d(op2, -1. / 10, MPFR_RNDN);
    all(op1, op2);
    printf("\n");
    mpfr_clear(op1);
    mpfr_clear(op2);
  };
  {
    mpfr_t op1;
    mpfr_init(op1);
    mpfr_t op2;
    mpfr_init(op2);
    mpfr_set_d(op1, -0., MPFR_RNDN);
    mpfr_set_d(op2, -0., MPFR_RNDN);
    all(op1, op2);
    printf("\n");
    mpfr_clear(op1);
    mpfr_clear(op2);
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0xc(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x8(%rbp),%edi
mov    0x2e6f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0xc(%rbp),%edi
mov    0x2e5c(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <all@plt>
lea    0xe59(%rip),%rdi
call   1060 <printf@plt>
mov    -0x8(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0xc(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x10(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x14(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x10(%rbp),%edi
mov    0x2e12(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x14(%rbp),%edi
mov    0x2dfc(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1030 <all@plt>
lea    0xdf9(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x14(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x18(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x1c(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x18(%rbp),%edi
mov    0x2db2(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x1c(%rbp),%edi
mov    0x2d9f(%rip),%rax
mov    (%rax),%edx
mov    $0xfffffff5,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1030 <all@plt>
lea    0xd99(%rip),%rdi
call   1060 <printf@plt>
mov    -0x18(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x1c(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x20(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x24(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x20(%rbp),%edi
mov    0x2d52(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x24(%rbp),%edi
mov    0x2d3f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x20(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1030 <all@plt>
lea    0xd3c(%rip),%rdi
call   1060 <printf@plt>
mov    -0x20(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x24(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x28(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x2c(%rbp),%edi
call   1040 <mpfr_init@plt>
mov    -0x28(%rbp),%edi
mov    0x2cf5(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x2c(%rbp),%edi
mov    0x2ce2(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <mpfr_set_d@plt>
mov    -0x28(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1030 <all@plt>
lea    0xcdf(%rip),%rdi
call   1060 <printf@plt>
mov    -0x28(%rbp),%edi
call   1070 <mpfr_clear@plt>
mov    -0x2c(%rbp),%edi
call   1070 <mpfr_clear@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
call   1050 <mpfr_init@plt>
call   1050 <mpfr_init@plt>
mov    0x2e86(%rip),%rbx
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
call   1070 <mpfr_clear@plt>
call   1070 <mpfr_clear@plt>
call   1050 <mpfr_init@plt>
call   1050 <mpfr_init@plt>
mov    (%rbx),%edx
mov    $0xffffffff,%esi
call   1060 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
call   1070 <mpfr_clear@plt>
call   1070 <mpfr_clear@plt>
call   1050 <mpfr_init@plt>
call   1050 <mpfr_init@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
mov    (%rbx),%edx
mov    $0xfffffff5,%esi
call   1060 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
call   1070 <mpfr_clear@plt>
call   1070 <mpfr_clear@plt>
call   1050 <mpfr_init@plt>
call   1050 <mpfr_init@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
call   1070 <mpfr_clear@plt>
call   1070 <mpfr_clear@plt>
call   1050 <mpfr_init@plt>
call   1050 <mpfr_init@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
mov    (%rbx),%edx
xor    %esi,%esi
call   1060 <mpfr_set_d@plt>
call   1040 <all@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
call   1070 <mpfr_clear@plt>
call   1070 <mpfr_clear@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
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
%12 = load i32, i32* %2
%13 = call i32 @mpfr_init(i32 %12)
%14 = load i32, i32* %3
%15 = call i32 @mpfr_init(i32 %14)
%16 = load i32, i32* %2
%17 = load i32, i32* @MPFR_RNDN
%18 = call i32 @mpfr_set_d(i32 %16, i32 0, i32 %17)
%19 = load i32, i32* %3
%20 = load i32, i32* @MPFR_RNDN
%21 = call i32 @mpfr_set_d(i32 %19, i32 0, i32 %20)
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = call i32 @all(i32 %22, i32 %23)
%25 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%26 = load i32, i32* %2
%27 = call i32 @mpfr_clear(i32 %26)
%28 = load i32, i32* %3
%29 = call i32 @mpfr_clear(i32 %28)
%30 = load i32, i32* %4
%31 = call i32 @mpfr_init(i32 %30)
%32 = load i32, i32* %5
%33 = call i32 @mpfr_init(i32 %32)
%34 = load i32, i32* %4
%35 = load i32, i32* @MPFR_RNDN
%36 = call i32 @mpfr_set_d(i32 %34, i32 -1, i32 %35)
%37 = load i32, i32* %5
%38 = load i32, i32* @MPFR_RNDN
%39 = call i32 @mpfr_set_d(i32 %37, i32 0, i32 %38)
%40 = load i32, i32* %4
%41 = load i32, i32* %5
%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* %4
%45 = call i32 @mpfr_clear(i32 %44)
%46 = load i32, i32* %5
%47 = call i32 @mpfr_clear(i32 %46)
%48 = load i32, i32* %6
%49 = call i32 @mpfr_init(i32 %48)
%50 = load i32, i32* %7
%51 = call i32 @mpfr_init(i32 %50)
%52 = load i32, i32* %6
%53 = load i32, i32* @MPFR_RNDN
%54 = call i32 @mpfr_set_d(i32 %52, i32 0, i32 %53)
%55 = load i32, i32* %7
%56 = load i32, i32* @MPFR_RNDN
%57 = call i32 @mpfr_set_d(i32 %55, i32 -11, i32 %56)
%58 = load i32, i32* %6
%59 = load i32, i32* %7
%60 = call i32 @all(i32 %58, i32 %59)
%61 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%62 = load i32, i32* %6
%63 = call i32 @mpfr_clear(i32 %62)
%64 = load i32, i32* %7
%65 = call i32 @mpfr_clear(i32 %64)
%66 = load i32, i32* %8
%67 = call i32 @mpfr_init(i32 %66)
%68 = load i32, i32* %9
%69 = call i32 @mpfr_init(i32 %68)
%70 = load i32, i32* %8
%71 = load i32, i32* @MPFR_RNDN
%72 = call i32 @mpfr_set_d(i32 %70, i32 0, i32 %71)
%73 = load i32, i32* %9
%74 = load i32, i32* @MPFR_RNDN
%75 = call i32 @mpfr_set_d(i32 %73, i32 0, i32 %74)
%76 = load i32, i32* %8
%77 = load i32, i32* %9
%78 = call i32 @all(i32 %76, i32 %77)
%79 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%80 = load i32, i32* %8
%81 = call i32 @mpfr_clear(i32 %80)
%82 = load i32, i32* %9
%83 = call i32 @mpfr_clear(i32 %82)
%84 = load i32, i32* %10
%85 = call i32 @mpfr_init(i32 %84)
%86 = load i32, i32* %11
%87 = call i32 @mpfr_init(i32 %86)
%88 = load i32, i32* %10
%89 = load i32, i32* @MPFR_RNDN
%90 = call i32 @mpfr_set_d(i32 %88, i32 0, i32 %89)
%91 = load i32, i32* %11
%92 = load i32, i32* @MPFR_RNDN
%93 = call i32 @mpfr_set_d(i32 %91, i32 0, i32 %92)
%94 = load i32, i32* %10
%95 = load i32, i32* %11
%96 = call i32 @all(i32 %94, i32 %95)
%97 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%98 = load i32, i32* %10
%99 = call i32 @mpfr_clear(i32 %98)
%100 = load i32, i32* %11
%101 = call i32 @mpfr_clear(i32 %100)
ret i32 0
}

LLVM IR (-O2):
@MPFR_RNDN = global i32 0
define i32 @main() {
%1 = tail call i32 @mpfr_init(i32 undef)
%2 = tail call i32 @mpfr_init(i32 undef)
%3 = load i32, i32* @MPFR_RNDN
%4 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %3)
%5 = load i32, i32* @MPFR_RNDN
%6 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %5)
%7 = tail call i32 @all(i32 undef, i32 undef)
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @mpfr_clear(i32 undef)
%10 = tail call i32 @mpfr_clear(i32 undef)
%11 = tail call i32 @mpfr_init(i32 undef)
%12 = tail call i32 @mpfr_init(i32 undef)
%13 = load i32, i32* @MPFR_RNDN
%14 = tail call i32 @mpfr_set_d(i32 undef, i32 -1, i32 %13)
%15 = load i32, i32* @MPFR_RNDN
%16 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %15)
%17 = tail call i32 @all(i32 undef, i32 undef)
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @mpfr_clear(i32 undef)
%20 = tail call i32 @mpfr_clear(i32 undef)
%21 = tail call i32 @mpfr_init(i32 undef)
%22 = tail call i32 @mpfr_init(i32 undef)
%23 = load i32, i32* @MPFR_RNDN
%24 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %23)
%25 = load i32, i32* @MPFR_RNDN
%26 = tail call i32 @mpfr_set_d(i32 undef, i32 -11, i32 %25)
%27 = tail call i32 @all(i32 undef, i32 undef)
%28 = tail call i32 @putchar(i32 10)
%29 = tail call i32 @mpfr_clear(i32 undef)
%30 = tail call i32 @mpfr_clear(i32 undef)
%31 = tail call i32 @mpfr_init(i32 undef)
%32 = tail call i32 @mpfr_init(i32 undef)
%33 = load i32, i32* @MPFR_RNDN
%34 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %33)
%35 = load i32, i32* @MPFR_RNDN
%36 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %35)
%37 = tail call i32 @all(i32 undef, i32 undef)
%38 = tail call i32 @putchar(i32 10)
%39 = tail call i32 @mpfr_clear(i32 undef)
%40 = tail call i32 @mpfr_clear(i32 undef)
%41 = tail call i32 @mpfr_init(i32 undef)
%42 = tail call i32 @mpfr_init(i32 undef)
%43 = load i32, i32* @MPFR_RNDN
%44 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %43)
%45 = load i32, i32* @MPFR_RNDN
%46 = tail call i32 @mpfr_set_d(i32 undef, i32 0, i32 %45)
%47 = tail call i32 @all(i32 undef, i32 undef)
%48 = tail call i32 @putchar(i32 10)
%49 = tail call i32 @mpfr_clear(i32 undef)
%50 = tail call i32 @mpfr_clear(i32 undef)
ret i32 0
}