#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*/ Usage();
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ exit(int);
scalar_t__ gpio_direction_input(unsigned int);
scalar_t__ gpio_direction_output(unsigned int, int /*<<< orphan*/);
int /*<<< orphan*/ gpio_free(unsigned int);
int gpio_get_value(unsigned int);
scalar_t__ gpio_init();
scalar_t__ gpio_request(unsigned int, char *);
int /*<<< orphan*/ gpio_set_value(unsigned int, int /*<<< orphan*/);
int /*<<< orphan*/ gpio_term();
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int);
scalar_t__ strcmp(char *, char *);
scalar_t__ strtoul(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  char *cmdStr;
  unsigned int gpio;
  if (gpio_init() < 0) {
    perror("gpio_init failed");
    exit(1);
  }
  if ((argc > 4) || (argc < 3)) {
    Usage();
    exit(1);
  }
  cmdStr = argv[1];
  gpio = (unsigned int)strtoul(argv[2], NULL, 0);
  if (argc == 4) {
    char *argStr = argv[3];
    if (strcmp(cmdStr, "request") == 0) {
      if (gpio_request(gpio, argStr) < 0) {
        perror("Request failed");
        exit(1);
      }
    } else if (strcmp(cmdStr, "output") == 0) {
      if (gpio_direction_output(gpio, atoi(argStr)) < 0) {
        perror("gpio_direction_output failed");
        exit(1);
      }
    } else if (strcmp(cmdStr, "set") == 0) {
      gpio_set_value(gpio, atoi(argStr));
    } else {
      Usage();
      exit(1);
    }
  } else if (argc == 3) {
    if (strcmp(cmdStr, "free") == 0) {
      gpio_free(gpio);
    } else if (strcmp(cmdStr, "input") == 0) {
      if (gpio_direction_input(gpio) < 0) {
        perror("gpio_direction_input failed");
        exit(1);
      }
    } else if (strcmp(cmdStr, "get") == 0) {
      int rc = gpio_get_value(gpio);
      if (rc < 0) {
        perror("gpio_get_value failed");
        exit(1);
      }
      printf("%d\n", rc != 0);
    } else {
      Usage();
      exit(1);
    }
  }
  gpio_term();
  exit(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1100 <gpio_init@plt>
cmp    $0x0,%rax
jge    122d <main+0x3d>
lea    0xde2(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
cmpl   $0x4,-0x8(%rbp)
jg     1241 <main+0x51>
cmpl   $0x3,-0x8(%rbp)
jge    1252 <main+0x62>
mov    $0x0,%al
call   1090 <Usage@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    1385 <main+0x195>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xd7c(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12d5 <main+0xe5>
mov    -0x1c(%rbp),%edi
mov    -0x28(%rbp),%rsi
call   1050 <gpio_request@plt>
cmp    $0x0,%rax
jge    12d0 <main+0xe0>
lea    0xd58(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1380 <main+0x190>
mov    -0x18(%rbp),%rdi
lea    0xd48(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    132d <main+0x13d>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
call   10e0 <atoi@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%esi
call   1040 <gpio_direction_output@plt>
cmp    $0x0,%rax
jge    1328 <main+0x138>
lea    0xd16(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    137b <main+0x18b>
mov    -0x18(%rbp),%rdi
lea    0xd14(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1365 <main+0x175>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rdi
call   10e0 <atoi@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%esi
call   10b0 <gpio_set_value@plt>
jmp    1376 <main+0x186>
mov    $0x0,%al
call   1090 <Usage@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    137b <main+0x18b>
jmp    1380 <main+0x190>
jmp    1484 <main+0x294>
cmpl   $0x3,-0x8(%rbp)
jne    147f <main+0x28f>
mov    -0x18(%rbp),%rdi
lea    0xcb6(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13b6 <main+0x1c6>
mov    -0x1c(%rbp),%edi
call   1030 <gpio_free@plt>
jmp    147a <main+0x28a>
mov    -0x18(%rbp),%rdi
lea    0xc94(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13fd <main+0x20d>
mov    -0x1c(%rbp),%edi
call   1110 <gpio_direction_input@plt>
cmp    $0x0,%rax
jge    13f8 <main+0x208>
lea    0xc72(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1475 <main+0x285>
mov    -0x18(%rbp),%rdi
lea    0xc6f(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    145f <main+0x26f>
mov    -0x1c(%rbp),%edi
call   1070 <gpio_get_value@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    1442 <main+0x252>
lea    0xc48(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
cmpl   $0x0,-0x2c(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xc3c(%rip),%rdi
call   1060 <printf@plt>
jmp    1470 <main+0x280>
mov    $0x0,%al
call   1090 <Usage@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1475 <main+0x285>
jmp    147a <main+0x28a>
jmp    147f <main+0x28f>
jmp    1484 <main+0x294>
mov    $0x0,%al
call   1080 <gpio_term@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %edi,%ebx
xor    %eax,%eax
call   1100 <gpio_init@plt>
test   %rax,%rax
jns    121f <main+0x2f>
lea    0xdf0(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    -0x5(%rbx),%eax
cmp    $0xfffffffd,%eax
ja     1238 <main+0x48>
xor    %eax,%eax
call   1090 <Usage@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    0x8(%r15),%r12
mov    0x10(%r15),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %rax,%r14
cmp    $0x4,%ebx
jne    1286 <main+0x96>
mov    0x18(%r15),%r15
lea    0xdb5(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    12a7 <main+0xb7>
mov    %r14d,%edi
mov    %r15,%rsi
call   1050 <gpio_request@plt>
test   %rax,%rax
jns    137d <main+0x18d>
lea    0xd95(%rip),%rdi
jmp    1210 <main+0x20>
lea    0xdc3(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    12e2 <main+0xf2>
mov    %r14d,%edi
call   1030 <gpio_free@plt>
jmp    137d <main+0x18d>
lea    0xd7a(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    130f <main+0x11f>
mov    %r15,%rdi
call   10e0 <atoi@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1040 <gpio_direction_output@plt>
test   %rax,%rax
jns    137d <main+0x18d>
lea    0xd52(%rip),%rdi
jmp    1210 <main+0x20>
lea    0xd6c(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    133b <main+0x14b>
mov    %r14d,%edi
call   1110 <gpio_direction_input@plt>
test   %rax,%rax
jns    137d <main+0x18d>
lea    0xd51(%rip),%rdi
jmp    1210 <main+0x20>
lea    0xd36(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1227 <main+0x37>
mov    %r15,%rdi
call   10e0 <atoi@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   10b0 <gpio_set_value@plt>
jmp    137d <main+0x18d>
lea    0xd35(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1227 <main+0x37>
mov    %r14d,%edi
call   1070 <gpio_get_value@plt>
test   %eax,%eax
jns    136b <main+0x17b>
lea    0xd15(%rip),%rdi
jmp    1210 <main+0x20>
setne  %al
movzbl %al,%esi
lea    0xd19(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <gpio_term@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"gpio_init failed\00"
@.str.1 = [8 x i8] c"request\00"
@.str.2 = [15 x i8] c"Request failed\00"
@.str.3 = [7 x i8] c"output\00"
@.str.4 = [29 x i8] c"gpio_direction_output failed\00"
@.str.5 = [4 x i8] c"set\00"
@.str.6 = [5 x i8] c"free\00"
@.str.7 = [6 x i8] c"input\00"
@.str.8 = [28 x i8] c"gpio_direction_input failed\00"
@.str.9 = [4 x i8] c"get\00"
@.str.10 = [22 x i8] c"gpio_get_value failed\00"
@.str.11 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i64 (...) @gpio_init()
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 4
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %24
21: ; preds = %18, %15
%22 = call i32 (...) @Usage()
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %18
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 1
%27 = load i8*, i8** %26
store i8* %27, i8** %6
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 2
%30 = load i8*, i8** %29
%31 = call i64 @strtoul(i8* %30, i32* null, i32 0)
%32 = trunc i64 %31 to i32
store i32 %32, i32* %7
%33 = load i32, i32* %4
%34 = icmp eq i32 %33, 4
br i1 %34, label %35, label %80
35: ; preds = %24
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 3
%38 = load i8*, i8** %37
store i8* %38, i8** %8
%39 = load i8*, i8** %6
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %35
%43 = load i32, i32* %7
%44 = load i8*, i8** %8
%45 = call i64 @gpio_request(i32 %43, i8* %44)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%49 = call i32 @exit(i32 1)
unreachable
50: ; preds = %42
br label %79
51: ; preds = %35
%52 = load i8*, i8** %6
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load i32, i32* %7
%57 = load i8*, i8** %8
%58 = call i32 @atoi(i8* %57)
%59 = call i64 @gpio_direction_output(i32 %56, i32 %58)
%60 = icmp slt i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%63 = call i32 @exit(i32 1)
unreachable
64: ; preds = %55
br label %78
65: ; preds = %51
%66 = load i8*, i8** %6
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %65
%70 = load i32, i32* %7
%71 = load i8*, i8** %8
%72 = call i32 @atoi(i8* %71)
%73 = call i32 @gpio_set_value(i32 %70, i32 %72)
br label %77
74: ; preds = %65
%75 = call i32 (...) @Usage()
%76 = call i32 @exit(i32 1)
unreachable
77: ; preds = %69
br label %78
78: ; preds = %77, %64
br label %79
79: ; preds = %78, %50
br label %126
80: ; preds = %24
%81 = load i32, i32* %4
%82 = icmp eq i32 %81, 3
br i1 %82, label %83, label %125
83: ; preds = %80
%84 = load i8*, i8** %6
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %83
%88 = load i32, i32* %7
%89 = call i32 @gpio_free(i32 %88)
br label %124
90: ; preds = %83
%91 = load i8*, i8** %6
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %102
94: ; preds = %90
%95 = load i32, i32* %7
%96 = call i64 @gpio_direction_input(i32 %95)
%97 = icmp slt i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%100 = call i32 @exit(i32 1)
unreachable
101: ; preds = %94
br label %123
102: ; preds = %90
%103 = load i8*, i8** %6
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %119
106: ; preds = %102
%107 = load i32, i32* %7
%108 = call i32 @gpio_get_value(i32 %107)
store i32 %108, i32* %9
%109 = load i32, i32* %9
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%113 = call i32 @exit(i32 1)
unreachable
114: ; preds = %106
%115 = load i32, i32* %9
%116 = icmp ne i32 %115, 0
%117 = zext i1 %116 to i32
%118 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %117)
br label %122
119: ; preds = %102
%120 = call i32 (...) @Usage()
%121 = call i32 @exit(i32 1)
unreachable
122: ; preds = %114
br label %123
123: ; preds = %122, %101
br label %124
124: ; preds = %123, %87
br label %125
125: ; preds = %124, %80
br label %126
126: ; preds = %125, %79
%127 = call i32 (...) @gpio_term()
%128 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [17 x i8] c"gpio_init failed\00"
@.str.1 = [8 x i8] c"request\00"
@.str.2 = [15 x i8] c"Request failed\00"
@.str.3 = [7 x i8] c"output\00"
@.str.4 = [29 x i8] c"gpio_direction_output failed\00"
@.str.5 = [4 x i8] c"set\00"
@.str.6 = [5 x i8] c"free\00"
@.str.7 = [6 x i8] c"input\00"
@.str.8 = [28 x i8] c"gpio_direction_input failed\00"
@.str.9 = [4 x i8] c"get\00"
@.str.10 = [22 x i8] c"gpio_get_value failed\00"
@.str.11 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i64 (...) @gpio_init()
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = add i32 %0, -5
%10 = icmp ult i32 %9, -2
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = tail call i32 (...) @Usage()
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %8
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i64 @strtoul(i8* nocapture %18, i32* null, i32 0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %0, 4
br i1 %21, label %22, label %52
22: ; preds = %14
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = tail call i64 @gpio_request(i32 %20, i8* %24)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %82
30: ; preds = %27
%31 = tail call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%32 = tail call i32 @exit(i32 1)
unreachable
33: ; preds = %22
%34 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %43
36: ; preds = %33
%37 = tail call i32 @atoi(i8* %24)
%38 = tail call i64 @gpio_direction_output(i32 %20, i32 %37)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %82
40: ; preds = %36
%41 = tail call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%42 = tail call i32 @exit(i32 1)
unreachable
43: ; preds = %33
%44 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = tail call i32 @atoi(i8* %24)
%48 = tail call i32 @gpio_set_value(i32 %20, i32 %47)
br label %82
49: ; preds = %43
%50 = tail call i32 (...) @Usage()
%51 = tail call i32 @exit(i32 1)
unreachable
52: ; preds = %14
%53 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = tail call i32 @gpio_free(i32 %20)
br label %82
57: ; preds = %52
%58 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %57
%61 = tail call i64 @gpio_direction_input(i32 %20)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %82
63: ; preds = %60
%64 = tail call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%65 = tail call i32 @exit(i32 1)
unreachable
66: ; preds = %57
%67 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %66
%70 = tail call i32 @gpio_get_value(i32 %20)
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = tail call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%74 = tail call i32 @exit(i32 1)
unreachable
75: ; preds = %69
%76 = icmp ne i32 %70, 0
%77 = zext i1 %76 to i32
%78 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %77)
br label %82
79: ; preds = %66
%80 = tail call i32 (...) @Usage()
%81 = tail call i32 @exit(i32 1)
unreachable
82: ; preds = %27, %36, %46, %75, %60, %55
%83 = tail call i32 (...) @gpio_term()
%84 = tail call i32 @exit(i32 0)
unreachable
}