#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*/ mp_hal_getPwmRGBValue(int);
int /*<<< orphan*/ mp_hal_setPwmRGBValue(int, int);
int /*<<< orphan*/ utest_assertEqualsInt(int, int /*<<< orphan*/);
void testLeds2(void) {
  mp_hal_setPwmRGBValue(0, 8);
  utest_assertEqualsInt(8, mp_hal_getPwmRGBValue(0));
  mp_hal_setPwmRGBValue(1, 5);
  utest_assertEqualsInt(5, mp_hal_getPwmRGBValue(1));
  mp_hal_setPwmRGBValue(2, 9);
  utest_assertEqualsInt(9, mp_hal_getPwmRGBValue(2));
}


x86 assembly (clang, -O0):
<testLeds2>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x8,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
xor    %edi,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    %eax,%esi
mov    $0x8,%edi
call   1050 <utest_assertEqualsInt@plt>
mov    $0x1,%edi
mov    $0x5,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
mov    $0x1,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    %eax,%esi
mov    $0x5,%edi
call   1050 <utest_assertEqualsInt@plt>
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
mov    $0x2,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    %eax,%esi
mov    $0x9,%edi
call   1050 <utest_assertEqualsInt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testLeds2>:
push   %rax
xor    %edi,%edi
mov    $0x8,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
xor    %edi,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    $0x8,%edi
mov    %eax,%esi
call   1050 <utest_assertEqualsInt@plt>
mov    $0x1,%edi
mov    $0x5,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
mov    $0x1,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    $0x5,%edi
mov    %eax,%esi
call   1050 <utest_assertEqualsInt@plt>
mov    $0x2,%edi
mov    $0x9,%esi
call   1040 <mp_hal_setPwmRGBValue@plt>
mov    $0x2,%edi
call   1030 <mp_hal_getPwmRGBValue@plt>
mov    $0x9,%edi
mov    %eax,%esi
pop    %rax
jmp    1050 <utest_assertEqualsInt@plt>

LLVM IR (-O0):
define void @testLeds2() {
%1 = call i32 @mp_hal_setPwmRGBValue(i32 0, i32 8)
%2 = call i32 @mp_hal_getPwmRGBValue(i32 0)
%3 = call i32 @utest_assertEqualsInt(i32 8, i32 %2)
%4 = call i32 @mp_hal_setPwmRGBValue(i32 1, i32 5)
%5 = call i32 @mp_hal_getPwmRGBValue(i32 1)
%6 = call i32 @utest_assertEqualsInt(i32 5, i32 %5)
%7 = call i32 @mp_hal_setPwmRGBValue(i32 2, i32 9)
%8 = call i32 @mp_hal_getPwmRGBValue(i32 2)
%9 = call i32 @utest_assertEqualsInt(i32 9, i32 %8)
ret void
}

LLVM IR (-O2):
define void @testLeds2() {
%1 = tail call i32 @mp_hal_setPwmRGBValue(i32 0, i32 8)
%2 = tail call i32 @mp_hal_getPwmRGBValue(i32 0)
%3 = tail call i32 @utest_assertEqualsInt(i32 8, i32 %2)
%4 = tail call i32 @mp_hal_setPwmRGBValue(i32 1, i32 5)
%5 = tail call i32 @mp_hal_getPwmRGBValue(i32 1)
%6 = tail call i32 @utest_assertEqualsInt(i32 5, i32 %5)
%7 = tail call i32 @mp_hal_setPwmRGBValue(i32 2, i32 9)
%8 = tail call i32 @mp_hal_getPwmRGBValue(i32 2)
%9 = tail call i32 @utest_assertEqualsInt(i32 9, i32 %8)
ret void
}