#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*/ backlight_led_rgb(int, int, int, int);
int /*<<< orphan*/ backlight_rgb(int, int, int);
int /*<<< orphan*/ cap1166_leds(int);
int /*<<< orphan*/ cap1166_polarity(int);
int /*<<< orphan*/ lcd_clear();
int /*<<< orphan*/ lcd_cursor(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ lcd_text_lines(char *, char *, char *);
int /*<<< orphan*/ led_breathe(int, int);
int /*<<< orphan*/ led_breathe_rate(int);
int /*<<< orphan*/ led_breathes(int, int /*<<< orphan*/, int,
                                int /*<<< orphan*/, int, int /*<<< orphan*/);
int led_get_polarity(int);
int led_get_state(int);
int /*<<< orphan*/ led_intensity(int /*<<< orphan*/, int);
int /*<<< orphan*/ led_polarities(int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ led_state(int, int);
int /*<<< orphan*/ led_states(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, int, int, int);
int /*<<< orphan*/ sleep(int);
int main() {
  int LED[5][2];
  int i, j, l, p;
  backlight_rgb(255, 255, 255);
  sleep(1);
  backlight_led_rgb(0, 128, 0, 0);
  sleep(1);
  backlight_led_rgb(1, 128, 0, 0);
  sleep(1);
  backlight_led_rgb(2, 0, 128, 0);
  sleep(1);
  backlight_led_rgb(3, 0, 128, 0);
  sleep(1);
  backlight_led_rgb(4, 0, 0, 128);
  sleep(1);
  backlight_led_rgb(5, 0, 0, 128);
  sleep(1);
  lcd_clear();
  lcd_cursor(0, 0);
  lcd_text_lines("Hello World!", "dothat C library", "(c) P. Biggs");
  cap1166_leds(0);
  for (i = 0; i <= 5; i++) {
    led_state(i, 1);
    sleep(1);
  }
  for (i = 0; i <= 5; i++) {
    led_state(i, 0);
    sleep(1);
  }
  cap1166_polarity(3);
  cap1166_leds(21);
  led_intensity(0, 1);
  for (i = 0; i <= 5; i++) {
    l = led_get_state(i);
    p = led_get_polarity(i);
    printf("LED %i : State - %i ; Polarity = %i\n", i, l, p);
  }
  sleep(1);
  led_polarities(0, 0, 0, 0, 0, 0);
  led_states(0, 0, 0, 0, 0, 1);
  led_breathe(1, 500);
  sleep(1);
  led_breathe(2, 1000);
  sleep(1);
  led_breathe(3, 100);
  sleep(2);
  led_breathe(2, 0);
  sleep(1);
  led_breathe_rate(4000);
  led_breathes(1, 0, 1, 0, 1, 0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xff,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1090 <backlight_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %ecx,%ecx
mov    $0x80,%esi
mov    %ecx,%edi
mov    %ecx,%edx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x1,%edi
mov    $0x80,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
xor    %ecx,%ecx
mov    $0x80,%edx
mov    %ecx,%esi
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
xor    %ecx,%ecx
mov    $0x80,%edx
mov    %ecx,%esi
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x4,%edi
xor    %edx,%edx
mov    $0x80,%ecx
mov    %edx,%esi
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x5,%edi
xor    %edx,%edx
mov    $0x80,%ecx
mov    %edx,%esi
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x0,%al
call   1120 <lcd_clear@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1100 <lcd_cursor@plt>
lea    0xcf7(%rip),%rdi
lea    0xcfd(%rip),%rsi
lea    0xd07(%rip),%rdx
call   1080 <lcd_text_lines@plt>
xor    %edi,%edi
call   1030 <cap1166_leds@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x5,-0x34(%rbp)
jg     1359 <main+0x139>
mov    -0x34(%rbp),%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    132a <main+0x10a>
movl   $0x0,-0x34(%rbp)
cmpl   $0x5,-0x34(%rbp)
jg     138c <main+0x16c>
mov    -0x34(%rbp),%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1360 <main+0x140>
mov    $0x3,%edi
call   1040 <cap1166_polarity@plt>
mov    $0x15,%edi
call   1030 <cap1166_leds@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1110 <led_intensity@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x5,-0x34(%rbp)
jg     13f6 <main+0x1d6>
mov    -0x34(%rbp),%edi
call   10f0 <led_get_state@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x34(%rbp),%edi
call   10b0 <led_get_polarity@plt>
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x40(%rbp),%ecx
lea    0xc48(%rip),%rdi
call   10a0 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13b3 <main+0x193>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1050 <led_polarities@plt>
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
call   10e0 <led_states@plt>
mov    $0x1,%edi
mov    $0x1f4,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
mov    $0x64,%esi
call   10d0 <led_breathe@plt>
mov    $0x2,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0xfa0,%edi
call   10c0 <led_breathe_rate@plt>
mov    $0x1,%r8d
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1060 <led_breathes@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0xff,%edi
mov    $0xff,%esi
mov    $0xff,%edx
call   1090 <backlight_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %edi,%edi
mov    $0x80,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x1,%edi
mov    $0x80,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x80,%edx
xor    %ecx,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x80,%edx
xor    %ecx,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x4,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x80,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x5,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x80,%ecx
call   1070 <backlight_led_rgb@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %eax,%eax
call   1120 <lcd_clear@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1100 <lcd_cursor@plt>
lea    0xcfd(%rip),%rdi
lea    0xd03(%rip),%rsi
lea    0xd0d(%rip),%rdx
call   1080 <lcd_text_lines@plt>
xor    %edi,%edi
call   1030 <cap1166_leds@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x4,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x5,%edi
mov    $0x1,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x4,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1130 <led_state@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
call   1040 <cap1166_polarity@plt>
mov    $0x15,%edi
call   1030 <cap1166_leds@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1110 <led_intensity@plt>
xor    %edi,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
xor    %edi,%edi
call   10b0 <led_get_polarity@plt>
lea    0xbc3(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x1,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
mov    $0x1,%edi
call   10b0 <led_get_polarity@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x2,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
mov    $0x2,%edi
call   10b0 <led_get_polarity@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x3,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
mov    $0x3,%edi
call   10b0 <led_get_polarity@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x4,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
mov    $0x4,%edi
call   10b0 <led_get_polarity@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x5,%edi
call   10f0 <led_get_state@plt>
mov    %eax,%ebp
mov    $0x5,%edi
call   10b0 <led_get_polarity@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   10a0 <printf@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1050 <led_polarities@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   10e0 <led_states@plt>
mov    $0x1,%edi
mov    $0x1f4,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0x3,%edi
mov    $0x64,%esi
call   10d0 <led_breathe@plt>
mov    $0x2,%edi
call   1140 <sleep@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   10d0 <led_breathe@plt>
mov    $0x1,%edi
call   1140 <sleep@plt>
mov    $0xfa0,%edi
call   10c0 <led_breathe_rate@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
call   1060 <led_breathes@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Hello World!\00"
@.str.1 = [17 x i8] c"dothat C library\00"
@.str.2 = [13 x i8] c"(c) P. Biggs\00"
@.str.3 = [37 x i8] c"LED %i : State - %i ; Polarity = %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [2 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 @backlight_rgb(i32 255, i32 255, i32 255)
%8 = call i32 @sleep(i32 1)
%9 = call i32 @backlight_led_rgb(i32 0, i32 128, i32 0, i32 0)
%10 = call i32 @sleep(i32 1)
%11 = call i32 @backlight_led_rgb(i32 1, i32 128, i32 0, i32 0)
%12 = call i32 @sleep(i32 1)
%13 = call i32 @backlight_led_rgb(i32 2, i32 0, i32 128, i32 0)
%14 = call i32 @sleep(i32 1)
%15 = call i32 @backlight_led_rgb(i32 3, i32 0, i32 128, i32 0)
%16 = call i32 @sleep(i32 1)
%17 = call i32 @backlight_led_rgb(i32 4, i32 0, i32 0, i32 128)
%18 = call i32 @sleep(i32 1)
%19 = call i32 @backlight_led_rgb(i32 5, i32 0, i32 0, i32 128)
%20 = call i32 @sleep(i32 1)
%21 = call i32 (...) @lcd_clear()
%22 = call i32 @lcd_cursor(i32 0, i32 0)
%23 = call i32 @lcd_text_lines(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 @cap1166_leds(i32 0)
store i32 0, i32* %3
br label %25
25: ; preds = %32, %0
%26 = load i32, i32* %3
%27 = icmp sle i32 %26, 5
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, i32* %3
%30 = call i32 @led_state(i32 %29, i32 1)
%31 = call i32 @sleep(i32 1)
br label %32
32: ; preds = %28
%33 = load i32, i32* %3
%34 = add nsw i32 %33, 1
store i32 %34, i32* %3
br label %25
35: ; preds = %25
store i32 0, i32* %3
br label %36
36: ; preds = %43, %35
%37 = load i32, i32* %3
%38 = icmp sle i32 %37, 5
br i1 %38, label %39, label %46
39: ; preds = %36
%40 = load i32, i32* %3
%41 = call i32 @led_state(i32 %40, i32 0)
%42 = call i32 @sleep(i32 1)
br label %43
43: ; preds = %39
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %36
46: ; preds = %36
%47 = call i32 @cap1166_polarity(i32 3)
%48 = call i32 @cap1166_leds(i32 21)
%49 = call i32 @led_intensity(i32 0, i32 1)
store i32 0, i32* %3
br label %50
50: ; preds = %62, %46
%51 = load i32, i32* %3
%52 = icmp sle i32 %51, 5
br i1 %52, label %53, label %65
53: ; preds = %50
%54 = load i32, i32* %3
%55 = call i32 @led_get_state(i32 %54)
store i32 %55, i32* %5
%56 = load i32, i32* %3
%57 = call i32 @led_get_polarity(i32 %56)
store i32 %57, i32* %6
%58 = load i32, i32* %3
%59 = load i32, i32* %5
%60 = load i32, i32* %6
%61 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %58, i32 %59, i32 %60)
br label %62
62: ; preds = %53
%63 = load i32, i32* %3
%64 = add nsw i32 %63, 1
store i32 %64, i32* %3
br label %50
65: ; preds = %50
%66 = call i32 @sleep(i32 1)
%67 = call i32 @led_polarities(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%68 = call i32 @led_states(i32 0, i32 0, i32 0, i32 0, i32 0, i32 1)
%69 = call i32 @led_breathe(i32 1, i32 500)
%70 = call i32 @sleep(i32 1)
%71 = call i32 @led_breathe(i32 2, i32 1000)
%72 = call i32 @sleep(i32 1)
%73 = call i32 @led_breathe(i32 3, i32 100)
%74 = call i32 @sleep(i32 2)
%75 = call i32 @led_breathe(i32 2, i32 0)
%76 = call i32 @sleep(i32 1)
%77 = call i32 @led_breathe_rate(i32 4000)
%78 = call i32 @led_breathes(i32 1, i32 0, i32 1, i32 0, i32 1, i32 0)
%79 = load i32, i32* %1
ret i32 %79
}

LLVM IR (-O2):
@.str = [13 x i8] c"Hello World!\00"
@.str.1 = [17 x i8] c"dothat C library\00"
@.str.2 = [13 x i8] c"(c) P. Biggs\00"
@.str.3 = [37 x i8] c"LED %i : State - %i ; Polarity = %i\0A\00"
define i32 @main() {
%1 = tail call i32 @backlight_rgb(i32 255, i32 255, i32 255)
%2 = tail call i32 @sleep(i32 1)
%3 = tail call i32 @backlight_led_rgb(i32 0, i32 128, i32 0, i32 0)
%4 = tail call i32 @sleep(i32 1)
%5 = tail call i32 @backlight_led_rgb(i32 1, i32 128, i32 0, i32 0)
%6 = tail call i32 @sleep(i32 1)
%7 = tail call i32 @backlight_led_rgb(i32 2, i32 0, i32 128, i32 0)
%8 = tail call i32 @sleep(i32 1)
%9 = tail call i32 @backlight_led_rgb(i32 3, i32 0, i32 128, i32 0)
%10 = tail call i32 @sleep(i32 1)
%11 = tail call i32 @backlight_led_rgb(i32 4, i32 0, i32 0, i32 128)
%12 = tail call i32 @sleep(i32 1)
%13 = tail call i32 @backlight_led_rgb(i32 5, i32 0, i32 0, i32 128)
%14 = tail call i32 @sleep(i32 1)
%15 = tail call i32 (...) @lcd_clear()
%16 = tail call i32 @lcd_cursor(i32 0, i32 0)
%17 = tail call i32 @lcd_text_lines(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%18 = tail call i32 @cap1166_leds(i32 0)
%19 = tail call i32 @led_state(i32 0, i32 1)
%20 = tail call i32 @sleep(i32 1)
%21 = tail call i32 @led_state(i32 1, i32 1)
%22 = tail call i32 @sleep(i32 1)
%23 = tail call i32 @led_state(i32 2, i32 1)
%24 = tail call i32 @sleep(i32 1)
%25 = tail call i32 @led_state(i32 3, i32 1)
%26 = tail call i32 @sleep(i32 1)
%27 = tail call i32 @led_state(i32 4, i32 1)
%28 = tail call i32 @sleep(i32 1)
%29 = tail call i32 @led_state(i32 5, i32 1)
%30 = tail call i32 @sleep(i32 1)
%31 = tail call i32 @led_state(i32 0, i32 0)
%32 = tail call i32 @sleep(i32 1)
%33 = tail call i32 @led_state(i32 1, i32 0)
%34 = tail call i32 @sleep(i32 1)
%35 = tail call i32 @led_state(i32 2, i32 0)
%36 = tail call i32 @sleep(i32 1)
%37 = tail call i32 @led_state(i32 3, i32 0)
%38 = tail call i32 @sleep(i32 1)
%39 = tail call i32 @led_state(i32 4, i32 0)
%40 = tail call i32 @sleep(i32 1)
%41 = tail call i32 @led_state(i32 5, i32 0)
%42 = tail call i32 @sleep(i32 1)
%43 = tail call i32 @cap1166_polarity(i32 3)
%44 = tail call i32 @cap1166_leds(i32 21)
%45 = tail call i32 @led_intensity(i32 0, i32 1)
%46 = tail call i32 @led_get_state(i32 0)
%47 = tail call i32 @led_get_polarity(i32 0)
%48 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %46, i32 %47)
%49 = tail call i32 @led_get_state(i32 1)
%50 = tail call i32 @led_get_polarity(i32 1)
%51 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %49, i32 %50)
%52 = tail call i32 @led_get_state(i32 2)
%53 = tail call i32 @led_get_polarity(i32 2)
%54 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 %52, i32 %53)
%55 = tail call i32 @led_get_state(i32 3)
%56 = tail call i32 @led_get_polarity(i32 3)
%57 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 %55, i32 %56)
%58 = tail call i32 @led_get_state(i32 4)
%59 = tail call i32 @led_get_polarity(i32 4)
%60 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 %58, i32 %59)
%61 = tail call i32 @led_get_state(i32 5)
%62 = tail call i32 @led_get_polarity(i32 5)
%63 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 %61, i32 %62)
%64 = tail call i32 @sleep(i32 1)
%65 = tail call i32 @led_polarities(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%66 = tail call i32 @led_states(i32 0, i32 0, i32 0, i32 0, i32 0, i32 1)
%67 = tail call i32 @led_breathe(i32 1, i32 500)
%68 = tail call i32 @sleep(i32 1)
%69 = tail call i32 @led_breathe(i32 2, i32 1000)
%70 = tail call i32 @sleep(i32 1)
%71 = tail call i32 @led_breathe(i32 3, i32 100)
%72 = tail call i32 @sleep(i32 2)
%73 = tail call i32 @led_breathe(i32 2, i32 0)
%74 = tail call i32 @sleep(i32 1)
%75 = tail call i32 @led_breathe_rate(i32 4000)
%76 = tail call i32 @led_breathes(i32 1, i32 0, i32 1, i32 0, i32 1, i32 0)
ret i32 0
}