#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 */

/* Variables and functions */
int /*<<< orphan*/ set_round_toward_minus_infinity();
int /*<<< orphan*/ set_round_toward_nearest();
int /*<<< orphan*/ set_round_toward_plus_infinity();
int /*<<< orphan*/ set_round_toward_zero();
int /*<<< orphan*/ test_flt_rounds(int);
int /*<<< orphan*/ test_round_to_minus_infinity();
int /*<<< orphan*/ test_round_to_nearest();
int /*<<< orphan*/ test_round_to_plus_infinity();
int /*<<< orphan*/ test_round_to_zero();
int main(int ac, char *av[]) {
  test_flt_rounds(1);
  test_round_to_nearest();
  set_round_toward_plus_infinity();
  test_round_to_plus_infinity();
  set_round_toward_minus_infinity();
  test_round_to_minus_infinity();
  set_round_toward_zero();
  test_round_to_zero();
  set_round_toward_nearest();
  test_flt_rounds(1);
  test_round_to_nearest();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x1,%edi
call   1080 <test_flt_rounds@plt>
mov    $0x0,%al
call   1050 <test_round_to_nearest@plt>
mov    $0x0,%al
call   10b0 <set_round_toward_plus_infinity@plt>
mov    $0x0,%al
call   1070 <test_round_to_plus_infinity@plt>
mov    $0x0,%al
call   1030 <set_round_toward_minus_infinity@plt>
mov    $0x0,%al
call   1060 <test_round_to_minus_infinity@plt>
mov    $0x0,%al
call   1040 <set_round_toward_zero@plt>
mov    $0x0,%al
call   10a0 <test_round_to_zero@plt>
mov    $0x0,%al
call   1090 <set_round_toward_nearest@plt>
mov    $0x1,%edi
call   1080 <test_flt_rounds@plt>
mov    $0x0,%al
call   1050 <test_round_to_nearest@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1080 <test_flt_rounds@plt>
xor    %eax,%eax
call   1050 <test_round_to_nearest@plt>
xor    %eax,%eax
call   10b0 <set_round_toward_plus_infinity@plt>
xor    %eax,%eax
call   1070 <test_round_to_plus_infinity@plt>
xor    %eax,%eax
call   1030 <set_round_toward_minus_infinity@plt>
xor    %eax,%eax
call   1060 <test_round_to_minus_infinity@plt>
xor    %eax,%eax
call   1040 <set_round_toward_zero@plt>
xor    %eax,%eax
call   10a0 <test_round_to_zero@plt>
xor    %eax,%eax
call   1090 <set_round_toward_nearest@plt>
mov    $0x1,%edi
call   1080 <test_flt_rounds@plt>
xor    %eax,%eax
call   1050 <test_round_to_nearest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @test_flt_rounds(i32 1)
%7 = call i32 (...) @test_round_to_nearest()
%8 = call i32 (...) @set_round_toward_plus_infinity()
%9 = call i32 (...) @test_round_to_plus_infinity()
%10 = call i32 (...) @set_round_toward_minus_infinity()
%11 = call i32 (...) @test_round_to_minus_infinity()
%12 = call i32 (...) @set_round_toward_zero()
%13 = call i32 (...) @test_round_to_zero()
%14 = call i32 (...) @set_round_toward_nearest()
%15 = call i32 @test_flt_rounds(i32 1)
%16 = call i32 (...) @test_round_to_nearest()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @test_flt_rounds(i32 1)
%4 = tail call i32 (...) @test_round_to_nearest()
%5 = tail call i32 (...) @set_round_toward_plus_infinity()
%6 = tail call i32 (...) @test_round_to_plus_infinity()
%7 = tail call i32 (...) @set_round_toward_minus_infinity()
%8 = tail call i32 (...) @test_round_to_minus_infinity()
%9 = tail call i32 (...) @set_round_toward_zero()
%10 = tail call i32 (...) @test_round_to_zero()
%11 = tail call i32 (...) @set_round_toward_nearest()
%12 = tail call i32 @test_flt_rounds(i32 1)
%13 = tail call i32 (...) @test_round_to_nearest()
ret i32 0
}