#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*/ fprintf(int /*<<< orphan*/, char *, unsigned char, ...);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ usleep(int);
int write(int, unsigned char *, int);
int cyclon_run(int fd, unsigned char count, unsigned char *data) {
  fprintf(stdout, "will run %d times with address byte 0x%x\n", count, data[0]);
  unsigned char *ptr = &data[1];
  unsigned char act_count = 0;
  do {
    *ptr = 0x00;
    if (write(fd, data, 2) != 2) {
      perror("write");
      return -1;
    }
  } while (0);
  unsigned char i = 0;
  do {
    while (i < 7) {
      fprintf(stdout, "date: 0x%.2x\n", data[1]);
      do {
        if (write(fd, data, 2) != 2) {
          perror("write");
          return -1;
        }
      } while (0);
      *ptr = (1 << i);
      usleep(100000);
      i++;
    }
    while (i > 0) {
      fprintf(stdout, "date: 0x%.2x\n", data[1]);
      do {
        if (write(fd, data, 2) != 2) {
          perror("write");
          return -1;
        }
      } while (0);
      *ptr = (1 << i);
      usleep(100000);
      i--;
    }
    if (count != 0)
      act_count++;
    else
      act_count = 1;
    if (act_count == count)
      do {
        *ptr = 0x00;
        if (write(fd, data, 2) != 2) {
          perror("write");
          return -1;
        }
      } while (0);
  } while (act_count != count);
  return 0;
}


x86 assembly (clang, -O0):
<cyclon_run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %sil,%al
mov    %edi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
mov    -0x9(%rbp),%al
mov    -0x18(%rbp),%rcx
movzbl (%rcx),%ecx
lea    0xe91(%rip),%rsi
movzbl %al,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
je     11c2 <cyclon_run+0x82>
lea    0xe79(%rip),%rdi
call   1050 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1381 <cyclon_run+0x241>
jmp    11c7 <cyclon_run+0x87>
movb   $0x0,-0x22(%rbp)
jmp    11d0 <cyclon_run+0x90>
movzbl -0x22(%rbp),%eax
cmp    $0x7,%eax
jge    125d <cyclon_run+0x11d>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
lea    0xe3f(%rip),%rsi
movzbl 0x1(%rax),%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
je     122e <cyclon_run+0xee>
lea    0xe0d(%rip),%rdi
call   1050 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1381 <cyclon_run+0x241>
jmp    1233 <cyclon_run+0xf3>
movzbl -0x22(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    -0x22(%rbp),%al
add    $0x1,%al
mov    %al,-0x22(%rbp)
jmp    11d0 <cyclon_run+0x90>
jmp    1262 <cyclon_run+0x122>
movzbl -0x22(%rbp),%eax
cmp    $0x0,%eax
jle    12ef <cyclon_run+0x1af>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
lea    0xdad(%rip),%rsi
movzbl 0x1(%rax),%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
je     12c0 <cyclon_run+0x180>
lea    0xd7b(%rip),%rdi
call   1050 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1381 <cyclon_run+0x241>
jmp    12c5 <cyclon_run+0x185>
movzbl -0x22(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    -0x22(%rbp),%al
add    $0xff,%al
mov    %al,-0x22(%rbp)
jmp    1262 <cyclon_run+0x122>
movzbl -0x9(%rbp),%eax
cmp    $0x0,%eax
je     1309 <cyclon_run+0x1c9>
mov    -0x21(%rbp),%al
add    $0x1,%al
mov    %al,-0x21(%rbp)
jmp    130d <cyclon_run+0x1cd>
movb   $0x1,-0x21(%rbp)
movzbl -0x21(%rbp),%eax
movzbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    1365 <cyclon_run+0x225>
jmp    1322 <cyclon_run+0x1e2>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
je     135b <cyclon_run+0x21b>
lea    0xce0(%rip),%rdi
call   1050 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1381 <cyclon_run+0x241>
jmp    1360 <cyclon_run+0x220>
jmp    1365 <cyclon_run+0x225>
jmp    136a <cyclon_run+0x22a>
movzbl -0x21(%rbp),%eax
movzbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    11cb <cyclon_run+0x8b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cyclon_run>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %esi,%r14d
mov    %edi,%ebp
mov    0x2e86(%rip),%r12
mov    (%r12),%edi
movzbl (%rdx),%ecx
lea    0xe98(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
movb   $0x0,0x1(%rbx)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
lea    0xe9b(%rip),%r15
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x1,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x2,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x4,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x8,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x10,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x20,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x40,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x80,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x40,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x20,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x10,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x8,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x4,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
mov    (%r12),%edi
movzbl 0x1(%rbx),%edx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmp    $0x2,%eax
jne    14e1 <cyclon_run+0x3a1>
movb   $0x2,0x1(%rbx)
mov    $0x186a0,%edi
call   1060 <usleep@plt>
add    $0x1,%r13b
test   %r14b,%r14b
movzbl %r13b,%r13d
mov    $0x1,%eax
cmove  %eax,%r13d
cmp    %r14b,%r13b
jne    11a0 <cyclon_run+0x60>
movb   $0x0,0x1(%rbx)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x2,%ecx
je     14f2 <cyclon_run+0x3b2>
lea    0xb42(%rip),%rdi
call   1050 <perror@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [42 x i8] c"will run %d times with address byte 0x%x\0A\00"
@.str.1 = [6 x i8] c"write\00"
@.str.2 = [14 x i8] c"date: 0x%.2x\0A\00"
define i32 @cyclon_run(i32 %0, i8 zeroext %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8
%10 = alloca i8
store i32 %0, i32* %5
store i8 %1, i8* %6
store i8* %2, i8** %7
%11 = load i32, i32* @stdout
%12 = load i8, i8* %6
%13 = load i8*, i8** %7
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = call i32 (i32, i8*, i8, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8 zeroext %12, i32 %16)
%18 = load i8*, i8** %7
%19 = getelementptr inbounds i8, i8* %18, i64 1
store i8* %19, i8** %8
store i8 0, i8* %9
br label %20
20: ; preds = %3
%21 = load i8*, i8** %8
store i8 0, i8* %21
%22 = load i32, i32* %5
%23 = load i8*, i8** %7
%24 = call i32 @write(i32 %22, i8* %23, i32 2)
%25 = icmp ne i32 %24, 2
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %4
br label %119
28: ; preds = %20
br label %29
29: ; preds = %28
store i8 0, i8* %10
br label %30
30: ; preds = %112, %29
br label %31
31: ; preds = %49, %30
%32 = load i8, i8* %10
%33 = zext i8 %32 to i32
%34 = icmp slt i32 %33, 7
br i1 %34, label %35, label %58
35: ; preds = %31
%36 = load i32, i32* @stdout
%37 = load i8*, i8** %7
%38 = getelementptr inbounds i8, i8* %37, i64 1
%39 = load i8, i8* %38
%40 = call i32 (i32, i8*, i8, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %39)
br label %41
41: ; preds = %35
%42 = load i32, i32* %5
%43 = load i8*, i8** %7
%44 = call i32 @write(i32 %42, i8* %43, i32 2)
%45 = icmp ne i32 %44, 2
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %4
br label %119
48: ; preds = %41
br label %49
49: ; preds = %48
%50 = load i8, i8* %10
%51 = zext i8 %50 to i32
%52 = shl i32 1, %51
%53 = trunc i32 %52 to i8
%54 = load i8*, i8** %8
store i8 %53, i8* %54
%55 = call i32 @usleep(i32 100000)
%56 = load i8, i8* %10
%57 = add i8 %56, 1
store i8 %57, i8* %10
br label %31
58: ; preds = %31
br label %59
59: ; preds = %77, %58
%60 = load i8, i8* %10
%61 = zext i8 %60 to i32
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %86
63: ; preds = %59
%64 = load i32, i32* @stdout
%65 = load i8*, i8** %7
%66 = getelementptr inbounds i8, i8* %65, i64 1
%67 = load i8, i8* %66
%68 = call i32 (i32, i8*, i8, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %67)
br label %69
69: ; preds = %63
%70 = load i32, i32* %5
%71 = load i8*, i8** %7
%72 = call i32 @write(i32 %70, i8* %71, i32 2)
%73 = icmp ne i32 %72, 2
br i1 %73, label %74, label %76
74: ; preds = %69
%75 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %4
br label %119
76: ; preds = %69
br label %77
77: ; preds = %76
%78 = load i8, i8* %10
%79 = zext i8 %78 to i32
%80 = shl i32 1, %79
%81 = trunc i32 %80 to i8
%82 = load i8*, i8** %8
store i8 %81, i8* %82
%83 = call i32 @usleep(i32 100000)
%84 = load i8, i8* %10
%85 = add i8 %84, -1
store i8 %85, i8* %10
br label %59
86: ; preds = %59
%87 = load i8, i8* %6
%88 = zext i8 %87 to i32
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %93
90: ; preds = %86
%91 = load i8, i8* %9
%92 = add i8 %91, 1
store i8 %92, i8* %9
br label %94
93: ; preds = %86
store i8 1, i8* %9
br label %94
94: ; preds = %93, %90
%95 = load i8, i8* %9
%96 = zext i8 %95 to i32
%97 = load i8, i8* %6
%98 = zext i8 %97 to i32
%99 = icmp eq i32 %96, %98
br i1 %99, label %100, label %111
100: ; preds = %94
br label %101
101: ; preds = %100
%102 = load i8*, i8** %8
store i8 0, i8* %102
%103 = load i32, i32* %5
%104 = load i8*, i8** %7
%105 = call i32 @write(i32 %103, i8* %104, i32 2)
%106 = icmp ne i32 %105, 2
br i1 %106, label %107, label %109
107: ; preds = %101
%108 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %4
br label %119
109: ; preds = %101
br label %110
110: ; preds = %109
br label %111
111: ; preds = %110, %94
br label %112
112: ; preds = %111
%113 = load i8, i8* %9
%114 = zext i8 %113 to i32
%115 = load i8, i8* %6
%116 = zext i8 %115 to i32
%117 = icmp ne i32 %114, %116
br i1 %117, label %30, label %118
118: ; preds = %112
store i32 0, i32* %4
br label %119
119: ; preds = %118, %107, %74, %46, %26
%120 = load i32, i32* %4
ret i32 %120
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [42 x i8] c"will run %d times with address byte 0x%x\0A\00"
@.str.1 = [6 x i8] c"write\00"
@.str.2 = [14 x i8] c"date: 0x%.2x\0A\00"
define i32 @cyclon_run(i32 %0, i8 zeroext %1, i8* nocapture %2) {
%4 = load i32, i32* @stdout
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8 zeroext %1, i32 %6)
%8 = getelementptr inbounds i8, i8* %2, i64 1
store i8 0, i8* %8
%9 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %119
11: ; preds = %3
%12 = icmp eq i8 %1, 0
br label %13
13: ; preds = %11, %111
%14 = phi i8 [ %114, %111 ], [ 0, %11 ]
%15 = load i32, i32* @stdout
%16 = load i8, i8* %8
%17 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %16)
%18 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %119
20: ; preds = %13
store i8 1, i8* %8
%21 = tail call i32 @usleep(i32 100000)
%22 = load i32, i32* @stdout
%23 = load i8, i8* %8
%24 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %23)
%25 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %119
27: ; preds = %20
store i8 2, i8* %8
%28 = tail call i32 @usleep(i32 100000)
%29 = load i32, i32* @stdout
%30 = load i8, i8* %8
%31 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %30)
%32 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%33 = icmp eq i32 %32, 2
br i1 %33, label %34, label %119
34: ; preds = %27
store i8 4, i8* %8
%35 = tail call i32 @usleep(i32 100000)
%36 = load i32, i32* @stdout
%37 = load i8, i8* %8
%38 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %37)
%39 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%40 = icmp eq i32 %39, 2
br i1 %40, label %41, label %119
41: ; preds = %34
store i8 8, i8* %8
%42 = tail call i32 @usleep(i32 100000)
%43 = load i32, i32* @stdout
%44 = load i8, i8* %8
%45 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %44)
%46 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%47 = icmp eq i32 %46, 2
br i1 %47, label %48, label %119
48: ; preds = %41
store i8 16, i8* %8
%49 = tail call i32 @usleep(i32 100000)
%50 = load i32, i32* @stdout
%51 = load i8, i8* %8
%52 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %51)
%53 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%54 = icmp eq i32 %53, 2
br i1 %54, label %55, label %119
55: ; preds = %48
store i8 32, i8* %8
%56 = tail call i32 @usleep(i32 100000)
%57 = load i32, i32* @stdout
%58 = load i8, i8* %8
%59 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %58)
%60 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%61 = icmp eq i32 %60, 2
br i1 %61, label %62, label %119
62: ; preds = %55
store i8 64, i8* %8
%63 = tail call i32 @usleep(i32 100000)
%64 = load i32, i32* @stdout
%65 = load i8, i8* %8
%66 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %65)
%67 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%68 = icmp eq i32 %67, 2
br i1 %68, label %69, label %119
69: ; preds = %62
store i8 -128, i8* %8
%70 = tail call i32 @usleep(i32 100000)
%71 = load i32, i32* @stdout
%72 = load i8, i8* %8
%73 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %72)
%74 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%75 = icmp eq i32 %74, 2
br i1 %75, label %76, label %119
76: ; preds = %69
store i8 64, i8* %8
%77 = tail call i32 @usleep(i32 100000)
%78 = load i32, i32* @stdout
%79 = load i8, i8* %8
%80 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %79)
%81 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%82 = icmp eq i32 %81, 2
br i1 %82, label %83, label %119
83: ; preds = %76
store i8 32, i8* %8
%84 = tail call i32 @usleep(i32 100000)
%85 = load i32, i32* @stdout
%86 = load i8, i8* %8
%87 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %86)
%88 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%89 = icmp eq i32 %88, 2
br i1 %89, label %90, label %119
90: ; preds = %83
store i8 16, i8* %8
%91 = tail call i32 @usleep(i32 100000)
%92 = load i32, i32* @stdout
%93 = load i8, i8* %8
%94 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %93)
%95 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%96 = icmp eq i32 %95, 2
br i1 %96, label %97, label %119
97: ; preds = %90
store i8 8, i8* %8
%98 = tail call i32 @usleep(i32 100000)
%99 = load i32, i32* @stdout
%100 = load i8, i8* %8
%101 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %100)
%102 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%103 = icmp eq i32 %102, 2
br i1 %103, label %104, label %119
104: ; preds = %97
store i8 4, i8* %8
%105 = tail call i32 @usleep(i32 100000)
%106 = load i32, i32* @stdout
%107 = load i8, i8* %8
%108 = tail call i32 (i32, i8*, i8, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8 zeroext %107)
%109 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%110 = icmp eq i32 %109, 2
br i1 %110, label %111, label %119
111: ; preds = %104
store i8 2, i8* %8
%112 = tail call i32 @usleep(i32 100000)
%113 = add i8 %14, 1
%114 = select i1 %12, i8 1, i8 %113
%115 = icmp eq i8 %114, %1
br i1 %115, label %116, label %13
116: ; preds = %111
store i8 0, i8* %8
%117 = tail call i32 @write(i32 %0, i8* %2, i32 2)
%118 = icmp eq i32 %117, 2
br i1 %118, label %121, label %119
119: ; preds = %62, %69, %76, %83, %90, %97, %104, %13, %20, %27, %34, %41, %48, %55, %116, %3
%120 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %121
121: ; preds = %119, %116
%122 = phi i32 [ 0, %116 ], [ -1, %119 ]
ret i32 %122
}