#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*/ sleep_wbit(int, int);
unsigned int strlen(char *);
int sleep_wreg(unsigned int portal, char *bit_field) {
  unsigned int tms;
  unsigned int i, j;
  sleep_wbit(0, 0);
  sleep_wbit(0, 1);
  sleep_wbit(0, 1);
  sleep_wbit(0, 0);
  sleep_wbit(0, 0);
  for (i = 0; i < 11; i++) {
    if (i < 10)
      sleep_wbit((portal >> i) & 1, 0);
    else
      sleep_wbit((portal >> i) & 1, 1);
  }
  sleep_wbit(0, 1);
  if (bit_field == 0) {
    sleep_wbit(0, 0);
    return (0);
  }
  sleep_wbit(0, 1);
  sleep_wbit(0, 0);
  sleep_wbit(0, 0);
  i = strlen(bit_field);
  while (i && (bit_field[i] == '_' || bit_field[i] == ' ')) {
    bit_field[i] = 0;
    i--;
  }
  for (i = 0; i < 1000000; i++) {
    if (bit_field[i] == '_' || bit_field[i] == ' ')
      continue;
    if (bit_field[i + 1] == 0)
      tms = 1;
    else
      tms = 0;
    if (bit_field[i] == '1')
      sleep_wbit(1, tms);
    else if (bit_field[i] == '0')
      sleep_wbit(0, tms);
    else if (bit_field[i] == 'F') {
      for (j = 0; j < 4; j++)
        sleep_wbit(1, tms);
    } else if (bit_field[i] == 0)
      break;
    else
      return (-1);
  }
  if (i == 1000000)
    return (-1);
  sleep_wbit(0, 1);
  sleep_wbit(0, 0);
  return (0);
}


x86 assembly (clang, -O0):
<sleep_wreg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0xb,-0x18(%rbp)
jae    11bc <sleep_wreg+0x9c>
cmpl   $0xa,-0x18(%rbp)
jae    1194 <sleep_wreg+0x74>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%ecx
shr    %cl,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
jmp    11a9 <sleep_wreg+0x89>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%ecx
shr    %cl,%edi
and    $0x1,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
jmp    11ae <sleep_wreg+0x8e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1169 <sleep_wreg+0x49>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
cmpq   $0x0,-0x10(%rbp)
jne    11e8 <sleep_wreg+0xc8>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
movl   $0x0,-0x4(%rbp)
jmp    13ef <sleep_wreg+0x2cf>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x1d(%rbp)
je     1254 <sleep_wreg+0x134>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%ecx
mov    $0x1,%al
cmp    $0x5f,%ecx
mov    %al,-0x1e(%rbp)
je     124e <sleep_wreg+0x12e>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x1e(%rbp)
mov    -0x1e(%rbp),%al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
test   $0x1,%al
jne    1264 <sleep_wreg+0x144>
jmp    127d <sleep_wreg+0x15d>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    1212 <sleep_wreg+0xf2>
movl   $0x0,-0x18(%rbp)
cmpl   $0xf4240,-0x18(%rbp)
jae    13ba <sleep_wreg+0x29a>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5f,%eax
je     12b9 <sleep_wreg+0x199>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    12be <sleep_wreg+0x19e>
jmp    13ac <sleep_wreg+0x28c>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    12e3 <sleep_wreg+0x1c3>
movl   $0x1,-0x14(%rbp)
jmp    12ea <sleep_wreg+0x1ca>
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x31,%eax
jne    1310 <sleep_wreg+0x1f0>
mov    -0x14(%rbp),%esi
mov    $0x1,%edi
call   1040 <sleep_wbit@plt>
jmp    13a7 <sleep_wreg+0x287>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
jne    1333 <sleep_wreg+0x213>
mov    -0x14(%rbp),%esi
xor    %edi,%edi
call   1040 <sleep_wbit@plt>
jmp    13a2 <sleep_wreg+0x282>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x46,%eax
jne    1378 <sleep_wreg+0x258>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jae    1373 <sleep_wreg+0x253>
mov    -0x14(%rbp),%esi
mov    $0x1,%edi
call   1040 <sleep_wbit@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    134e <sleep_wreg+0x22e>
jmp    139d <sleep_wreg+0x27d>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    1391 <sleep_wreg+0x271>
jmp    13ba <sleep_wreg+0x29a>
movl   $0xffffffff,-0x4(%rbp)
jmp    13ef <sleep_wreg+0x2cf>
jmp    13a2 <sleep_wreg+0x282>
jmp    13a7 <sleep_wreg+0x287>
jmp    13ac <sleep_wreg+0x28c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1284 <sleep_wreg+0x164>
cmpl   $0xf4240,-0x18(%rbp)
jne    13d3 <sleep_wreg+0x2b3>
movl   $0xffffffff,-0x4(%rbp)
jmp    13ef <sleep_wreg+0x2cf>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1040 <sleep_wbit@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sleep_wreg>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %edi,%ebp
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%r14d
shr    $0xa,%r14d
and    $0x1,%r14d
mov    %ebp,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    %edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x2,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x3,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x4,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x5,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x6,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x7,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %ebp,%edi
shr    $0x8,%edi
and    $0x1,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
shr    $0x9,%ebp
and    $0x1,%ebp
mov    %ebp,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %r14d,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
test   %r15,%r15
je     1316 <sleep_wreg+0x1f6>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
je     126c <sleep_wreg+0x14c>
mov    %eax,%eax
jmp    125d <sleep_wreg+0x13d>
nopl   0x0(%rax)
movb   $0x0,(%r15,%rax,1)
add    $0xffffffffffffffff,%rax
test   %eax,%eax
je     126c <sleep_wreg+0x14c>
movzbl (%r15,%rax,1),%ecx
cmp    $0x5f,%cl
je     1250 <sleep_wreg+0x130>
cmp    $0x20,%cl
je     1250 <sleep_wreg+0x130>
mov    $0x1,%ebx
jmp    1297 <sleep_wreg+0x177>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14d,%edi
mov    %ebp,%esi
call   1040 <sleep_wbit@plt>
add    $0x1,%rbx
cmp    $0xf4241,%rbx
je     12ff <sleep_wreg+0x1df>
movzbl -0x1(%r15,%rbx,1),%ecx
cmp    $0x20,%cl
je     128a <sleep_wreg+0x16a>
cmp    $0x5f,%cl
je     128a <sleep_wreg+0x16a>
xor    %ebp,%ebp
cmpb   $0x0,(%r15,%rbx,1)
sete   %bpl
mov    $0xffffffff,%eax
cmp    $0x30,%cl
jle    12f8 <sleep_wreg+0x1d8>
mov    $0x1,%r14d
cmp    $0x31,%cl
je     1280 <sleep_wreg+0x160>
cmp    $0x46,%cl
jne    1321 <sleep_wreg+0x201>
mov    $0x1,%r14d
mov    $0x1,%edi
mov    %ebp,%esi
call   1040 <sleep_wbit@plt>
mov    $0x1,%edi
mov    %ebp,%esi
call   1040 <sleep_wbit@plt>
mov    $0x1,%edi
mov    %ebp,%esi
call   1040 <sleep_wbit@plt>
jmp    1280 <sleep_wreg+0x160>
jne    1306 <sleep_wreg+0x1e6>
xor    %r14d,%r14d
jmp    1280 <sleep_wreg+0x160>
mov    $0xffffffff,%eax
jmp    1321 <sleep_wreg+0x201>
test   %cl,%cl
jne    1321 <sleep_wreg+0x201>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <sleep_wbit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <sleep_wbit@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @sleep_wreg(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
%9 = call i32 @sleep_wbit(i32 0, i32 0)
%10 = call i32 @sleep_wbit(i32 0, i32 1)
%11 = call i32 @sleep_wbit(i32 0, i32 1)
%12 = call i32 @sleep_wbit(i32 0, i32 0)
%13 = call i32 @sleep_wbit(i32 0, i32 0)
store i32 0, i32* %7
br label %14
14: ; preds = %33, %2
%15 = load i32, i32* %7
%16 = icmp ult i32 %15, 11
br i1 %16, label %17, label %36
17: ; preds = %14
%18 = load i32, i32* %7
%19 = icmp ult i32 %18, 10
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load i32, i32* %4
%22 = load i32, i32* %7
%23 = lshr i32 %21, %22
%24 = and i32 %23, 1
%25 = call i32 @sleep_wbit(i32 %24, i32 0)
br label %32
26: ; preds = %17
%27 = load i32, i32* %4
%28 = load i32, i32* %7
%29 = lshr i32 %27, %28
%30 = and i32 %29, 1
%31 = call i32 @sleep_wbit(i32 %30, i32 1)
br label %32
32: ; preds = %26, %20
br label %33
33: ; preds = %32
%34 = load i32, i32* %7
%35 = add i32 %34, 1
store i32 %35, i32* %7
br label %14
36: ; preds = %14
%37 = call i32 @sleep_wbit(i32 0, i32 1)
%38 = load i8*, i8** %5
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @sleep_wbit(i32 0, i32 0)
store i32 0, i32* %3
br label %174
42: ; preds = %36
%43 = call i32 @sleep_wbit(i32 0, i32 1)
%44 = call i32 @sleep_wbit(i32 0, i32 0)
%45 = call i32 @sleep_wbit(i32 0, i32 0)
%46 = load i8*, i8** %5
%47 = call i32 @strlen(i8* %46)
store i32 %47, i32* %7
br label %48
48: ; preds = %71, %42
%49 = load i32, i32* %7
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %69
51: ; preds = %48
%52 = load i8*, i8** %5
%53 = load i32, i32* %7
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %52, i64 %54
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 95
br i1 %58, label %67, label %59
59: ; preds = %51
%60 = load i8*, i8** %5
%61 = load i32, i32* %7
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %60, i64 %62
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 32
br label %67
67: ; preds = %59, %51
%68 = phi i1 [ true, %51 ], [ %66, %59 ]
br label %69
69: ; preds = %67, %48
%70 = phi i1 [ false, %48 ], [ %68, %67 ]
br i1 %70, label %71, label %78
71: ; preds = %69
%72 = load i8*, i8** %5
%73 = load i32, i32* %7
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds i8, i8* %72, i64 %74
store i8 0, i8* %75
%76 = load i32, i32* %7
%77 = add i32 %76, -1
store i32 %77, i32* %7
br label %48
78: ; preds = %69
store i32 0, i32* %7
br label %79
79: ; preds = %164, %78
%80 = load i32, i32* %7
%81 = icmp ult i32 %80, 1000000
br i1 %81, label %82, label %167
82: ; preds = %79
%83 = load i8*, i8** %5
%84 = load i32, i32* %7
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds i8, i8* %83, i64 %85
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 95
br i1 %89, label %98, label %90
90: ; preds = %82
%91 = load i8*, i8** %5
%92 = load i32, i32* %7
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %91, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 32
br i1 %97, label %98, label %99
98: ; preds = %90, %82
br label %164
99: ; preds = %90
%100 = load i8*, i8** %5
%101 = load i32, i32* %7
%102 = add i32 %101, 1
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds i8, i8* %100, i64 %103
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %99
store i32 1, i32* %6
br label %110
109: ; preds = %99
store i32 0, i32* %6
br label %110
110: ; preds = %109, %108
%111 = load i8*, i8** %5
%112 = load i32, i32* %7
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds i8, i8* %111, i64 %113
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 49
br i1 %117, label %118, label %121
118: ; preds = %110
%119 = load i32, i32* %6
%120 = call i32 @sleep_wbit(i32 1, i32 %119)
br label %163
121: ; preds = %110
%122 = load i8*, i8** %5
%123 = load i32, i32* %7
%124 = zext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %122, i64 %124
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 48
br i1 %128, label %129, label %132
129: ; preds = %121
%130 = load i32, i32* %6
%131 = call i32 @sleep_wbit(i32 0, i32 %130)
br label %162
132: ; preds = %121
%133 = load i8*, i8** %5
%134 = load i32, i32* %7
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %133, i64 %135
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp eq i32 %138, 70
br i1 %139, label %140, label %151
140: ; preds = %132
store i32 0, i32* %8
br label %141
141: ; preds = %147, %140
%142 = load i32, i32* %8
%143 = icmp ult i32 %142, 4
br i1 %143, label %144, label %150
144: ; preds = %141
%145 = load i32, i32* %6
%146 = call i32 @sleep_wbit(i32 1, i32 %145)
br label %147
147: ; preds = %144
%148 = load i32, i32* %8
%149 = add i32 %148, 1
store i32 %149, i32* %8
br label %141
150: ; preds = %141
br label %161
151: ; preds = %132
%152 = load i8*, i8** %5
%153 = load i32, i32* %7
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds i8, i8* %152, i64 %154
%156 = load i8, i8* %155
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %160
159: ; preds = %151
br label %167
160: ; preds = %151
store i32 -1, i32* %3
br label %174
161: ; preds = %150
br label %162
162: ; preds = %161, %129
br label %163
163: ; preds = %162, %118
br label %164
164: ; preds = %163, %98
%165 = load i32, i32* %7
%166 = add i32 %165, 1
store i32 %166, i32* %7
br label %79
167: ; preds = %159, %79
%168 = load i32, i32* %7
%169 = icmp eq i32 %168, 1000000
br i1 %169, label %170, label %171
170: ; preds = %167
store i32 -1, i32* %3
br label %174
171: ; preds = %167
%172 = call i32 @sleep_wbit(i32 0, i32 1)
%173 = call i32 @sleep_wbit(i32 0, i32 0)
store i32 0, i32* %3
br label %174
174: ; preds = %171, %170, %160, %40
%175 = load i32, i32* %3
ret i32 %175
}

LLVM IR (-O2):
define i32 @sleep_wreg(i32 %0, i8* %1) {
%3 = tail call i32 @sleep_wbit(i32 0, i32 0)
%4 = tail call i32 @sleep_wbit(i32 0, i32 1)
%5 = tail call i32 @sleep_wbit(i32 0, i32 1)
%6 = tail call i32 @sleep_wbit(i32 0, i32 0)
%7 = tail call i32 @sleep_wbit(i32 0, i32 0)
%8 = lshr i32 %0, 10
%9 = and i32 %8, 1
%10 = and i32 %0, 1
%11 = tail call i32 @sleep_wbit(i32 %10, i32 0)
%12 = lshr i32 %0, 1
%13 = and i32 %12, 1
%14 = tail call i32 @sleep_wbit(i32 %13, i32 0)
%15 = lshr i32 %0, 2
%16 = and i32 %15, 1
%17 = tail call i32 @sleep_wbit(i32 %16, i32 0)
%18 = lshr i32 %0, 3
%19 = and i32 %18, 1
%20 = tail call i32 @sleep_wbit(i32 %19, i32 0)
%21 = lshr i32 %0, 4
%22 = and i32 %21, 1
%23 = tail call i32 @sleep_wbit(i32 %22, i32 0)
%24 = lshr i32 %0, 5
%25 = and i32 %24, 1
%26 = tail call i32 @sleep_wbit(i32 %25, i32 0)
%27 = lshr i32 %0, 6
%28 = and i32 %27, 1
%29 = tail call i32 @sleep_wbit(i32 %28, i32 0)
%30 = lshr i32 %0, 7
%31 = and i32 %30, 1
%32 = tail call i32 @sleep_wbit(i32 %31, i32 0)
%33 = lshr i32 %0, 8
%34 = and i32 %33, 1
%35 = tail call i32 @sleep_wbit(i32 %34, i32 0)
%36 = lshr i32 %0, 9
%37 = and i32 %36, 1
%38 = tail call i32 @sleep_wbit(i32 %37, i32 0)
%39 = tail call i32 @sleep_wbit(i32 %9, i32 1)
%40 = tail call i32 @sleep_wbit(i32 0, i32 1)
%41 = icmp eq i8* %1, null
br i1 %41, label %82, label %42
42: ; preds = %2
%43 = tail call i32 @sleep_wbit(i32 0, i32 1)
%44 = tail call i32 @sleep_wbit(i32 0, i32 0)
%45 = tail call i32 @sleep_wbit(i32 0, i32 0)
%46 = tail call i32 @strlen(i8* %1)
%47 = icmp eq i32 %46, 0
br i1 %47, label %58, label %48
48: ; preds = %42
%49 = zext i32 %46 to i64
br label %50
50: ; preds = %48, %54
%51 = phi i64 [ %49, %48 ], [ %55, %54 ]
%52 = getelementptr inbounds i8, i8* %1, i64 %51
%53 = load i8, i8* %52
switch i8 %53, label %58 [
i8 95, label %54
i8 32, label %54
]
54: ; preds = %50, %50
store i8 0, i8* %52
%55 = add nsw i64 %51, -1
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %50
58: ; preds = %54, %50, %42
br label %59
59: ; preds = %58, %77
%60 = phi i64 [ %78, %77 ], [ 0, %58 ]
%61 = getelementptr inbounds i8, i8* %1, i64 %60
%62 = load i8, i8* %61
switch i8 %62, label %63 [
i8 95, label %77
i8 32, label %77
]
63: ; preds = %59
%64 = add nuw nsw i64 %60, 1
%65 = getelementptr inbounds i8, i8* %1, i64 %64
%66 = load i8, i8* %65
%67 = icmp eq i8 %66, 0
%68 = zext i1 %67 to i32
switch i8 %62, label %84 [
i8 49, label %74
i8 48, label %73
i8 70, label %69
i8 0, label %80
]
69: ; preds = %63
%70 = tail call i32 @sleep_wbit(i32 1, i32 %68)
%71 = tail call i32 @sleep_wbit(i32 1, i32 %68)
%72 = tail call i32 @sleep_wbit(i32 1, i32 %68)
br label %74
73: ; preds = %63
br label %74
74: ; preds = %63, %73, %69
%75 = phi i32 [ 1, %69 ], [ 0, %73 ], [ 1, %63 ]
%76 = tail call i32 @sleep_wbit(i32 %75, i32 %68)
br label %77
77: ; preds = %74, %59, %59
%78 = add nuw nsw i64 %60, 1
%79 = icmp eq i64 %78, 1000000
br i1 %79, label %84, label %59
80: ; preds = %63
%81 = tail call i32 @sleep_wbit(i32 0, i32 1)
br label %82
82: ; preds = %2, %80
%83 = tail call i32 @sleep_wbit(i32 0, i32 0)
br label %84
84: ; preds = %63, %77, %82
%85 = phi i32 [ 0, %82 ], [ -1, %77 ], [ -1, %63 ]
ret i32 %85
}