#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*/ test_add();
int /*<<< orphan*/ test_add_fetch();
int /*<<< orphan*/ test_and();
int /*<<< orphan*/ test_and_fetch();
int /*<<< orphan*/ test_fetch_add();
int /*<<< orphan*/ test_fetch_and();
int /*<<< orphan*/ test_fetch_nand();
int /*<<< orphan*/ test_fetch_or();
int /*<<< orphan*/ test_fetch_sub();
int /*<<< orphan*/ test_fetch_xor();
int /*<<< orphan*/ test_nand();
int /*<<< orphan*/ test_nand_fetch();
int /*<<< orphan*/ test_or();
int /*<<< orphan*/ test_or_fetch();
int /*<<< orphan*/ test_sub();
int /*<<< orphan*/ test_sub_fetch();
int /*<<< orphan*/ test_xor();
int /*<<< orphan*/ test_xor_fetch();
main() {
  test_fetch_add();
  test_fetch_sub();
  test_fetch_and();
  test_fetch_nand();
  test_fetch_xor();
  test_fetch_or();
  test_add_fetch();
  test_sub_fetch();
  test_and_fetch();
  test_nand_fetch();
  test_xor_fetch();
  test_or_fetch();
  test_add();
  test_sub();
  test_and();
  test_nand();
  test_xor();
  test_or();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <test_fetch_add@plt>
mov    $0x0,%al
call   1040 <test_fetch_sub@plt>
mov    $0x0,%al
call   10d0 <test_fetch_and@plt>
mov    $0x0,%al
call   10f0 <test_fetch_nand@plt>
mov    $0x0,%al
call   1140 <test_fetch_xor@plt>
mov    $0x0,%al
call   1100 <test_fetch_or@plt>
mov    $0x0,%al
call   1120 <test_add_fetch@plt>
mov    $0x0,%al
call   1090 <test_sub_fetch@plt>
mov    $0x0,%al
call   10c0 <test_and_fetch@plt>
mov    $0x0,%al
call   1110 <test_nand_fetch@plt>
mov    $0x0,%al
call   1070 <test_xor_fetch@plt>
mov    $0x0,%al
call   10a0 <test_or_fetch@plt>
mov    $0x0,%al
call   1130 <test_add@plt>
mov    $0x0,%al
call   10b0 <test_sub@plt>
mov    $0x0,%al
call   10e0 <test_and@plt>
mov    $0x0,%al
call   1080 <test_nand@plt>
mov    $0x0,%al
call   1030 <test_xor@plt>
mov    $0x0,%al
call   1060 <test_or@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test_fetch_add@plt>
xor    %eax,%eax
call   1040 <test_fetch_sub@plt>
xor    %eax,%eax
call   10d0 <test_fetch_and@plt>
xor    %eax,%eax
call   10f0 <test_fetch_nand@plt>
xor    %eax,%eax
call   1140 <test_fetch_xor@plt>
xor    %eax,%eax
call   1100 <test_fetch_or@plt>
xor    %eax,%eax
call   1120 <test_add_fetch@plt>
xor    %eax,%eax
call   1090 <test_sub_fetch@plt>
xor    %eax,%eax
call   10c0 <test_and_fetch@plt>
xor    %eax,%eax
call   1110 <test_nand_fetch@plt>
xor    %eax,%eax
call   1070 <test_xor_fetch@plt>
xor    %eax,%eax
call   10a0 <test_or_fetch@plt>
xor    %eax,%eax
call   1130 <test_add@plt>
xor    %eax,%eax
call   10b0 <test_sub@plt>
xor    %eax,%eax
call   10e0 <test_and@plt>
xor    %eax,%eax
call   1080 <test_nand@plt>
xor    %eax,%eax
call   1030 <test_xor@plt>
xor    %eax,%eax
call   1060 <test_or@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_fetch_add()
%3 = call i32 (...) @test_fetch_sub()
%4 = call i32 (...) @test_fetch_and()
%5 = call i32 (...) @test_fetch_nand()
%6 = call i32 (...) @test_fetch_xor()
%7 = call i32 (...) @test_fetch_or()
%8 = call i32 (...) @test_add_fetch()
%9 = call i32 (...) @test_sub_fetch()
%10 = call i32 (...) @test_and_fetch()
%11 = call i32 (...) @test_nand_fetch()
%12 = call i32 (...) @test_xor_fetch()
%13 = call i32 (...) @test_or_fetch()
%14 = call i32 (...) @test_add()
%15 = call i32 (...) @test_sub()
%16 = call i32 (...) @test_and()
%17 = call i32 (...) @test_nand()
%18 = call i32 (...) @test_xor()
%19 = call i32 (...) @test_or()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_fetch_add()
%2 = tail call i32 (...) @test_fetch_sub()
%3 = tail call i32 (...) @test_fetch_and()
%4 = tail call i32 (...) @test_fetch_nand()
%5 = tail call i32 (...) @test_fetch_xor()
%6 = tail call i32 (...) @test_fetch_or()
%7 = tail call i32 (...) @test_add_fetch()
%8 = tail call i32 (...) @test_sub_fetch()
%9 = tail call i32 (...) @test_and_fetch()
%10 = tail call i32 (...) @test_nand_fetch()
%11 = tail call i32 (...) @test_xor_fetch()
%12 = tail call i32 (...) @test_or_fetch()
%13 = tail call i32 (...) @test_add()
%14 = tail call i32 (...) @test_sub()
%15 = tail call i32 (...) @test_and()
%16 = tail call i32 (...) @test_nand()
%17 = tail call i32 (...) @test_xor()
%18 = tail call i32 (...) @test_or()
ret i32 0
}