#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 mpfr_ceil(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_clear(int /*<<< orphan*/);
int mpfr_floor(int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_fmod(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
              int /*<<< orphan*/);
int mpfr_fmodquo(int /*<<< orphan*/, long *, int /*<<< orphan*/,
                 int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_frac(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_init(int /*<<< orphan*/);
int mpfr_integer_p(int /*<<< orphan*/);
int mpfr_modf(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
              int /*<<< orphan*/);
int /*<<< orphan*/ mpfr_printf(char *, int /*<<< orphan*/, int /*<<< orphan*/,
                               ...);
int mpfr_remainder(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
                   int /*<<< orphan*/);
int mpfr_remquo(int /*<<< orphan*/, long *, int /*<<< orphan*/,
                int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_rint(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_rint_ceil(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_rint_floor(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_rint_round(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_rint_roundeven(int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/);
int mpfr_rint_trunc(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_round(int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_roundeven(int /*<<< orphan*/, int /*<<< orphan*/);
int mpfr_trunc(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ rounding_to_string(int);
void all(mpfr_t op1, mpfr_t op2) {
  mpfr_t rop, sop;
  mpfr_init(rop);
  mpfr_init(sop);
  int ter;
  ter = mpfr_rint(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_ceil(rop, op1);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_floor(rop, op1);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_round(rop, op1);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_roundeven(rop, op1);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_trunc(rop, op1);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_rint_ceil(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_rint_floor(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_rint_round(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_rint_roundeven(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_rint_trunc(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_frac(rop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  ter = mpfr_modf(rop, sop, op1, MPFR_RNDN);
  mpfr_printf("%.Re %s %.Re %s\n", rop, rounding_to_string(ter), sop,
              rounding_to_string(ter));
  ter = mpfr_fmod(rop, op1, op2, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  long q = 0;
  ter = mpfr_fmodquo(rop, &q, op1, op2, MPFR_RNDN);
  mpfr_printf("%.Re %s %ld\n", rop, rounding_to_string(ter), q);
  ter = mpfr_remainder(rop, op1, op2, MPFR_RNDN);
  mpfr_printf("%.Re %s\n", rop, rounding_to_string(ter));
  q = 0;
  ter = mpfr_remquo(rop, &q, op1, op2, MPFR_RNDN);
  mpfr_printf("%.Re %s %ld\n", rop, rounding_to_string(ter), q);
  ter = mpfr_integer_p(op1);
  printf("%s\n", ter == 0 ? "false" : "true");
  mpfr_clear(rop);
  mpfr_clear(sop);
}


x86 assembly (clang, -O0):
<all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <mpfr_init@plt>
mov    -0x10(%rbp),%edi
call   1030 <mpfr_init@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2d4d(%rip),%rax
mov    (%rax),%edx
call   1100 <mpfr_rint@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x6c(%rbp),%esi
mov    %eax,%edx
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1150 <mpfr_ceil@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x68(%rbp),%esi
mov    %eax,%edx
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   10c0 <mpfr_floor@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x64(%rbp),%esi
mov    %eax,%edx
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   10d0 <mpfr_round@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x60(%rbp),%esi
mov    %eax,%edx
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   10e0 <mpfr_roundeven@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x5c(%rbp),%esi
mov    %eax,%edx
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1110 <mpfr_trunc@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x58(%rbp),%esi
mov    %eax,%edx
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2c2a(%rip),%rax
mov    (%rax),%edx
call   10a0 <mpfr_rint_ceil@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x54(%rbp),%esi
mov    %eax,%edx
lea    0xc26(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2bf2(%rip),%rax
mov    (%rax),%edx
call   10f0 <mpfr_rint_floor@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x50(%rbp),%esi
mov    %eax,%edx
lea    0xbee(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2bba(%rip),%rax
mov    (%rax),%edx
call   1140 <mpfr_rint_round@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x4c(%rbp),%esi
mov    %eax,%edx
lea    0xbb6(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2b82(%rip),%rax
mov    (%rax),%edx
call   1170 <mpfr_rint_roundeven@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x48(%rbp),%esi
mov    %eax,%edx
lea    0xb7e(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2b4a(%rip),%rax
mov    (%rax),%edx
call   1060 <mpfr_rint_trunc@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x44(%rbp),%esi
mov    %eax,%edx
lea    0xb46(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    0x2b12(%rip),%rax
mov    (%rax),%edx
call   1040 <mpfr_frac@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x40(%rbp),%esi
mov    %eax,%edx
lea    0xb0e(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    0x2ad7(%rip),%rax
mov    (%rax),%ecx
call   1130 <mpfr_modf@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    %eax,%r8d
lea    0xab3(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    0x2a84(%rip),%rax
mov    (%rax),%ecx
call   1160 <mpfr_fmod@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x30(%rbp),%esi
mov    %eax,%edx
lea    0xa80(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
movq   $0x0,-0x20(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    0x2a41(%rip),%rax
mov    (%rax),%r8d
lea    -0x20(%rbp),%rsi
call   1180 <mpfr_fmodquo@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x2c(%rbp),%esi
mov    %eax,%edx
mov    -0x20(%rbp),%rcx
lea    0xa3d(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    0x29fd(%rip),%rax
mov    (%rax),%ecx
call   1190 <mpfr_remainder@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x28(%rbp),%esi
mov    %eax,%edx
lea    0x9f9(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
movq   $0x0,-0x20(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    0x29ba(%rip),%rax
mov    (%rax),%r8d
lea    -0x20(%rbp),%rsi
call   1120 <mpfr_remquo@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <rounding_to_string@plt>
mov    -0x24(%rbp),%esi
mov    %eax,%edx
mov    -0x20(%rbp),%rcx
lea    0x9b6(%rip),%rdi
mov    $0x0,%al
call   1090 <mpfr_printf@plt>
mov    -0x4(%rbp),%edi
call   10b0 <mpfr_integer_p@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
lea    0x9ad(%rip),%rsi
lea    0x9a0(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0x981(%rip),%rdi
call   1070 <printf@plt>
mov    -0xc(%rbp),%edi
call   1080 <mpfr_clear@plt>
mov    -0x10(%rbp),%edi
call   1080 <mpfr_clear@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<all>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%r15d
mov    %edi,%r14d
call   1030 <mpfr_init@plt>
call   1030 <mpfr_init@plt>
mov    0x2d56(%rip),%rax
mov    (%rax),%edx
mov    %rax,%r12
mov    %r14d,%esi
call   1100 <mpfr_rint@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
lea    0xd5b(%rip),%r13
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%esi
call   1150 <mpfr_ceil@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%esi
call   10c0 <mpfr_floor@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%esi
call   10d0 <mpfr_round@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%esi
call   10e0 <mpfr_roundeven@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%esi
call   1110 <mpfr_trunc@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   10a0 <mpfr_rint_ceil@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   10f0 <mpfr_rint_floor@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   1140 <mpfr_rint_round@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   1170 <mpfr_rint_roundeven@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   1060 <mpfr_rint_trunc@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%edx
mov    %r14d,%esi
call   1040 <mpfr_frac@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%ecx
mov    %r14d,%edx
call   1130 <mpfr_modf@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   1050 <rounding_to_string@plt>
lea    0xbe1(%rip),%rdi
mov    %ebx,%edx
mov    %eax,%r8d
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    (%r12),%ecx
mov    %r14d,%esi
mov    %r15d,%ebx
mov    %r15d,%edx
call   1160 <mpfr_fmod@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
movq   $0x0,(%rsp)
mov    (%r12),%r8d
mov    %r12,%rbp
mov    %rsp,%r15
mov    %r15,%rsi
mov    %r14d,%edx
mov    %ebx,%ecx
call   1180 <mpfr_fmodquo@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    (%rsp),%rcx
lea    0xb90(%rip),%r12
mov    %r12,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    0x0(%rbp),%ecx
mov    %r14d,%esi
mov    %ebx,%edx
call   1190 <mpfr_remainder@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    %r13,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
movq   $0x0,(%rsp)
mov    0x0(%rbp),%r8d
mov    %r15,%rsi
mov    %r14d,%edx
mov    %ebx,%ecx
call   1120 <mpfr_remquo@plt>
mov    %eax,%edi
call   1050 <rounding_to_string@plt>
mov    (%rsp),%rcx
mov    %r12,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <mpfr_printf@plt>
mov    %r14d,%edi
call   10b0 <mpfr_integer_p@plt>
test   %eax,%eax
lea    0xb30(%rip),%rax
lea    0xb2f(%rip),%rsi
cmove  %rax,%rsi
lea    0xb0d(%rip),%rdi
call   1070 <printf@plt>
call   1080 <mpfr_clear@plt>
call   1080 <mpfr_clear@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@MPFR_RNDN = global i32 0
@.str = [9 x i8] c"%.Re %s\0A\00"
@.str.1 = [17 x i8] c"%.Re %s %.Re %s\0A\00"
@.str.2 = [13 x i8] c"%.Re %s %ld\0A\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [6 x i8] c"false\00"
@.str.5 = [5 x i8] c"true\00"
define void @all(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @mpfr_init(i32 %9)
%11 = load i32, i32* %6
%12 = call i32 @mpfr_init(i32 %11)
%13 = load i32, i32* %5
%14 = load i32, i32* %3
%15 = load i32, i32* @MPFR_RNDN
%16 = call i32 @mpfr_rint(i32 %13, i32 %14, i32 %15)
store i32 %16, i32* %7
%17 = load i32, i32* %5
%18 = load i32, i32* %7
%19 = call i32 @rounding_to_string(i32 %18)
%20 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %19)
%21 = load i32, i32* %5
%22 = load i32, i32* %3
%23 = call i32 @mpfr_ceil(i32 %21, i32 %22)
store i32 %23, i32* %7
%24 = load i32, i32* %5
%25 = load i32, i32* %7
%26 = call i32 @rounding_to_string(i32 %25)
%27 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %26)
%28 = load i32, i32* %5
%29 = load i32, i32* %3
%30 = call i32 @mpfr_floor(i32 %28, i32 %29)
store i32 %30, i32* %7
%31 = load i32, i32* %5
%32 = load i32, i32* %7
%33 = call i32 @rounding_to_string(i32 %32)
%34 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %33)
%35 = load i32, i32* %5
%36 = load i32, i32* %3
%37 = call i32 @mpfr_round(i32 %35, i32 %36)
store i32 %37, i32* %7
%38 = load i32, i32* %5
%39 = load i32, i32* %7
%40 = call i32 @rounding_to_string(i32 %39)
%41 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %38, i32 %40)
%42 = load i32, i32* %5
%43 = load i32, i32* %3
%44 = call i32 @mpfr_roundeven(i32 %42, i32 %43)
store i32 %44, i32* %7
%45 = load i32, i32* %5
%46 = load i32, i32* %7
%47 = call i32 @rounding_to_string(i32 %46)
%48 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %45, i32 %47)
%49 = load i32, i32* %5
%50 = load i32, i32* %3
%51 = call i32 @mpfr_trunc(i32 %49, i32 %50)
store i32 %51, i32* %7
%52 = load i32, i32* %5
%53 = load i32, i32* %7
%54 = call i32 @rounding_to_string(i32 %53)
%55 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %52, i32 %54)
%56 = load i32, i32* %5
%57 = load i32, i32* %3
%58 = load i32, i32* @MPFR_RNDN
%59 = call i32 @mpfr_rint_ceil(i32 %56, i32 %57, i32 %58)
store i32 %59, i32* %7
%60 = load i32, i32* %5
%61 = load i32, i32* %7
%62 = call i32 @rounding_to_string(i32 %61)
%63 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %60, i32 %62)
%64 = load i32, i32* %5
%65 = load i32, i32* %3
%66 = load i32, i32* @MPFR_RNDN
%67 = call i32 @mpfr_rint_floor(i32 %64, i32 %65, i32 %66)
store i32 %67, i32* %7
%68 = load i32, i32* %5
%69 = load i32, i32* %7
%70 = call i32 @rounding_to_string(i32 %69)
%71 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %68, i32 %70)
%72 = load i32, i32* %5
%73 = load i32, i32* %3
%74 = load i32, i32* @MPFR_RNDN
%75 = call i32 @mpfr_rint_round(i32 %72, i32 %73, i32 %74)
store i32 %75, i32* %7
%76 = load i32, i32* %5
%77 = load i32, i32* %7
%78 = call i32 @rounding_to_string(i32 %77)
%79 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %76, i32 %78)
%80 = load i32, i32* %5
%81 = load i32, i32* %3
%82 = load i32, i32* @MPFR_RNDN
%83 = call i32 @mpfr_rint_roundeven(i32 %80, i32 %81, i32 %82)
store i32 %83, i32* %7
%84 = load i32, i32* %5
%85 = load i32, i32* %7
%86 = call i32 @rounding_to_string(i32 %85)
%87 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %84, i32 %86)
%88 = load i32, i32* %5
%89 = load i32, i32* %3
%90 = load i32, i32* @MPFR_RNDN
%91 = call i32 @mpfr_rint_trunc(i32 %88, i32 %89, i32 %90)
store i32 %91, i32* %7
%92 = load i32, i32* %5
%93 = load i32, i32* %7
%94 = call i32 @rounding_to_string(i32 %93)
%95 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %92, i32 %94)
%96 = load i32, i32* %5
%97 = load i32, i32* %3
%98 = load i32, i32* @MPFR_RNDN
%99 = call i32 @mpfr_frac(i32 %96, i32 %97, i32 %98)
store i32 %99, i32* %7
%100 = load i32, i32* %5
%101 = load i32, i32* %7
%102 = call i32 @rounding_to_string(i32 %101)
%103 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %100, i32 %102)
%104 = load i32, i32* %5
%105 = load i32, i32* %6
%106 = load i32, i32* %3
%107 = load i32, i32* @MPFR_RNDN
%108 = call i32 @mpfr_modf(i32 %104, i32 %105, i32 %106, i32 %107)
store i32 %108, i32* %7
%109 = load i32, i32* %5
%110 = load i32, i32* %7
%111 = call i32 @rounding_to_string(i32 %110)
%112 = load i32, i32* %6
%113 = load i32, i32* %7
%114 = call i32 @rounding_to_string(i32 %113)
%115 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %109, i32 %111, i32 %112, i32 %114)
%116 = load i32, i32* %5
%117 = load i32, i32* %3
%118 = load i32, i32* %4
%119 = load i32, i32* @MPFR_RNDN
%120 = call i32 @mpfr_fmod(i32 %116, i32 %117, i32 %118, i32 %119)
store i32 %120, i32* %7
%121 = load i32, i32* %5
%122 = load i32, i32* %7
%123 = call i32 @rounding_to_string(i32 %122)
%124 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %121, i32 %123)
store i64 0, i64* %8
%125 = load i32, i32* %5
%126 = load i32, i32* %3
%127 = load i32, i32* %4
%128 = load i32, i32* @MPFR_RNDN
%129 = call i32 @mpfr_fmodquo(i32 %125, i64* %8, i32 %126, i32 %127, i32 %128)
store i32 %129, i32* %7
%130 = load i32, i32* %5
%131 = load i32, i32* %7
%132 = call i32 @rounding_to_string(i32 %131)
%133 = load i64, i64* %8
%134 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %130, i32 %132, i64 %133)
%135 = load i32, i32* %5
%136 = load i32, i32* %3
%137 = load i32, i32* %4
%138 = load i32, i32* @MPFR_RNDN
%139 = call i32 @mpfr_remainder(i32 %135, i32 %136, i32 %137, i32 %138)
store i32 %139, i32* %7
%140 = load i32, i32* %5
%141 = load i32, i32* %7
%142 = call i32 @rounding_to_string(i32 %141)
%143 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %140, i32 %142)
store i64 0, i64* %8
%144 = load i32, i32* %5
%145 = load i32, i32* %3
%146 = load i32, i32* %4
%147 = load i32, i32* @MPFR_RNDN
%148 = call i32 @mpfr_remquo(i32 %144, i64* %8, i32 %145, i32 %146, i32 %147)
store i32 %148, i32* %7
%149 = load i32, i32* %5
%150 = load i32, i32* %7
%151 = call i32 @rounding_to_string(i32 %150)
%152 = load i64, i64* %8
%153 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %149, i32 %151, i64 %152)
%154 = load i32, i32* %3
%155 = call i32 @mpfr_integer_p(i32 %154)
store i32 %155, i32* %7
%156 = load i32, i32* %7
%157 = icmp eq i32 %156, 0
%158 = zext i1 %157 to i64
%159 = select i1 %157, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%160 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %159)
%161 = load i32, i32* %5
%162 = call i32 @mpfr_clear(i32 %161)
%163 = load i32, i32* %6
%164 = call i32 @mpfr_clear(i32 %163)
ret void
}

LLVM IR (-O2):
@MPFR_RNDN = global i32 0
@.str = [9 x i8] c"%.Re %s\0A\00"
@.str.1 = [17 x i8] c"%.Re %s %.Re %s\0A\00"
@.str.2 = [13 x i8] c"%.Re %s %ld\0A\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [6 x i8] c"false\00"
@.str.5 = [5 x i8] c"true\00"
define void @all(i32 %0, i32 %1) {
%3 = alloca i64
%4 = tail call i32 @mpfr_init(i32 undef)
%5 = tail call i32 @mpfr_init(i32 undef)
%6 = load i32, i32* @MPFR_RNDN
%7 = tail call i32 @mpfr_rint(i32 undef, i32 %0, i32 %6)
%8 = tail call i32 @rounding_to_string(i32 %7)
%9 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %8)
%10 = tail call i32 @mpfr_ceil(i32 undef, i32 %0)
%11 = tail call i32 @rounding_to_string(i32 %10)
%12 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %11)
%13 = tail call i32 @mpfr_floor(i32 undef, i32 %0)
%14 = tail call i32 @rounding_to_string(i32 %13)
%15 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %14)
%16 = tail call i32 @mpfr_round(i32 undef, i32 %0)
%17 = tail call i32 @rounding_to_string(i32 %16)
%18 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %17)
%19 = tail call i32 @mpfr_roundeven(i32 undef, i32 %0)
%20 = tail call i32 @rounding_to_string(i32 %19)
%21 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %20)
%22 = tail call i32 @mpfr_trunc(i32 undef, i32 %0)
%23 = tail call i32 @rounding_to_string(i32 %22)
%24 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %23)
%25 = load i32, i32* @MPFR_RNDN
%26 = tail call i32 @mpfr_rint_ceil(i32 undef, i32 %0, i32 %25)
%27 = tail call i32 @rounding_to_string(i32 %26)
%28 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %27)
%29 = load i32, i32* @MPFR_RNDN
%30 = tail call i32 @mpfr_rint_floor(i32 undef, i32 %0, i32 %29)
%31 = tail call i32 @rounding_to_string(i32 %30)
%32 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %31)
%33 = load i32, i32* @MPFR_RNDN
%34 = tail call i32 @mpfr_rint_round(i32 undef, i32 %0, i32 %33)
%35 = tail call i32 @rounding_to_string(i32 %34)
%36 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %35)
%37 = load i32, i32* @MPFR_RNDN
%38 = tail call i32 @mpfr_rint_roundeven(i32 undef, i32 %0, i32 %37)
%39 = tail call i32 @rounding_to_string(i32 %38)
%40 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %39)
%41 = load i32, i32* @MPFR_RNDN
%42 = tail call i32 @mpfr_rint_trunc(i32 undef, i32 %0, i32 %41)
%43 = tail call i32 @rounding_to_string(i32 %42)
%44 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %43)
%45 = load i32, i32* @MPFR_RNDN
%46 = tail call i32 @mpfr_frac(i32 undef, i32 %0, i32 %45)
%47 = tail call i32 @rounding_to_string(i32 %46)
%48 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %47)
%49 = load i32, i32* @MPFR_RNDN
%50 = tail call i32 @mpfr_modf(i32 undef, i32 undef, i32 %0, i32 %49)
%51 = tail call i32 @rounding_to_string(i32 %50)
%52 = tail call i32 @rounding_to_string(i32 %50)
%53 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 undef, i32 %51, i32 undef, i32 %52)
%54 = load i32, i32* @MPFR_RNDN
%55 = tail call i32 @mpfr_fmod(i32 undef, i32 %0, i32 %1, i32 %54)
%56 = tail call i32 @rounding_to_string(i32 %55)
%57 = tail call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %56)
%58 = bitcast i64* %3 to i8*
store i64 0, i64* %3
%59 = load i32, i32* @MPFR_RNDN
%60 = call i32 @mpfr_fmodquo(i32 undef, i64* %3, i32 %0, i32 %1, i32 %59)
%61 = call i32 @rounding_to_string(i32 %60)
%62 = load i64, i64* %3
%63 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 undef, i32 %61, i64 %62)
%64 = load i32, i32* @MPFR_RNDN
%65 = call i32 @mpfr_remainder(i32 undef, i32 %0, i32 %1, i32 %64)
%66 = call i32 @rounding_to_string(i32 %65)
%67 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 undef, i32 %66)
store i64 0, i64* %3
%68 = load i32, i32* @MPFR_RNDN
%69 = call i32 @mpfr_remquo(i32 undef, i64* %3, i32 %0, i32 %1, i32 %68)
%70 = call i32 @rounding_to_string(i32 %69)
%71 = load i64, i64* %3
%72 = call i32 (i8*, i32, i32, ...) @mpfr_printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 undef, i32 %70, i64 %71)
%73 = call i32 @mpfr_integer_p(i32 %0)
%74 = icmp eq i32 %73, 0
%75 = select i1 %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%76 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %75)
%77 = call i32 @mpfr_clear(i32 undef)
%78 = call i32 @mpfr_clear(i32 undef)
ret void
}