#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 *);
int /*<<< orphan*/ test_add_complex();
int /*<<< orphan*/ test_add_simple();
int /*<<< orphan*/ test_gcd();
int /*<<< orphan*/ test_greater();
int /*<<< orphan*/ test_lshift_simple();
int /*<<< orphan*/ test_mod();
int /*<<< orphan*/ test_mod_2();
int /*<<< orphan*/ test_modp();
int /*<<< orphan*/ test_mul();
int /*<<< orphan*/ test_mul_2();
int /*<<< orphan*/ test_oddeven();
int /*<<< orphan*/ test_pow();
int /*<<< orphan*/ test_rotl();
int /*<<< orphan*/ test_rotr();
int /*<<< orphan*/ test_rshift_simple();
int /*<<< orphan*/ test_shift_complex();
void test() {
  test_add_simple();
  test_add_complex();
  test_rotr();
  test_rotl();
  test_lshift_simple();
  test_rshift_simple();
  test_shift_complex();
  test_oddeven();
  test_greater();
  test_mul();
  test_mul_2();
  test_gcd();
  test_pow();
  test_mod();
  test_mod_2();
  test_modp();
  printf("Testfall avklarade.");
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <test_add_simple@plt>
mov    $0x0,%al
call   10b0 <test_add_complex@plt>
mov    $0x0,%al
call   1100 <test_rotr@plt>
mov    $0x0,%al
call   10f0 <test_rotl@plt>
mov    $0x0,%al
call   1060 <test_lshift_simple@plt>
mov    $0x0,%al
call   1070 <test_rshift_simple@plt>
mov    $0x0,%al
call   1120 <test_shift_complex@plt>
mov    $0x0,%al
call   10e0 <test_oddeven@plt>
mov    $0x0,%al
call   1130 <test_greater@plt>
mov    $0x0,%al
call   1030 <test_mul@plt>
mov    $0x0,%al
call   10d0 <test_mul_2@plt>
mov    $0x0,%al
call   1090 <test_gcd@plt>
mov    $0x0,%al
call   1110 <test_pow@plt>
mov    $0x0,%al
call   10a0 <test_mod@plt>
mov    $0x0,%al
call   1040 <test_mod_2@plt>
mov    $0x0,%al
call   10c0 <test_modp@plt>
lea    0xd75(%rip),%rdi
call   1080 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
xor    %eax,%eax
call   1050 <test_add_simple@plt>
xor    %eax,%eax
call   10b0 <test_add_complex@plt>
xor    %eax,%eax
call   1100 <test_rotr@plt>
xor    %eax,%eax
call   10f0 <test_rotl@plt>
xor    %eax,%eax
call   1060 <test_lshift_simple@plt>
xor    %eax,%eax
call   1070 <test_rshift_simple@plt>
xor    %eax,%eax
call   1120 <test_shift_complex@plt>
xor    %eax,%eax
call   10e0 <test_oddeven@plt>
xor    %eax,%eax
call   1130 <test_greater@plt>
xor    %eax,%eax
call   1030 <test_mul@plt>
xor    %eax,%eax
call   10d0 <test_mul_2@plt>
xor    %eax,%eax
call   1090 <test_gcd@plt>
xor    %eax,%eax
call   1110 <test_pow@plt>
xor    %eax,%eax
call   10a0 <test_mod@plt>
xor    %eax,%eax
call   1040 <test_mod_2@plt>
xor    %eax,%eax
call   10c0 <test_modp@plt>
lea    0xd78(%rip),%rdi
pop    %rax
jmp    1080 <printf@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"Testfall avklarade.\00"
define void @test() {
%1 = call i32 (...) @test_add_simple()
%2 = call i32 (...) @test_add_complex()
%3 = call i32 (...) @test_rotr()
%4 = call i32 (...) @test_rotl()
%5 = call i32 (...) @test_lshift_simple()
%6 = call i32 (...) @test_rshift_simple()
%7 = call i32 (...) @test_shift_complex()
%8 = call i32 (...) @test_oddeven()
%9 = call i32 (...) @test_greater()
%10 = call i32 (...) @test_mul()
%11 = call i32 (...) @test_mul_2()
%12 = call i32 (...) @test_gcd()
%13 = call i32 (...) @test_pow()
%14 = call i32 (...) @test_mod()
%15 = call i32 (...) @test_mod_2()
%16 = call i32 (...) @test_modp()
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Testfall avklarade.\00"
define void @test() {
%1 = tail call i32 (...) @test_add_simple()
%2 = tail call i32 (...) @test_add_complex()
%3 = tail call i32 (...) @test_rotr()
%4 = tail call i32 (...) @test_rotl()
%5 = tail call i32 (...) @test_lshift_simple()
%6 = tail call i32 (...) @test_rshift_simple()
%7 = tail call i32 (...) @test_shift_complex()
%8 = tail call i32 (...) @test_oddeven()
%9 = tail call i32 (...) @test_greater()
%10 = tail call i32 (...) @test_mul()
%11 = tail call i32 (...) @test_mul_2()
%12 = tail call i32 (...) @test_gcd()
%13 = tail call i32 (...) @test_pow()
%14 = tail call i32 (...) @test_mod()
%15 = tail call i32 (...) @test_mod_2()
%16 = tail call i32 (...) @test_modp()
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}