#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*/ printf(char *);
int response(int);
int /*<<< orphan*/ set(int, int, int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ writeport(int, char *);
int init(int speed, int fd) {
  set(fd, 0, 1);
  writeport(fd, "\33");
  writeport(fd, "baud0\n");
  sleep(2);
  int i = 0;
  while (response(fd) == 1) {
    if (i == 0) {
      printf("Trying 2400 baud\n");
      set(fd, 1, 1);
    } else if (i == 1) {
      printf("Trying 4800 baud\n");
      set(fd, 4, 1);
    } else if (i == 2) {
      printf("Trying 9600 baud\n");
      set(fd, 5, 1);
    } else if (i == 3) {
      printf("Trying 9600 baud again\n");
      set(fd, 5, 1);
    } else {
      printf("No response. Check your equipment\n");
      return 1;
    }
    i++;
    writeport(fd, "\27");
    writeport(fd, "baud0\n");
    sleep(2);
    set(fd, 0, 1);
    sleep(2);
  }
  switch (speed) {
  case 1200:
    writeport(fd, "baud0\n");
    sleep(2);
    set(fd, 0, 1);
    sleep(2);
    break;
  case 2400:
    writeport(fd, "baud1\n");
    sleep(2);
    set(fd, 1, 1);
    sleep(2);
    break;
  case 4800:
    writeport(fd, "baud4\n");
    sleep(2);
    set(fd, 4, 1);
    sleep(2);
    break;
  default:
    writeport(fd, "baud5\n");
    sleep(2);
    set(fd, 5, 1);
    sleep(2);
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    -0xc(%rbp),%edi
lea    0xe89(%rip),%rsi
call   1030 <writeport@plt>
mov    -0xc(%rbp),%edi
lea    0xe7c(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    12d4 <init+0x184>
cmpl   $0x0,-0x10(%rbp)
jne    11d7 <init+0x87>
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
mov    $0x1,%edx
mov    %edx,%esi
call   1070 <set@plt>
jmp    1285 <init+0x135>
cmpl   $0x1,-0x10(%rbp)
jne    1204 <init+0xb4>
lea    0xe33(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
mov    $0x4,%esi
mov    $0x1,%edx
call   1070 <set@plt>
jmp    1280 <init+0x130>
cmpl   $0x2,-0x10(%rbp)
jne    1231 <init+0xe1>
lea    0xe18(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
jmp    127b <init+0x12b>
cmpl   $0x3,-0x10(%rbp)
jne    125e <init+0x10e>
lea    0xdfd(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
jmp    1276 <init+0x126>
lea    0xdf2(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13f4 <init+0x2a4>
jmp    127b <init+0x12b>
jmp    1280 <init+0x130>
jmp    1285 <init+0x135>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
lea    0xde2(%rip),%rsi
call   1030 <writeport@plt>
mov    -0xc(%rbp),%edi
lea    0xd5b(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0xc(%rbp),%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
jmp    119c <init+0x4c>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
sub    $0x4b0,%eax
je     1310 <init+0x1c0>
jmp    12ea <init+0x19a>
mov    -0x14(%rbp),%eax
sub    $0x960,%eax
je     1347 <init+0x1f7>
jmp    12fd <init+0x1ad>
mov    -0x14(%rbp),%eax
sub    $0x12c0,%eax
je     137e <init+0x22e>
jmp    13b8 <init+0x268>
mov    -0xc(%rbp),%edi
lea    0xce8(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0xc(%rbp),%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
jmp    13ed <init+0x29d>
mov    -0xc(%rbp),%edi
lea    0xd2b(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0xc(%rbp),%edi
mov    $0x1,%edx
mov    %edx,%esi
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
jmp    13ed <init+0x29d>
mov    -0xc(%rbp),%edi
lea    0xcfb(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0xc(%rbp),%edi
mov    $0x4,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
jmp    13ed <init+0x29d>
mov    -0xc(%rbp),%edi
lea    0xcc8(%rip),%rsi
call   1030 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0xc(%rbp),%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%r14d
mov    %esi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
lea    0xe92(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
lea    0xe86(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    1357 <init+0x207>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1070 <set@plt>
lea    0xe48(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
lea    0xe33(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    1357 <init+0x207>
lea    0xe5b(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
mov    $0x4,%esi
mov    $0x1,%edx
call   1070 <set@plt>
lea    0xddd(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
lea    0xdc8(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    1357 <init+0x207>
lea    0xddf(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
lea    0xd72(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
lea    0xd5d(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    1357 <init+0x207>
lea    0xd61(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    %ebx,%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
lea    0xd06(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
lea    0xcf1(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
call   1050 <response@plt>
cmp    $0x1,%eax
jne    1357 <init+0x207>
lea    0xcd3(%rip),%rdi
call   1030 <puts@plt>
jmp    141d <init+0x2cd>
cmp    $0x12c0,%r14d
je     13c7 <init+0x277>
cmp    $0x960,%r14d
je     13a6 <init+0x256>
cmp    $0x4b0,%r14d
jne    13e8 <init+0x298>
lea    0xc89(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %ebp,%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
jmp    141d <init+0x2cd>
lea    0xc5e(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
mov    $0x1,%esi
jmp    1407 <init+0x2b7>
lea    0xc44(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
mov    $0x4,%esi
jmp    1407 <init+0x2b7>
lea    0xc2a(%rip),%rsi
mov    %ebx,%edi
call   1040 <writeport@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    %ebx,%edi
mov    $0x5,%esi
mov    $0x1,%edx
call   1070 <set@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\1B\00"
@.str.1 = [7 x i8] c"baud0\0A\00"
@.str.2 = [18 x i8] c"Trying 2400 baud\0A\00"
@.str.3 = [18 x i8] c"Trying 4800 baud\0A\00"
@.str.4 = [18 x i8] c"Trying 9600 baud\0A\00"
@.str.5 = [24 x i8] c"Trying 9600 baud again\0A\00"
@.str.6 = [35 x i8] c"No response. Check your equipment\0A\00"
@.str.7 = [2 x i8] c"\17\00"
@.str.8 = [7 x i8] c"baud1\0A\00"
@.str.9 = [7 x i8] c"baud4\0A\00"
@.str.10 = [7 x i8] c"baud5\0A\00"
define i32 @init(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%7 = load i32, i32* %5
%8 = call i32 @set(i32 %7, i32 0, i32 1)
%9 = load i32, i32* %5
%10 = call i32 @writeport(i32 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %5
%12 = call i32 @writeport(i32 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @sleep(i32 2)
store i32 0, i32* %6
br label %14
14: ; preds = %51, %2
%15 = load i32, i32* %5
%16 = call i32 @response(i32 %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %62
18: ; preds = %14
%19 = load i32, i32* %6
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* %5
%24 = call i32 @set(i32 %23, i32 1, i32 1)
br label %51
25: ; preds = %18
%26 = load i32, i32* %6
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%30 = load i32, i32* %5
%31 = call i32 @set(i32 %30, i32 4, i32 1)
br label %50
32: ; preds = %25
%33 = load i32, i32* %6
%34 = icmp eq i32 %33, 2
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%37 = load i32, i32* %5
%38 = call i32 @set(i32 %37, i32 5, i32 1)
br label %49
39: ; preds = %32
%40 = load i32, i32* %6
%41 = icmp eq i32 %40, 3
br i1 %41, label %42, label %46
42: ; preds = %39
%43 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%44 = load i32, i32* %5
%45 = call i32 @set(i32 %44, i32 5, i32 1)
br label %48
46: ; preds = %39
%47 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %3
br label %93
48: ; preds = %42
br label %49
49: ; preds = %48, %35
br label %50
50: ; preds = %49, %28
br label %51
51: ; preds = %50, %21
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
%54 = load i32, i32* %5
%55 = call i32 @writeport(i32 %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%56 = load i32, i32* %5
%57 = call i32 @writeport(i32 %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%58 = call i32 @sleep(i32 2)
%59 = load i32, i32* %5
%60 = call i32 @set(i32 %59, i32 0, i32 1)
%61 = call i32 @sleep(i32 2)
br label %14
62: ; preds = %14
%63 = load i32, i32* %4
switch i32 %63, label %85 [
i32 1200, label %64
i32 2400, label %71
i32 4800, label %78
]
64: ; preds = %62
%65 = load i32, i32* %5
%66 = call i32 @writeport(i32 %65, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%67 = call i32 @sleep(i32 2)
%68 = load i32, i32* %5
%69 = call i32 @set(i32 %68, i32 0, i32 1)
%70 = call i32 @sleep(i32 2)
br label %92
71: ; preds = %62
%72 = load i32, i32* %5
%73 = call i32 @writeport(i32 %72, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%74 = call i32 @sleep(i32 2)
%75 = load i32, i32* %5
%76 = call i32 @set(i32 %75, i32 1, i32 1)
%77 = call i32 @sleep(i32 2)
br label %92
78: ; preds = %62
%79 = load i32, i32* %5
%80 = call i32 @writeport(i32 %79, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%81 = call i32 @sleep(i32 2)
%82 = load i32, i32* %5
%83 = call i32 @set(i32 %82, i32 4, i32 1)
%84 = call i32 @sleep(i32 2)
br label %92
85: ; preds = %62
%86 = load i32, i32* %5
%87 = call i32 @writeport(i32 %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%88 = call i32 @sleep(i32 2)
%89 = load i32, i32* %5
%90 = call i32 @set(i32 %89, i32 5, i32 1)
%91 = call i32 @sleep(i32 2)
br label %92
92: ; preds = %85, %78, %71, %64
store i32 0, i32* %3
br label %93
93: ; preds = %92, %46
%94 = load i32, i32* %3
ret i32 %94
}

LLVM IR (-O2):
@.str = [2 x i8] c"\1B\00"
@.str.1 = [7 x i8] c"baud0\0A\00"
@.str.7 = [2 x i8] c"\17\00"
@.str.8 = [7 x i8] c"baud1\0A\00"
@.str.9 = [7 x i8] c"baud4\0A\00"
@.str.10 = [7 x i8] c"baud5\0A\00"
@str = [34 x i8] c"No response. Check your equipment\00"
@str.11 = [23 x i8] c"Trying 9600 baud again\00"
@str.12 = [17 x i8] c"Trying 9600 baud\00"
@str.13 = [17 x i8] c"Trying 4800 baud\00"
@str.14 = [17 x i8] c"Trying 2400 baud\00"
define i32 @init(i32 %0, i32 %1) {
%3 = tail call i32 @set(i32 %1, i32 0, i32 1)
%4 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @sleep(i32 2)
%7 = tail call i32 @response(i32 %1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %51
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.14, i64 0, i64 0))
%11 = tail call i32 @set(i32 %1, i32 1, i32 1)
%12 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%13 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @sleep(i32 2)
%15 = tail call i32 @set(i32 %1, i32 0, i32 1)
%16 = tail call i32 @sleep(i32 2)
%17 = tail call i32 @response(i32 %1)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %51
19: ; preds = %9
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.13, i64 0, i64 0))
%21 = tail call i32 @set(i32 %1, i32 4, i32 1)
%22 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%23 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call i32 @sleep(i32 2)
%25 = tail call i32 @set(i32 %1, i32 0, i32 1)
%26 = tail call i32 @sleep(i32 2)
%27 = tail call i32 @response(i32 %1)
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %51
29: ; preds = %19
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.12, i64 0, i64 0))
%31 = tail call i32 @set(i32 %1, i32 5, i32 1)
%32 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%33 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%34 = tail call i32 @sleep(i32 2)
%35 = tail call i32 @set(i32 %1, i32 0, i32 1)
%36 = tail call i32 @sleep(i32 2)
%37 = tail call i32 @response(i32 %1)
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %51
39: ; preds = %29
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.11, i64 0, i64 0))
%41 = tail call i32 @set(i32 %1, i32 5, i32 1)
%42 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%43 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%44 = tail call i32 @sleep(i32 2)
%45 = tail call i32 @set(i32 %1, i32 0, i32 1)
%46 = tail call i32 @sleep(i32 2)
%47 = tail call i32 @response(i32 %1)
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %51
49: ; preds = %39
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %72
51: ; preds = %9, %19, %29, %39, %2
switch i32 %0, label %67 [
i32 1200, label %52
i32 2400, label %57
i32 4800, label %62
]
52: ; preds = %51
%53 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%54 = tail call i32 @sleep(i32 2)
%55 = tail call i32 @set(i32 %1, i32 0, i32 1)
%56 = tail call i32 @sleep(i32 2)
br label %72
57: ; preds = %51
%58 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%59 = tail call i32 @sleep(i32 2)
%60 = tail call i32 @set(i32 %1, i32 1, i32 1)
%61 = tail call i32 @sleep(i32 2)
br label %72
62: ; preds = %51
%63 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%64 = tail call i32 @sleep(i32 2)
%65 = tail call i32 @set(i32 %1, i32 4, i32 1)
%66 = tail call i32 @sleep(i32 2)
br label %72
67: ; preds = %51
%68 = tail call i32 @writeport(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%69 = tail call i32 @sleep(i32 2)
%70 = tail call i32 @set(i32 %1, i32 5, i32 1)
%71 = tail call i32 @sleep(i32 2)
br label %72
72: ; preds = %52, %57, %62, %67, %49
%73 = phi i32 [ 1, %49 ], [ 0, %67 ], [ 0, %62 ], [ 0, %57 ], [ 0, %52 ]
ret i32 %73
}