#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_claim_unclaim();
int /*<<< orphan*/ test_invalid_get_duty_cycle();
int /*<<< orphan*/ test_invalid_get_period();
int /*<<< orphan*/ test_invalid_get_polarity();
int /*<<< orphan*/ test_invalid_set_duty_cycle();
int /*<<< orphan*/ test_invalid_set_period();
int /*<<< orphan*/ test_invalid_set_polarity();
int /*<<< orphan*/ test_set_get_duty_cycle();
int /*<<< orphan*/ test_set_get_duty_percent();
int /*<<< orphan*/ test_set_get_frequency();
int /*<<< orphan*/ test_set_get_period();
int /*<<< orphan*/ test_set_get_polarity();
int main() {
  test_claim_unclaim();
  test_set_get_duty_cycle();
  test_set_get_period();
  test_set_get_polarity();
  test_set_get_duty_percent();
  test_set_get_frequency();
  test_invalid_set_duty_cycle();
  test_invalid_set_period();
  test_invalid_set_polarity();
  test_invalid_get_duty_cycle();
  test_invalid_get_period();
  test_invalid_get_polarity();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1090 <test_claim_unclaim@plt>
mov    $0x0,%al
call   10e0 <test_set_get_duty_cycle@plt>
mov    $0x0,%al
call   1040 <test_set_get_period@plt>
mov    $0x0,%al
call   10c0 <test_set_get_polarity@plt>
mov    $0x0,%al
call   1050 <test_set_get_duty_percent@plt>
mov    $0x0,%al
call   10d0 <test_set_get_frequency@plt>
mov    $0x0,%al
call   1080 <test_invalid_set_duty_cycle@plt>
mov    $0x0,%al
call   10a0 <test_invalid_set_period@plt>
mov    $0x0,%al
call   10b0 <test_invalid_set_polarity@plt>
mov    $0x0,%al
call   1030 <test_invalid_get_duty_cycle@plt>
mov    $0x0,%al
call   1070 <test_invalid_get_period@plt>
mov    $0x0,%al
call   1060 <test_invalid_get_polarity@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1090 <test_claim_unclaim@plt>
xor    %eax,%eax
call   10e0 <test_set_get_duty_cycle@plt>
xor    %eax,%eax
call   1040 <test_set_get_period@plt>
xor    %eax,%eax
call   10c0 <test_set_get_polarity@plt>
xor    %eax,%eax
call   1050 <test_set_get_duty_percent@plt>
xor    %eax,%eax
call   10d0 <test_set_get_frequency@plt>
xor    %eax,%eax
call   1080 <test_invalid_set_duty_cycle@plt>
xor    %eax,%eax
call   10a0 <test_invalid_set_period@plt>
xor    %eax,%eax
call   10b0 <test_invalid_set_polarity@plt>
xor    %eax,%eax
call   1030 <test_invalid_get_duty_cycle@plt>
xor    %eax,%eax
call   1070 <test_invalid_get_period@plt>
xor    %eax,%eax
call   1060 <test_invalid_get_polarity@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_claim_unclaim()
%3 = call i32 (...) @test_set_get_duty_cycle()
%4 = call i32 (...) @test_set_get_period()
%5 = call i32 (...) @test_set_get_polarity()
%6 = call i32 (...) @test_set_get_duty_percent()
%7 = call i32 (...) @test_set_get_frequency()
%8 = call i32 (...) @test_invalid_set_duty_cycle()
%9 = call i32 (...) @test_invalid_set_period()
%10 = call i32 (...) @test_invalid_set_polarity()
%11 = call i32 (...) @test_invalid_get_duty_cycle()
%12 = call i32 (...) @test_invalid_get_period()
%13 = call i32 (...) @test_invalid_get_polarity()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_claim_unclaim()
%2 = tail call i32 (...) @test_set_get_duty_cycle()
%3 = tail call i32 (...) @test_set_get_period()
%4 = tail call i32 (...) @test_set_get_polarity()
%5 = tail call i32 (...) @test_set_get_duty_percent()
%6 = tail call i32 (...) @test_set_get_frequency()
%7 = tail call i32 (...) @test_invalid_set_duty_cycle()
%8 = tail call i32 (...) @test_invalid_set_period()
%9 = tail call i32 (...) @test_invalid_set_polarity()
%10 = tail call i32 (...) @test_invalid_get_duty_cycle()
%11 = tail call i32 (...) @test_invalid_get_period()
%12 = tail call i32 (...) @test_invalid_get_polarity()
ret i32 0
}