#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 atoi(char *);
int /*<<< orphan*/ gpio_configure_dir(int, int);
int /*<<< orphan*/ gpio_export(int);
int /*<<< orphan*/ gpio_write_value(int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ start_downcounting(int);
int /*<<< orphan*/ start_randomcounting(int);
int /*<<< orphan*/ start_upcounting(int);
int /*<<< orphan*/ start_updowncounting(int);
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  printf("4 digit 7seg LED up/down/random counter application\n");
  if (argc != 3) {
    printf("usage: %s <direction> <delay>\n", argv[0]);
    printf("valid direction : up, down, updown,random\n");
    printf("recommended delay range : 0  to 1000 \n");
  } else {
    int value = atoi(argv[2]);
    gpio_export(66);
    gpio_export(67);
    gpio_export(69);
    gpio_export(68);
    gpio_export(45);
    gpio_export(44);
    gpio_export(26);
    gpio_export(46);
    gpio_export(48);
    gpio_export(49);
    gpio_export(112);
    gpio_export(115);
    gpio_configure_dir(66, 1);
    gpio_configure_dir(67, 1);
    gpio_configure_dir(69, 1);
    gpio_configure_dir(68, 1);
    gpio_configure_dir(45, 1);
    gpio_configure_dir(44, 1);
    gpio_configure_dir(26, 1);
    gpio_configure_dir(46, 1);
    gpio_configure_dir(48, 1);
    gpio_configure_dir(49, 1);
    gpio_configure_dir(112, 1);
    gpio_configure_dir(115, 1);
    gpio_write_value(66, 0);
    gpio_write_value(67, 0);
    gpio_write_value(69, 0);
    gpio_write_value(68, 0);
    gpio_write_value(45, 0);
    gpio_write_value(44, 0);
    gpio_write_value(26, 0);
    gpio_write_value(46, 0);
    gpio_write_value(48, 0);
    gpio_write_value(49, 0);
    gpio_write_value(112, 0);
    gpio_write_value(115, 0);
    if (strcmp(argv[1], "up") == 0) {
      start_upcounting(value);
    } else if (strcmp(argv[1], "down") == 0) {
      start_downcounting(value);
    } else if (strcmp(argv[1], "updown") == 0) {
      start_updowncounting(value);
    } else if (strcmp(argv[1], "random") == 0) {
      start_randomcounting(value);
    } else {
      printf("Invalid direction values\n");
      printf("valid direction values : up, down,updown,random\n");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
je     1204 <main+0x64>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ac <main+0x30c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    $0x42,%edi
call   1040 <gpio_export@plt>
mov    $0x43,%edi
call   1040 <gpio_export@plt>
mov    $0x45,%edi
call   1040 <gpio_export@plt>
mov    $0x44,%edi
call   1040 <gpio_export@plt>
mov    $0x2d,%edi
call   1040 <gpio_export@plt>
mov    $0x2c,%edi
call   1040 <gpio_export@plt>
mov    $0x1a,%edi
call   1040 <gpio_export@plt>
mov    $0x2e,%edi
call   1040 <gpio_export@plt>
mov    $0x30,%edi
call   1040 <gpio_export@plt>
mov    $0x31,%edi
call   1040 <gpio_export@plt>
mov    $0x70,%edi
call   1040 <gpio_export@plt>
mov    $0x73,%edi
call   1040 <gpio_export@plt>
mov    $0x42,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x43,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x45,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x44,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x2d,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x2c,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x1a,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x2e,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x30,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x31,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x70,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x73,%edi
mov    $0x1,%esi
call   10c0 <gpio_configure_dir@plt>
mov    $0x42,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x43,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x45,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x44,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x2d,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x2c,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x2e,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x30,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x31,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x70,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    $0x73,%edi
xor    %esi,%esi
call   10a0 <gpio_write_value@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcc7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13fb <main+0x25b>
mov    -0x14(%rbp),%edi
call   1090 <start_upcounting@plt>
jmp    14a7 <main+0x307>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xca1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1426 <main+0x286>
mov    -0x14(%rbp),%edi
call   1050 <start_downcounting@plt>
jmp    14a2 <main+0x302>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc74(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1451 <main+0x2b1>
mov    -0x14(%rbp),%edi
call   1080 <start_updowncounting@plt>
jmp    149d <main+0x2fd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc50(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    147c <main+0x2dc>
mov    -0x14(%rbp),%edi
call   1070 <start_randomcounting@plt>
jmp    1498 <main+0x2f8>
lea    0xc34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    149d <main+0x2fd>
jmp    14a2 <main+0x302>
jmp    14a7 <main+0x307>
jmp    14ac <main+0x30c>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe6a(%rip),%rdi
call   1030 <puts@plt>
cmp    $0x3,%ebp
jne    13fd <main+0x24d>
mov    0x10(%rbx),%rdi
call   10c0 <atoi@plt>
mov    %eax,%ebp
mov    $0x42,%edi
call   1050 <gpio_export@plt>
mov    $0x43,%edi
call   1050 <gpio_export@plt>
mov    $0x45,%edi
call   1050 <gpio_export@plt>
mov    $0x44,%edi
call   1050 <gpio_export@plt>
mov    $0x2d,%edi
call   1050 <gpio_export@plt>
mov    $0x2c,%edi
call   1050 <gpio_export@plt>
mov    $0x1a,%edi
call   1050 <gpio_export@plt>
mov    $0x2e,%edi
call   1050 <gpio_export@plt>
mov    $0x30,%edi
call   1050 <gpio_export@plt>
mov    $0x31,%edi
call   1050 <gpio_export@plt>
mov    $0x70,%edi
call   1050 <gpio_export@plt>
mov    $0x73,%edi
call   1050 <gpio_export@plt>
mov    $0x42,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x43,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x45,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x44,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x2d,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x2c,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x1a,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x2e,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x30,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x31,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x70,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x73,%edi
mov    $0x1,%esi
call   10d0 <gpio_configure_dir@plt>
mov    $0x42,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x43,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x45,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x44,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x2d,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x2c,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x2e,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x30,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x31,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x70,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    $0x73,%edi
xor    %esi,%esi
call   10b0 <gpio_write_value@plt>
mov    0x8(%rbx),%rdi
lea    0xc80(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1428 <main+0x278>
mov    0x8(%rbx),%rdi
lea    0xc70(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1431 <main+0x281>
mov    0x8(%rbx),%rdi
lea    0xc59(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     143a <main+0x28a>
mov    0x8(%rbx),%rdi
lea    0xceb(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1443 <main+0x293>
lea    0xc6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xc7b(%rip),%rdi
jmp    1421 <main+0x271>
mov    (%rbx),%rsi
lea    0xbf9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc91(%rip),%rdi
call   1030 <puts@plt>
lea    0xcaf(%rip),%rdi
call   1030 <puts@plt>
jmp    144a <main+0x29a>
mov    %ebp,%edi
call   10a0 <start_upcounting@plt>
jmp    144a <main+0x29a>
mov    %ebp,%edi
call   1060 <start_downcounting@plt>
jmp    144a <main+0x29a>
mov    %ebp,%edi
call   1090 <start_updowncounting@plt>
jmp    144a <main+0x29a>
mov    %ebp,%edi
call   1080 <start_randomcounting@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [53 x i8] c"4 digit 7seg LED up/down/random counter application\0A\00"
@.str.1 = [31 x i8] c"usage: %s <direction> <delay>\0A\00"
@.str.2 = [43 x i8] c"valid direction : up, down, updown,random\0A\00"
@.str.3 = [39 x i8] c"recommended delay range : 0 to 1000 \0A\00"
@.str.4 = [3 x i8] c"up\00"
@.str.5 = [5 x i8] c"down\00"
@.str.6 = [7 x i8] c"updown\00"
@.str.7 = [7 x i8] c"random\00"
@.str.8 = [26 x i8] c"Invalid direction values\0A\00"
@.str.9 = [49 x i8] c"valid direction values : up, down,updown,random\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 0
%13 = load i8*, i8** %12
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
br label %100
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %6
%22 = call i32 @gpio_export(i32 66)
%23 = call i32 @gpio_export(i32 67)
%24 = call i32 @gpio_export(i32 69)
%25 = call i32 @gpio_export(i32 68)
%26 = call i32 @gpio_export(i32 45)
%27 = call i32 @gpio_export(i32 44)
%28 = call i32 @gpio_export(i32 26)
%29 = call i32 @gpio_export(i32 46)
%30 = call i32 @gpio_export(i32 48)
%31 = call i32 @gpio_export(i32 49)
%32 = call i32 @gpio_export(i32 112)
%33 = call i32 @gpio_export(i32 115)
%34 = call i32 @gpio_configure_dir(i32 66, i32 1)
%35 = call i32 @gpio_configure_dir(i32 67, i32 1)
%36 = call i32 @gpio_configure_dir(i32 69, i32 1)
%37 = call i32 @gpio_configure_dir(i32 68, i32 1)
%38 = call i32 @gpio_configure_dir(i32 45, i32 1)
%39 = call i32 @gpio_configure_dir(i32 44, i32 1)
%40 = call i32 @gpio_configure_dir(i32 26, i32 1)
%41 = call i32 @gpio_configure_dir(i32 46, i32 1)
%42 = call i32 @gpio_configure_dir(i32 48, i32 1)
%43 = call i32 @gpio_configure_dir(i32 49, i32 1)
%44 = call i32 @gpio_configure_dir(i32 112, i32 1)
%45 = call i32 @gpio_configure_dir(i32 115, i32 1)
%46 = call i32 @gpio_write_value(i32 66, i32 0)
%47 = call i32 @gpio_write_value(i32 67, i32 0)
%48 = call i32 @gpio_write_value(i32 69, i32 0)
%49 = call i32 @gpio_write_value(i32 68, i32 0)
%50 = call i32 @gpio_write_value(i32 45, i32 0)
%51 = call i32 @gpio_write_value(i32 44, i32 0)
%52 = call i32 @gpio_write_value(i32 26, i32 0)
%53 = call i32 @gpio_write_value(i32 46, i32 0)
%54 = call i32 @gpio_write_value(i32 48, i32 0)
%55 = call i32 @gpio_write_value(i32 49, i32 0)
%56 = call i32 @gpio_write_value(i32 112, i32 0)
%57 = call i32 @gpio_write_value(i32 115, i32 0)
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 1
%60 = load i8*, i8** %59
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %17
%64 = load i32, i32* %6
%65 = call i32 @start_upcounting(i32 %64)
br label %99
66: ; preds = %17
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 1
%69 = load i8*, i8** %68
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %66
%73 = load i32, i32* %6
%74 = call i32 @start_downcounting(i32 %73)
br label %98
75: ; preds = %66
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 1
%78 = load i8*, i8** %77
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %75
%82 = load i32, i32* %6
%83 = call i32 @start_updowncounting(i32 %82)
br label %97
84: ; preds = %75
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i64 1
%87 = load i8*, i8** %86
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %93
90: ; preds = %84
%91 = load i32, i32* %6
%92 = call i32 @start_randomcounting(i32 %91)
br label %96
93: ; preds = %84
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
br label %96
96: ; preds = %93, %90
br label %97
97: ; preds = %96, %81
br label %98
98: ; preds = %97, %72
br label %99
99: ; preds = %98, %63
br label %100
100: ; preds = %99, %10
%101 = load i32, i32* %3
ret i32 %101
}

LLVM IR (-O2):
@.str.1 = [31 x i8] c"usage: %s <direction> <delay>\0A\00"
@.str.4 = [3 x i8] c"up\00"
@.str.5 = [5 x i8] c"down\00"
@.str.6 = [7 x i8] c"updown\00"
@.str.7 = [7 x i8] c"random\00"
@str = [52 x i8] c"4 digit 7seg LED up/down/random counter application\00"
@str.10 = [25 x i8] c"Invalid direction values\00"
@str.11 = [48 x i8] c"valid direction values : up, down,updown,random\00"
@str.12 = [42 x i8] c"valid direction : up, down, updown,random\00"
@str.13 = [38 x i8] c"recommended delay range : 0 to 1000 \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%4 = icmp eq i32 %0, 3
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = load i8*, i8** %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.13, i64 0, i64 0))
br label %77
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = tail call i32 @gpio_export(i32 66)
%15 = tail call i32 @gpio_export(i32 67)
%16 = tail call i32 @gpio_export(i32 69)
%17 = tail call i32 @gpio_export(i32 68)
%18 = tail call i32 @gpio_export(i32 45)
%19 = tail call i32 @gpio_export(i32 44)
%20 = tail call i32 @gpio_export(i32 26)
%21 = tail call i32 @gpio_export(i32 46)
%22 = tail call i32 @gpio_export(i32 48)
%23 = tail call i32 @gpio_export(i32 49)
%24 = tail call i32 @gpio_export(i32 112)
%25 = tail call i32 @gpio_export(i32 115)
%26 = tail call i32 @gpio_configure_dir(i32 66, i32 1)
%27 = tail call i32 @gpio_configure_dir(i32 67, i32 1)
%28 = tail call i32 @gpio_configure_dir(i32 69, i32 1)
%29 = tail call i32 @gpio_configure_dir(i32 68, i32 1)
%30 = tail call i32 @gpio_configure_dir(i32 45, i32 1)
%31 = tail call i32 @gpio_configure_dir(i32 44, i32 1)
%32 = tail call i32 @gpio_configure_dir(i32 26, i32 1)
%33 = tail call i32 @gpio_configure_dir(i32 46, i32 1)
%34 = tail call i32 @gpio_configure_dir(i32 48, i32 1)
%35 = tail call i32 @gpio_configure_dir(i32 49, i32 1)
%36 = tail call i32 @gpio_configure_dir(i32 112, i32 1)
%37 = tail call i32 @gpio_configure_dir(i32 115, i32 1)
%38 = tail call i32 @gpio_write_value(i32 66, i32 0)
%39 = tail call i32 @gpio_write_value(i32 67, i32 0)
%40 = tail call i32 @gpio_write_value(i32 69, i32 0)
%41 = tail call i32 @gpio_write_value(i32 68, i32 0)
%42 = tail call i32 @gpio_write_value(i32 45, i32 0)
%43 = tail call i32 @gpio_write_value(i32 44, i32 0)
%44 = tail call i32 @gpio_write_value(i32 26, i32 0)
%45 = tail call i32 @gpio_write_value(i32 46, i32 0)
%46 = tail call i32 @gpio_write_value(i32 48, i32 0)
%47 = tail call i32 @gpio_write_value(i32 49, i32 0)
%48 = tail call i32 @gpio_write_value(i32 112, i32 0)
%49 = tail call i32 @gpio_write_value(i32 115, i32 0)
%50 = getelementptr inbounds i8*, i8** %1, i64 1
%51 = load i8*, i8** %50
%52 = tail call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %10
%55 = tail call i32 @start_upcounting(i32 %13)
br label %77
56: ; preds = %10
%57 = load i8*, i8** %50
%58 = tail call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = tail call i32 @start_downcounting(i32 %13)
br label %77
62: ; preds = %56
%63 = load i8*, i8** %50
%64 = tail call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @start_updowncounting(i32 %13)
br label %77
68: ; preds = %62
%69 = load i8*, i8** %50
%70 = tail call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = tail call i32 @start_randomcounting(i32 %13)
br label %77
74: ; preds = %68
%75 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.10, i64 0, i64 0))
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.11, i64 0, i64 0))
br label %77
77: ; preds = %54, %66, %74, %72, %60, %5
ret i32 0
}