#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*/ printf(char *, ...);
scalar_t__ test_case_arithmatics();
scalar_t__ test_case_arithmatics_special();
scalar_t__ test_case_best_rational_in_interval();
scalar_t__ test_case_calculate_pi();
scalar_t__ test_case_calculate_pi_gcf();
scalar_t__ test_case_calculate_sqrt_5();
scalar_t__ test_case_canonical_float_string();
scalar_t__ test_case_convergent();
scalar_t__ test_case_convert_from_float();
scalar_t__ test_case_convert_pi_string();
scalar_t__ test_case_convert_string_canonical();
scalar_t__ test_case_convert_string_float();
scalar_t__ test_case_float_string_add();
scalar_t__ test_case_gcd();
int main(void) {
  {
    printf("TEST %s: ", "arithmatics");
    if (test_case_arithmatics() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "convergent");
    if (test_case_convergent() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "calculate_pi_gcf");
    if (test_case_calculate_pi_gcf() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "calculate_pi");
    if (test_case_calculate_pi() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "calculate_sqrt_5");
    if (test_case_calculate_sqrt_5() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "convert_from_float");
    if (test_case_convert_from_float() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "convert_pi_string");
    if (test_case_convert_pi_string() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "convert_string_canonical");
    if (test_case_convert_string_canonical() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "convert_string_float");
    if (test_case_convert_string_float() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "gcd");
    if (test_case_gcd() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "arithmatics_special");
    if (test_case_arithmatics_special() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "canonical_float_string");
    if (test_case_canonical_float_string() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "float_string_add");
    if (test_case_float_string_add() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  {
    printf("TEST %s: ", "best_rational_in_interval");
    if (test_case_best_rational_in_interval() == 0)
      printf("["
             "[1m[32m"
             "OK"
             "[0m"
             "]\n");
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdfa(%rip),%rdi
lea    0xdfd(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <test_case_arithmatics@plt>
cmp    $0x0,%rax
jne    1233 <main+0x43>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdc6(%rip),%rdi
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1080 <test_case_convergent@plt>
cmp    $0x0,%rax
jne    1267 <main+0x77>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd92(%rip),%rdi
lea    0xdbf(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1030 <test_case_calculate_pi_gcf@plt>
cmp    $0x0,%rax
jne    129b <main+0xab>
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd5e(%rip),%rdi
lea    0xd9c(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10c0 <test_case_calculate_pi@plt>
cmp    $0x0,%rax
jne    12cf <main+0xdf>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xd2a(%rip),%rdi
lea    0xd75(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10b0 <test_case_calculate_sqrt_5@plt>
cmp    $0x0,%rax
jne    1303 <main+0x113>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcf6(%rip),%rdi
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <test_case_convert_from_float@plt>
cmp    $0x0,%rax
jne    1337 <main+0x147>
lea    0xce6(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xcc2(%rip),%rdi
lea    0xd31(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1050 <test_case_convert_pi_string@plt>
cmp    $0x0,%rax
jne    136b <main+0x17b>
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xc8e(%rip),%rdi
lea    0xd0f(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10e0 <test_case_convert_string_canonical@plt>
cmp    $0x0,%rax
jne    139f <main+0x1af>
lea    0xc7e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xc5a(%rip),%rdi
lea    0xcf4(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1100 <test_case_convert_string_float@plt>
cmp    $0x0,%rax
jne    13d3 <main+0x1e3>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xc26(%rip),%rdi
lea    0xcd5(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10d0 <test_case_gcd@plt>
cmp    $0x0,%rax
jne    1407 <main+0x217>
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xbf2(%rip),%rdi
lea    0xca5(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1110 <test_case_arithmatics_special@plt>
cmp    $0x0,%rax
jne    143b <main+0x24b>
lea    0xbe2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xbbe(%rip),%rdi
lea    0xc85(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10f0 <test_case_canonical_float_string@plt>
cmp    $0x0,%rax
jne    146f <main+0x27f>
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xb8a(%rip),%rdi
lea    0xc68(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1090 <test_case_float_string_add@plt>
cmp    $0x0,%rax
jne    14a3 <main+0x2b3>
lea    0xb7a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xb56(%rip),%rdi
lea    0xc45(%rip),%rsi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1060 <test_case_best_rational_in_interval@plt>
cmp    $0x0,%rax
jne    14d7 <main+0x2e7>
lea    0xb46(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xdf8(%rip),%rdi
lea    0xdfb(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10b0 <test_case_arithmatics@plt>
test   %rax,%rax
jne    122e <main+0x2e>
lea    0xed4(%rip),%rdi
call   1050 <puts@plt>
lea    0xdcb(%rip),%rdi
lea    0xdda(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1090 <test_case_convergent@plt>
test   %rax,%rax
jne    125b <main+0x5b>
lea    0xea7(%rip),%rdi
call   1050 <puts@plt>
lea    0xd9e(%rip),%rdi
lea    0xdb8(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1030 <test_case_calculate_pi_gcf@plt>
test   %rax,%rax
jne    1288 <main+0x88>
lea    0xe7a(%rip),%rdi
call   1050 <puts@plt>
lea    0xd71(%rip),%rdi
lea    0xd9c(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10d0 <test_case_calculate_pi@plt>
test   %rax,%rax
jne    12b5 <main+0xb5>
lea    0xe4d(%rip),%rdi
call   1050 <puts@plt>
lea    0xd44(%rip),%rdi
lea    0xd7c(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10c0 <test_case_calculate_sqrt_5@plt>
test   %rax,%rax
jne    12e2 <main+0xe2>
lea    0xe20(%rip),%rdi
call   1050 <puts@plt>
lea    0xd17(%rip),%rdi
lea    0xd60(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1040 <test_case_convert_from_float@plt>
test   %rax,%rax
jne    130f <main+0x10f>
lea    0xdf3(%rip),%rdi
call   1050 <puts@plt>
lea    0xcea(%rip),%rdi
lea    0xd46(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1060 <test_case_convert_pi_string@plt>
test   %rax,%rax
jne    133c <main+0x13c>
lea    0xdc6(%rip),%rdi
call   1050 <puts@plt>
lea    0xcbd(%rip),%rdi
lea    0xd2b(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10f0 <test_case_convert_string_canonical@plt>
test   %rax,%rax
jne    1369 <main+0x169>
lea    0xd99(%rip),%rdi
call   1050 <puts@plt>
lea    0xc90(%rip),%rdi
lea    0xd17(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1110 <test_case_convert_string_float@plt>
test   %rax,%rax
jne    1396 <main+0x196>
lea    0xd6c(%rip),%rdi
call   1050 <puts@plt>
lea    0xc63(%rip),%rdi
lea    0xcff(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10e0 <test_case_gcd@plt>
test   %rax,%rax
jne    13c3 <main+0x1c3>
lea    0xd3f(%rip),%rdi
call   1050 <puts@plt>
lea    0xc36(%rip),%rdi
lea    0xcd6(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1120 <test_case_arithmatics_special@plt>
test   %rax,%rax
jne    13f0 <main+0x1f0>
lea    0xd12(%rip),%rdi
call   1050 <puts@plt>
lea    0xc09(%rip),%rdi
lea    0xcbd(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1100 <test_case_canonical_float_string@plt>
test   %rax,%rax
jne    141d <main+0x21d>
lea    0xce5(%rip),%rdi
call   1050 <puts@plt>
lea    0xbdc(%rip),%rdi
lea    0xca7(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <test_case_float_string_add@plt>
test   %rax,%rax
jne    144a <main+0x24a>
lea    0xcb8(%rip),%rdi
call   1050 <puts@plt>
lea    0xbaf(%rip),%rdi
lea    0xc8b(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1070 <test_case_best_rational_in_interval@plt>
test   %rax,%rax
jne    1477 <main+0x277>
lea    0xc8b(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"TEST %s: \00"
@.str.1 = [12 x i8] c"arithmatics\00"
@.str.2 = [19 x i8] c"[\1B[1m\1B[32mOK\1B[0m]\0A\00"
@.str.3 = [11 x i8] c"convergent\00"
@.str.4 = [17 x i8] c"calculate_pi_gcf\00"
@.str.5 = [13 x i8] c"calculate_pi\00"
@.str.6 = [17 x i8] c"calculate_sqrt_5\00"
@.str.7 = [19 x i8] c"convert_from_float\00"
@.str.8 = [18 x i8] c"convert_pi_string\00"
@.str.9 = [25 x i8] c"convert_string_canonical\00"
@.str.10 = [21 x i8] c"convert_string_float\00"
@.str.11 = [4 x i8] c"gcd\00"
@.str.12 = [20 x i8] c"arithmatics_special\00"
@.str.13 = [23 x i8] c"canonical_float_string\00"
@.str.14 = [17 x i8] c"float_string_add\00"
@.str.15 = [26 x i8] c"best_rational_in_interval\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = call i64 (...) @test_case_arithmatics()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %7
7: ; preds = %5, %0
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%9 = call i64 (...) @test_case_convergent()
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %13
13: ; preds = %11, %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%15 = call i64 (...) @test_case_calculate_pi_gcf()
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%21 = call i64 (...) @test_case_calculate_pi()
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %19
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%27 = call i64 (...) @test_case_calculate_sqrt_5()
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %29, %25
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%33 = call i64 (...) @test_case_convert_from_float()
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %37
37: ; preds = %35, %31
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%39 = call i64 (...) @test_case_convert_pi_string()
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %43
43: ; preds = %41, %37
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
%45 = call i64 (...) @test_case_convert_string_canonical()
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %49
49: ; preds = %47, %43
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%51 = call i64 (...) @test_case_convert_string_float()
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %55
55: ; preds = %53, %49
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%57 = call i64 (...) @test_case_gcd()
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %61
61: ; preds = %59, %55
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%63 = call i64 (...) @test_case_arithmatics_special()
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %67
67: ; preds = %65, %61
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%69 = call i64 (...) @test_case_canonical_float_string()
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %73
73: ; preds = %71, %67
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%75 = call i64 (...) @test_case_float_string_add()
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %79
79: ; preds = %77, %73
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%81 = call i64 (...) @test_case_best_rational_in_interval()
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %79
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %85
85: ; preds = %83, %79
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"TEST %s: \00"
@.str.1 = [12 x i8] c"arithmatics\00"
@.str.3 = [11 x i8] c"convergent\00"
@.str.4 = [17 x i8] c"calculate_pi_gcf\00"
@.str.5 = [13 x i8] c"calculate_pi\00"
@.str.6 = [17 x i8] c"calculate_sqrt_5\00"
@.str.7 = [19 x i8] c"convert_from_float\00"
@.str.8 = [18 x i8] c"convert_pi_string\00"
@.str.9 = [25 x i8] c"convert_string_canonical\00"
@.str.10 = [21 x i8] c"convert_string_float\00"
@.str.11 = [4 x i8] c"gcd\00"
@.str.12 = [20 x i8] c"arithmatics_special\00"
@.str.13 = [23 x i8] c"canonical_float_string\00"
@.str.14 = [17 x i8] c"float_string_add\00"
@.str.15 = [26 x i8] c"best_rational_in_interval\00"
@str.28 = [18 x i8] c"[\1B[1m\1B[32mOK\1B[0m]\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 (...) @test_case_arithmatics()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i64 (...) @test_case_convergent()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i64 (...) @test_case_calculate_pi_gcf()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %18
18: ; preds = %16, %12
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%20 = tail call i64 (...) @test_case_calculate_pi()
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %24
24: ; preds = %22, %18
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%26 = tail call i64 (...) @test_case_calculate_sqrt_5()
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %30
30: ; preds = %28, %24
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%32 = tail call i64 (...) @test_case_convert_from_float()
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %36
36: ; preds = %34, %30
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%38 = tail call i64 (...) @test_case_convert_pi_string()
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %42
42: ; preds = %40, %36
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
%44 = tail call i64 (...) @test_case_convert_string_canonical()
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %48
48: ; preds = %46, %42
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%50 = tail call i64 (...) @test_case_convert_string_float()
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %54
54: ; preds = %52, %48
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%56 = tail call i64 (...) @test_case_gcd()
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %60
60: ; preds = %58, %54
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%62 = tail call i64 (...) @test_case_arithmatics_special()
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %66
66: ; preds = %64, %60
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%68 = tail call i64 (...) @test_case_canonical_float_string()
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %72
72: ; preds = %70, %66
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%74 = tail call i64 (...) @test_case_float_string_add()
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %78
78: ; preds = %76, %72
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%80 = tail call i64 (...) @test_case_best_rational_in_interval()
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %78
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
br label %84
84: ; preds = %82, %78
ret i32 0
}