#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 *, int, char, char);
scalar_t__ isxdigit(char);
int open_serial_port();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ stderr;
int strlen(char *);
int /*<<< orphan*/ system(char *);
int open_rfcomm(char *mac) {
  char s[64];
  int i = 0, ret = -1;
  if (strlen(mac) == 17) {
    sprintf(s, "sudo /usr/bin/rfcomm connect /dev/rfcomm %s &", mac);
    for (i = 2; i < 17; i += 3)
      mac[i] = ':';
    for (i = 0; i < 17; i += 3) {
      if (isxdigit(mac[i]) == 0 || isxdigit(mac[i + 1]) == 0)
        break;
    }
  }
  if (i == 18) {
    printf("[%s]\n", s);
    system(s);
    for (i = 0; i < 15; i++) {
      sleep(1);
      ret = open_serial_port();
      if (ret >= 0)
        break;
    }
  } else
    fprintf(stderr, "Invalid Mac Address ERROR (i=%d,%c%c)\n", i, mac[i],
            mac[i + 1]);
  return ret;
}


x86 assembly (clang, -O0):
<open_rfcomm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0xffffffff,-0x58(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x11,%eax
jne    1254 <open_rfcomm+0xd4>
lea    -0x50(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe45(%rip),%rsi
call   1070 <sprintf@plt>
movl   $0x2,-0x54(%rbp)
cmpl   $0x11,-0x54(%rbp)
jge    11eb <open_rfcomm+0x6b>
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movb   $0x3a,(%rax,%rcx,1)
mov    -0x54(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x54(%rbp)
jmp    11c7 <open_rfcomm+0x47>
movl   $0x0,-0x54(%rbp)
cmpl   $0x11,-0x54(%rbp)
jge    124f <open_rfcomm+0xcf>
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isxdigit@plt>
cmp    $0x0,%rax
je     1237 <open_rfcomm+0xb7>
mov    -0x8(%rbp),%rax
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isxdigit@plt>
cmp    $0x0,%rax
jne    123c <open_rfcomm+0xbc>
jmp    124f <open_rfcomm+0xcf>
jmp    1241 <open_rfcomm+0xc1>
mov    -0x54(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x54(%rbp)
jmp    11f2 <open_rfcomm+0x72>
jmp    1254 <open_rfcomm+0xd4>
cmpl   $0x12,-0x54(%rbp)
jne    12c3 <open_rfcomm+0x143>
lea    -0x50(%rbp),%rsi
lea    0xdc5(%rip),%rdi
call   1050 <printf@plt>
lea    -0x50(%rbp),%rdi
call   1040 <system@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0xf,-0x54(%rbp)
jge    12be <open_rfcomm+0x13e>
mov    $0x1,%edi
call   1090 <sleep@plt>
mov    $0x0,%al
call   10a0 <open_serial_port@plt>
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
jl     12ab <open_rfcomm+0x12b>
jmp    12be <open_rfcomm+0x13e>
jmp    12b0 <open_rfcomm+0x130>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    127e <open_rfcomm+0xfe>
jmp    12fb <open_rfcomm+0x17b>
mov    0x2d16(%rip),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x8(%rbp),%rax
mov    -0x54(%rbp),%esi
add    $0x1,%esi
movslq %esi,%r8
lea    0xd46(%rip),%rsi
movsbl %cl,%ecx
movsbl (%rax,%r8,1),%r8d
call   1060 <fprintf@plt>
mov    -0x58(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<open_rfcomm>:
push   %rbp
push   %rbx
sub    $0x48,%rsp
mov    %rdi,%rbx
call   1030 <strlen@plt>
xor    %ebp,%ebp
cmp    $0x11,%eax
jne    142a <open_rfcomm+0x2aa>
lea    0xe60(%rip),%rsi
mov    %rsp,%rdi
mov    %rbx,%rdx
call   1070 <sprintf@plt>
movb   $0x3a,0x2(%rbx)
movb   $0x3a,0x5(%rbx)
movb   $0x3a,0x8(%rbx)
movb   $0x3a,0xb(%rbx)
movb   $0x3a,0xe(%rbx)
movsbl (%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x1(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x3(%rbx),%edi
call   1080 <isxdigit@plt>
mov    $0x3,%ebp
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x4(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x6(%rbx),%edi
call   1080 <isxdigit@plt>
mov    $0x6,%ebp
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x7(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x9(%rbx),%edi
call   1080 <isxdigit@plt>
mov    $0x9,%ebp
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0xa(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0xc(%rbx),%edi
call   1080 <isxdigit@plt>
mov    $0xc,%ebp
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0xd(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0xf(%rbx),%edi
call   1080 <isxdigit@plt>
mov    $0xf,%ebp
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
movsbl 0x10(%rbx),%edi
call   1080 <isxdigit@plt>
test   %rax,%rax
je     142a <open_rfcomm+0x2aa>
lea    0xd78(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
test   %eax,%eax
jns    1452 <open_rfcomm+0x2d2>
mov    $0x1,%edi
call   1090 <sleep@plt>
xor    %eax,%eax
call   10a0 <open_serial_port@plt>
jmp    1452 <open_rfcomm+0x2d2>
mov    0x2baf(%rip),%rax
mov    (%rax),%edi
mov    %ebp,%eax
movsbl (%rbx,%rax,1),%ecx
movsbl 0x1(%rbx,%rax,1),%r8d
lea    0xbee(%rip),%rsi
mov    %ebp,%edx
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [46 x i8] c"sudo /usr/bin/rfcomm connect /dev/rfcomm %s &\00"
@.str.1 = [6 x i8] c"[%s]\0A\00"
@stderr = global i32 0
@.str.2 = [39 x i8] c"Invalid Mac Address ERROR (i=%d,%c%c)\0A\00"
define i32 @open_rfcomm(i8* %0) {
%2 = alloca i8*
%3 = alloca [64 x i8]
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %4
store i32 -1, i32* %5
%6 = load i8*, i8** %2
%7 = call i32 @strlen(i8* %6)
%8 = icmp eq i32 %7, 17
br i1 %8, label %9, label %51
9: ; preds = %1
%10 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%11 = load i8*, i8** %2
%12 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %11)
store i32 2, i32* %4
br label %13
13: ; preds = %21, %9
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 17
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load i8*, i8** %2
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %17, i64 %19
store i8 58, i8* %20
br label %21
21: ; preds = %16
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 3
store i32 %23, i32* %4
br label %13
24: ; preds = %13
store i32 0, i32* %4
br label %25
25: ; preds = %47, %24
%26 = load i32, i32* %4
%27 = icmp slt i32 %26, 17
br i1 %27, label %28, label %50
28: ; preds = %25
%29 = load i8*, i8** %2
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %29, i64 %31
%33 = load i8, i8* %32
%34 = call i64 @isxdigit(i8 signext %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %45, label %36
36: ; preds = %28
%37 = load i8*, i8** %2
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %37, i64 %40
%42 = load i8, i8* %41
%43 = call i64 @isxdigit(i8 signext %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %36, %28
br label %50
46: ; preds = %36
br label %47
47: ; preds = %46
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 3
store i32 %49, i32* %4
br label %25
50: ; preds = %45, %25
br label %51
51: ; preds = %50, %1
%52 = load i32, i32* %4
%53 = icmp eq i32 %52, 18
br i1 %53, label %54, label %73
54: ; preds = %51
%55 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%56 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %55)
%57 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%58 = call i32 @system(i8* %57)
store i32 0, i32* %4
br label %59
59: ; preds = %69, %54
%60 = load i32, i32* %4
%61 = icmp slt i32 %60, 15
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = call i32 @sleep(i32 1)
%64 = call i32 (...) @open_serial_port()
store i32 %64, i32* %5
%65 = load i32, i32* %5
%66 = icmp sge i32 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %62
br label %72
68: ; preds = %62
br label %69
69: ; preds = %68
%70 = load i32, i32* %4
%71 = add nsw i32 %70, 1
store i32 %71, i32* %4
br label %59
72: ; preds = %67, %59
br label %88
73: ; preds = %51
%74 = load i32, i32* @stderr
%75 = load i32, i32* %4
%76 = load i8*, i8** %2
%77 = load i32, i32* %4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, i8* %76, i64 %78
%80 = load i8, i8* %79
%81 = load i8*, i8** %2
%82 = load i32, i32* %4
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %81, i64 %84
%86 = load i8, i8* %85
%87 = call i32 @fprintf(i32 %74, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i32 %75, i8 signext %80, i8 signext %86)
br label %88
88: ; preds = %73, %72
%89 = load i32, i32* %5
ret i32 %89
}

LLVM IR (-O2):
@.str = [46 x i8] c"sudo /usr/bin/rfcomm connect /dev/rfcomm %s &\00"
@.str.1 = [6 x i8] c"[%s]\0A\00"
@stderr = global i32 0
@.str.2 = [39 x i8] c"Invalid Mac Address ERROR (i=%d,%c%c)\0A\00"
define i32 @open_rfcomm(i8* %0) {
%2 = alloca [64 x i8]
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @strlen(i8* %0)
%5 = icmp eq i32 %4, 17
br i1 %5, label %6, label %132
6: ; preds = %1
%7 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = getelementptr inbounds i8, i8* %0, i64 2
store i8 58, i8* %8
%9 = getelementptr inbounds i8, i8* %0, i64 5
store i8 58, i8* %9
%10 = getelementptr inbounds i8, i8* %0, i64 8
store i8 58, i8* %10
%11 = getelementptr inbounds i8, i8* %0, i64 11
store i8 58, i8* %11
%12 = getelementptr inbounds i8, i8* %0, i64 14
store i8 58, i8* %12
%13 = load i8, i8* %0
%14 = tail call i64 @isxdigit(i8 signext %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %132, label %16
16: ; preds = %6
%17 = getelementptr inbounds i8, i8* %0, i64 1
%18 = load i8, i8* %17
%19 = tail call i64 @isxdigit(i8 signext %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %132, label %21
21: ; preds = %16
%22 = getelementptr inbounds i8, i8* %0, i64 3
%23 = load i8, i8* %22
%24 = tail call i64 @isxdigit(i8 signext %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %132, label %26
26: ; preds = %21
%27 = getelementptr inbounds i8, i8* %0, i64 4
%28 = load i8, i8* %27
%29 = tail call i64 @isxdigit(i8 signext %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %132, label %31
31: ; preds = %26
%32 = getelementptr inbounds i8, i8* %0, i64 6
%33 = load i8, i8* %32
%34 = tail call i64 @isxdigit(i8 signext %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %132, label %36
36: ; preds = %31
%37 = getelementptr inbounds i8, i8* %0, i64 7
%38 = load i8, i8* %37
%39 = tail call i64 @isxdigit(i8 signext %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %132, label %41
41: ; preds = %36
%42 = getelementptr inbounds i8, i8* %0, i64 9
%43 = load i8, i8* %42
%44 = tail call i64 @isxdigit(i8 signext %43)
%45 = icmp eq i64 %44, 0
br i1 %45, label %132, label %46
46: ; preds = %41
%47 = getelementptr inbounds i8, i8* %0, i64 10
%48 = load i8, i8* %47
%49 = tail call i64 @isxdigit(i8 signext %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %132, label %51
51: ; preds = %46
%52 = getelementptr inbounds i8, i8* %0, i64 12
%53 = load i8, i8* %52
%54 = tail call i64 @isxdigit(i8 signext %53)
%55 = icmp eq i64 %54, 0
br i1 %55, label %132, label %56
56: ; preds = %51
%57 = getelementptr inbounds i8, i8* %0, i64 13
%58 = load i8, i8* %57
%59 = tail call i64 @isxdigit(i8 signext %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %132, label %61
61: ; preds = %56
%62 = getelementptr inbounds i8, i8* %0, i64 15
%63 = load i8, i8* %62
%64 = tail call i64 @isxdigit(i8 signext %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %132, label %66
66: ; preds = %61
%67 = getelementptr inbounds i8, i8* %0, i64 16
%68 = load i8, i8* %67
%69 = tail call i64 @isxdigit(i8 signext %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %132, label %71
71: ; preds = %66
%72 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%73 = call i32 @system(i8* %3)
%74 = call i32 @sleep(i32 1)
%75 = call i32 (...) @open_serial_port()
%76 = icmp sgt i32 %75, -1
br i1 %76, label %143, label %77
77: ; preds = %71
%78 = call i32 @sleep(i32 1)
%79 = call i32 (...) @open_serial_port()
%80 = icmp sgt i32 %79, -1
br i1 %80, label %143, label %81
81: ; preds = %77
%82 = call i32 @sleep(i32 1)
%83 = call i32 (...) @open_serial_port()
%84 = icmp sgt i32 %83, -1
br i1 %84, label %143, label %85
85: ; preds = %81
%86 = call i32 @sleep(i32 1)
%87 = call i32 (...) @open_serial_port()
%88 = icmp sgt i32 %87, -1
br i1 %88, label %143, label %89
89: ; preds = %85
%90 = call i32 @sleep(i32 1)
%91 = call i32 (...) @open_serial_port()
%92 = icmp sgt i32 %91, -1
br i1 %92, label %143, label %93
93: ; preds = %89
%94 = call i32 @sleep(i32 1)
%95 = call i32 (...) @open_serial_port()
%96 = icmp sgt i32 %95, -1
br i1 %96, label %143, label %97
97: ; preds = %93
%98 = call i32 @sleep(i32 1)
%99 = call i32 (...) @open_serial_port()
%100 = icmp sgt i32 %99, -1
br i1 %100, label %143, label %101
101: ; preds = %97
%102 = call i32 @sleep(i32 1)
%103 = call i32 (...) @open_serial_port()
%104 = icmp sgt i32 %103, -1
br i1 %104, label %143, label %105
105: ; preds = %101
%106 = call i32 @sleep(i32 1)
%107 = call i32 (...) @open_serial_port()
%108 = icmp sgt i32 %107, -1
br i1 %108, label %143, label %109
109: ; preds = %105
%110 = call i32 @sleep(i32 1)
%111 = call i32 (...) @open_serial_port()
%112 = icmp sgt i32 %111, -1
br i1 %112, label %143, label %113
113: ; preds = %109
%114 = call i32 @sleep(i32 1)
%115 = call i32 (...) @open_serial_port()
%116 = icmp sgt i32 %115, -1
br i1 %116, label %143, label %117
117: ; preds = %113
%118 = call i32 @sleep(i32 1)
%119 = call i32 (...) @open_serial_port()
%120 = icmp sgt i32 %119, -1
br i1 %120, label %143, label %121
121: ; preds = %117
%122 = call i32 @sleep(i32 1)
%123 = call i32 (...) @open_serial_port()
%124 = icmp sgt i32 %123, -1
br i1 %124, label %143, label %125
125: ; preds = %121
%126 = call i32 @sleep(i32 1)
%127 = call i32 (...) @open_serial_port()
%128 = icmp sgt i32 %127, -1
br i1 %128, label %143, label %129
129: ; preds = %125
%130 = call i32 @sleep(i32 1)
%131 = call i32 (...) @open_serial_port()
br label %143
132: ; preds = %16, %6, %21, %26, %31, %36, %41, %46, %51, %56, %61, %66, %1
%133 = phi i32 [ 0, %1 ], [ 0, %6 ], [ 0, %16 ], [ 3, %21 ], [ 3, %26 ], [ 6, %31 ], [ 6, %36 ], [ 9, %41 ], [ 9, %46 ], [ 12, %51 ], [ 12, %56 ], [ 15, %61 ], [ 15, %66 ]
%134 = load i32, i32* @stderr
%135 = zext i32 %133 to i64
%136 = getelementptr inbounds i8, i8* %0, i64 %135
%137 = load i8, i8* %136
%138 = add nuw nsw i32 %133, 1
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %0, i64 %139
%141 = load i8, i8* %140
%142 = tail call i32 @fprintf(i32 %134, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i32 %133, i8 signext %137, i8 signext %141)
br label %143
143: ; preds = %129, %71, %77, %81, %85, %89, %93, %97, %101, %105, %109, %113, %117, %121, %125, %132
%144 = phi i32 [ -1, %132 ], [ %75, %71 ], [ %79, %77 ], [ %83, %81 ], [ %87, %85 ], [ %91, %89 ], [ %95, %93 ], [ %99, %97 ], [ %103, %101 ], [ %107, %105 ], [ %111, %109 ], [ %115, %113 ], [ %119, %117 ], [ %123, %121 ], [ %127, %125 ], [ %131, %129 ]
ret i32 %144
}