#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 */
struct ringbuf {
  int dummy;
};

/* Variables and functions */
int ringbuf_filled(struct ringbuf *);
unsigned char ringbuf_sneak(struct ringbuf *, int);
int lnpscanpacket(struct ringbuf *buf, int *size, int finished) {
  int pos = 0, avail;
  unsigned char length;
  unsigned char checksum = 0xff;
  avail = ringbuf_filled(buf);
  if (avail > 255 + 3)
    return (2);
  if (avail < 3)
    return (((finished) && (avail > 0)) ? 2 : 0);
  if (ringbuf_sneak(buf, pos) == 0xf0) {
    length = ringbuf_sneak(buf, pos + 1);
    if (avail < 3 + length)
      return (((finished) && (avail > 0)) ? 2 : 0);
    while (pos < 3 + length - 1)
      checksum = (checksum + ringbuf_sneak(buf, pos++)) & 0xff;
    if ((checksum == ringbuf_sneak(buf, pos)) && (pos >= 3)) {
      *size = pos + 1;
      return (1);
    } else
      return (2);
  }
  if (ringbuf_sneak(buf, pos) == 0xf1) {
    length = ringbuf_sneak(buf, pos + 1);
    if (avail < 3 + length)
      return (((finished) && (avail > 0)) ? 2 : 0);
    while (pos < 3 + length - 1)
      checksum = (checksum + ringbuf_sneak(buf, pos++)) & 0xff;
    if ((checksum == ringbuf_sneak(buf, pos)) && (pos >= 5)) {
      *size = pos + 1;
      return (1);
    } else
      return (2);
  }
  return (2);
}


x86 assembly (clang, -O0):
<lnpscanpacket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movb   $0xff,-0x26(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <ringbuf_filled@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x102,-0x24(%rbp)
jle    1163 <lnpscanpacket+0x43>
movl   $0x2,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
cmpl   $0x3,-0x24(%rbp)
jge    119e <lnpscanpacket+0x7e>
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x27(%rbp)
je     1186 <lnpscanpacket+0x66>
cmpl   $0x0,-0x24(%rbp)
setg   %al
mov    %al,-0x27(%rbp)
mov    -0x27(%rbp),%dl
xor    %eax,%eax
mov    $0x2,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%eax
cmp    $0xf0,%eax
jne    12aa <lnpscanpacket+0x18a>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
add    $0x1,%esi
call   1030 <ringbuf_sneak@plt>
mov    %al,-0x25(%rbp)
mov    -0x24(%rbp),%eax
movzbl -0x25(%rbp),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jge    120d <lnpscanpacket+0xed>
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x28(%rbp)
je     11f5 <lnpscanpacket+0xd5>
cmpl   $0x0,-0x24(%rbp)
setg   %al
mov    %al,-0x28(%rbp)
mov    -0x28(%rbp),%dl
xor    %eax,%eax
mov    $0x2,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
jmp    1212 <lnpscanpacket+0xf2>
mov    -0x20(%rbp),%eax
movzbl -0x25(%rbp),%ecx
add    $0x3,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1259 <lnpscanpacket+0x139>
movzbl -0x26(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
call   1030 <ringbuf_sneak@plt>
mov    %al,%cl
mov    -0x2c(%rbp),%eax
movzbl %cl,%ecx
add    %ecx,%eax
and    $0xff,%eax
mov    %al,-0x26(%rbp)
jmp    1212 <lnpscanpacket+0xf2>
movzbl -0x26(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1030 <ringbuf_sneak@plt>
mov    %al,%cl
mov    -0x30(%rbp),%eax
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    129e <lnpscanpacket+0x17e>
cmpl   $0x3,-0x20(%rbp)
jl     129e <lnpscanpacket+0x17e>
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
movl   $0x2,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%eax
cmp    $0xf1,%eax
jne    13b6 <lnpscanpacket+0x296>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
add    $0x1,%esi
call   1030 <ringbuf_sneak@plt>
mov    %al,-0x25(%rbp)
mov    -0x24(%rbp),%eax
movzbl -0x25(%rbp),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jge    1319 <lnpscanpacket+0x1f9>
xor    %eax,%eax
cmpl   $0x0,-0x1c(%rbp)
mov    %al,-0x31(%rbp)
je     1301 <lnpscanpacket+0x1e1>
cmpl   $0x0,-0x24(%rbp)
setg   %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%dl
xor    %eax,%eax
mov    $0x2,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
jmp    131e <lnpscanpacket+0x1fe>
mov    -0x20(%rbp),%eax
movzbl -0x25(%rbp),%ecx
add    $0x3,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1365 <lnpscanpacket+0x245>
movzbl -0x26(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
call   1030 <ringbuf_sneak@plt>
mov    %al,%cl
mov    -0x38(%rbp),%eax
movzbl %cl,%ecx
add    %ecx,%eax
and    $0xff,%eax
mov    %al,-0x26(%rbp)
jmp    131e <lnpscanpacket+0x1fe>
movzbl -0x26(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1030 <ringbuf_sneak@plt>
mov    %al,%cl
mov    -0x3c(%rbp),%eax
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    13aa <lnpscanpacket+0x28a>
cmpl   $0x5,-0x20(%rbp)
jl     13aa <lnpscanpacket+0x28a>
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
movl   $0x2,-0x4(%rbp)
jmp    13bd <lnpscanpacket+0x29d>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lnpscanpacket>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %rsi,%rbp
mov    %rdi,%r14
call   1040 <ringbuf_filled@plt>
mov    $0x2,%r12d
cmp    $0x102,%eax
jg     1285 <lnpscanpacket+0x165>
mov    %eax,%r13d
cmp    $0x2,%eax
jg     116a <lnpscanpacket+0x4a>
test   %ebx,%ebx
setne  %al
test   %r13d,%r13d
setg   %cl
and    %al,%cl
movzbl %cl,%r12d
add    %r12d,%r12d
jmp    1285 <lnpscanpacket+0x165>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <ringbuf_sneak@plt>
mov    %r14,%rdi
cmp    $0xf0,%al
jne    11f1 <lnpscanpacket+0xd1>
mov    $0x1,%esi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%r15d
lea    0x3(%r15),%eax
cmp    %eax,%r13d
jb     121a <lnpscanpacket+0xfa>
mov    %rbp,(%rsp)
add    $0x2,%r15d
xor    %r13d,%r13d
mov    $0xff,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %r13d,%esi
lea    0x1(%rsi),%r13d
mov    %r14,%rdi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%ebx
add    %ebp,%ebx
movzbl %bl,%ebp
cmp    %r13d,%r15d
jne    11b0 <lnpscanpacket+0x90>
mov    %r14,%rdi
mov    %r15d,%esi
call   1030 <ringbuf_sneak@plt>
cmp    %bl,%al
jne    1285 <lnpscanpacket+0x165>
lea    -0x1(%r13),%eax
cmp    $0x2,%eax
jae    1274 <lnpscanpacket+0x154>
jmp    1285 <lnpscanpacket+0x165>
xor    %esi,%esi
call   1030 <ringbuf_sneak@plt>
cmp    $0xf1,%al
jne    1285 <lnpscanpacket+0x165>
mov    %r14,%rdi
mov    $0x1,%esi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%r15d
lea    0x3(%r15),%eax
cmp    %eax,%r13d
jae    1228 <lnpscanpacket+0x108>
xor    %r12d,%r12d
test   %ebx,%ebx
setne  %r12b
add    %r12d,%r12d
jmp    1285 <lnpscanpacket+0x165>
mov    %rbp,(%rsp)
add    $0x2,%r15d
xor    %r13d,%r13d
mov    $0xff,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r13d,%esi
lea    0x1(%rsi),%r13d
mov    %r14,%rdi
call   1030 <ringbuf_sneak@plt>
movzbl %al,%ebx
add    %ebp,%ebx
movzbl %bl,%ebp
cmp    %r13d,%r15d
jne    1240 <lnpscanpacket+0x120>
mov    %r14,%rdi
mov    %r15d,%esi
call   1030 <ringbuf_sneak@plt>
cmp    %bl,%al
jne    1285 <lnpscanpacket+0x165>
lea    -0x1(%r13),%eax
cmp    $0x4,%eax
jb     1285 <lnpscanpacket+0x165>
add    $0x1,%r13d
mov    (%rsp),%rax
mov    %r13d,(%rax)
mov    $0x1,%r12d
mov    %r12d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ringbuf = type { i32 }
define i32 @lnpscanpacket(%struct.ringbuf* %0, i32* %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.ringbuf*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8
store %struct.ringbuf* %0, %struct.ringbuf** %5
store i32* %1, i32** %6
store i32 %2, i32* %7
store i32 0, i32* %8
store i8 -1, i8* %11
%12 = load %struct.ringbuf*, %struct.ringbuf** %5
%13 = call i32 @ringbuf_filled(%struct.ringbuf* %12)
store i32 %13, i32* %9
%14 = load i32, i32* %9
%15 = icmp sgt i32 %14, 258
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 2, i32* %4
br label %153
17: ; preds = %3
%18 = load i32, i32* %9
%19 = icmp slt i32 %18, 3
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load i32, i32* %7
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %9
%25 = icmp sgt i32 %24, 0
br label %26
26: ; preds = %23, %20
%27 = phi i1 [ false, %20 ], [ %25, %23 ]
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 2, i32 0
store i32 %29, i32* %4
br label %153
30: ; preds = %17
%31 = load %struct.ringbuf*, %struct.ringbuf** %5
%32 = load i32, i32* %8
%33 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %31, i32 %32)
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 240
br i1 %35, label %36, label %91
36: ; preds = %30
%37 = load %struct.ringbuf*, %struct.ringbuf** %5
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
%40 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %37, i32 %39)
store i8 %40, i8* %10
%41 = load i32, i32* %9
%42 = load i8, i8* %10
%43 = zext i8 %42 to i32
%44 = add nsw i32 3, %43
%45 = icmp slt i32 %41, %44
br i1 %45, label %46, label %56
46: ; preds = %36
%47 = load i32, i32* %7
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, i32* %9
%51 = icmp sgt i32 %50, 0
br label %52
52: ; preds = %49, %46
%53 = phi i1 [ false, %46 ], [ %51, %49 ]
%54 = zext i1 %53 to i64
%55 = select i1 %53, i32 2, i32 0
store i32 %55, i32* %4
br label %153
56: ; preds = %36
br label %57
57: ; preds = %64, %56
%58 = load i32, i32* %8
%59 = load i8, i8* %10
%60 = zext i8 %59 to i32
%61 = add nsw i32 3, %60
%62 = sub nsw i32 %61, 1
%63 = icmp slt i32 %58, %62
br i1 %63, label %64, label %75
64: ; preds = %57
%65 = load i8, i8* %11
%66 = zext i8 %65 to i32
%67 = load %struct.ringbuf*, %struct.ringbuf** %5
%68 = load i32, i32* %8
%69 = add nsw i32 %68, 1
store i32 %69, i32* %8
%70 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %67, i32 %68)
%71 = zext i8 %70 to i32
%72 = add nsw i32 %66, %71
%73 = and i32 %72, 255
%74 = trunc i32 %73 to i8
store i8 %74, i8* %11
br label %57
75: ; preds = %57
%76 = load i8, i8* %11
%77 = zext i8 %76 to i32
%78 = load %struct.ringbuf*, %struct.ringbuf** %5
%79 = load i32, i32* %8
%80 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %78, i32 %79)
%81 = zext i8 %80 to i32
%82 = icmp eq i32 %77, %81
br i1 %82, label %83, label %90
83: ; preds = %75
%84 = load i32, i32* %8
%85 = icmp sge i32 %84, 3
br i1 %85, label %86, label %90
86: ; preds = %83
%87 = load i32, i32* %8
%88 = add nsw i32 %87, 1
%89 = load i32*, i32** %6
store i32 %88, i32* %89
store i32 1, i32* %4
br label %153
90: ; preds = %83, %75
store i32 2, i32* %4
br label %153
91: ; preds = %30
%92 = load %struct.ringbuf*, %struct.ringbuf** %5
%93 = load i32, i32* %8
%94 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %92, i32 %93)
%95 = zext i8 %94 to i32
%96 = icmp eq i32 %95, 241
br i1 %96, label %97, label %152
97: ; preds = %91
%98 = load %struct.ringbuf*, %struct.ringbuf** %5
%99 = load i32, i32* %8
%100 = add nsw i32 %99, 1
%101 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %98, i32 %100)
store i8 %101, i8* %10
%102 = load i32, i32* %9
%103 = load i8, i8* %10
%104 = zext i8 %103 to i32
%105 = add nsw i32 3, %104
%106 = icmp slt i32 %102, %105
br i1 %106, label %107, label %117
107: ; preds = %97
%108 = load i32, i32* %7
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %107
%111 = load i32, i32* %9
%112 = icmp sgt i32 %111, 0
br label %113
113: ; preds = %110, %107
%114 = phi i1 [ false, %107 ], [ %112, %110 ]
%115 = zext i1 %114 to i64
%116 = select i1 %114, i32 2, i32 0
store i32 %116, i32* %4
br label %153
117: ; preds = %97
br label %118
118: ; preds = %125, %117
%119 = load i32, i32* %8
%120 = load i8, i8* %10
%121 = zext i8 %120 to i32
%122 = add nsw i32 3, %121
%123 = sub nsw i32 %122, 1
%124 = icmp slt i32 %119, %123
br i1 %124, label %125, label %136
125: ; preds = %118
%126 = load i8, i8* %11
%127 = zext i8 %126 to i32
%128 = load %struct.ringbuf*, %struct.ringbuf** %5
%129 = load i32, i32* %8
%130 = add nsw i32 %129, 1
store i32 %130, i32* %8
%131 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %128, i32 %129)
%132 = zext i8 %131 to i32
%133 = add nsw i32 %127, %132
%134 = and i32 %133, 255
%135 = trunc i32 %134 to i8
store i8 %135, i8* %11
br label %118
136: ; preds = %118
%137 = load i8, i8* %11
%138 = zext i8 %137 to i32
%139 = load %struct.ringbuf*, %struct.ringbuf** %5
%140 = load i32, i32* %8
%141 = call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %139, i32 %140)
%142 = zext i8 %141 to i32
%143 = icmp eq i32 %138, %142
br i1 %143, label %144, label %151
144: ; preds = %136
%145 = load i32, i32* %8
%146 = icmp sge i32 %145, 5
br i1 %146, label %147, label %151
147: ; preds = %144
%148 = load i32, i32* %8
%149 = add nsw i32 %148, 1
%150 = load i32*, i32** %6
store i32 %149, i32* %150
store i32 1, i32* %4
br label %153
151: ; preds = %144, %136
store i32 2, i32* %4
br label %153
152: ; preds = %91
store i32 2, i32* %4
br label %153
153: ; preds = %152, %151, %147, %113, %90, %86, %52, %26, %16
%154 = load i32, i32* %4
ret i32 %154
}

LLVM IR (-O2):
%struct.ringbuf = type { i32 }
define i32 @lnpscanpacket(%struct.ringbuf* %0, i32* nocapture writeonly %1, i32 %2) {
%4 = tail call i32 @ringbuf_filled(%struct.ringbuf* %0)
%5 = icmp sgt i32 %4, 258
br i1 %5, label %73, label %6
6: ; preds = %3
%7 = icmp slt i32 %4, 3
br i1 %7, label %8, label %13
8: ; preds = %6
%9 = icmp ne i32 %2, 0
%10 = icmp sgt i32 %4, 0
%11 = select i1 %9, i1 %10, i1 false
%12 = select i1 %11, i32 2, i32 0
br label %73
13: ; preds = %6
%14 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 0)
%15 = icmp eq i8 %14, -16
br i1 %15, label %16, label %43
16: ; preds = %13
%17 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 1)
%18 = zext i8 %17 to i32
%19 = add nuw nsw i32 %18, 3
%20 = icmp ult i32 %4, %19
br i1 %20, label %23, label %21
21: ; preds = %16
%22 = add nuw nsw i32 %18, 2
br label %26
23: ; preds = %16
%24 = icmp eq i32 %2, 0
%25 = select i1 %24, i32 0, i32 2
br label %73
26: ; preds = %21, %26
%27 = phi i32 [ 255, %21 ], [ %33, %26 ]
%28 = phi i32 [ 0, %21 ], [ %29, %26 ]
%29 = add nuw nsw i32 %28, 1
%30 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 %28)
%31 = zext i8 %30 to i32
%32 = add nuw nsw i32 %27, %31
%33 = and i32 %32, 255
%34 = icmp eq i32 %29, %22
br i1 %34, label %35, label %26
35: ; preds = %26
%36 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 %22)
%37 = trunc i32 %32 to i8
%38 = icmp eq i8 %36, %37
%39 = icmp ugt i32 %28, 1
%40 = and i1 %38, %39
br i1 %40, label %41, label %73
41: ; preds = %35
%42 = add nuw nsw i32 %28, 2
store i32 %42, i32* %1
br label %73
43: ; preds = %13
%44 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 0)
%45 = icmp eq i8 %44, -15
br i1 %45, label %46, label %73
46: ; preds = %43
%47 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 1)
%48 = zext i8 %47 to i32
%49 = add nuw nsw i32 %48, 3
%50 = icmp ult i32 %4, %49
br i1 %50, label %53, label %51
51: ; preds = %46
%52 = add nuw nsw i32 %48, 2
br label %56
53: ; preds = %46
%54 = icmp eq i32 %2, 0
%55 = select i1 %54, i32 0, i32 2
br label %73
56: ; preds = %51, %56
%57 = phi i32 [ 255, %51 ], [ %63, %56 ]
%58 = phi i32 [ 0, %51 ], [ %59, %56 ]
%59 = add nuw nsw i32 %58, 1
%60 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 %58)
%61 = zext i8 %60 to i32
%62 = add nuw nsw i32 %57, %61
%63 = and i32 %62, 255
%64 = icmp eq i32 %59, %52
br i1 %64, label %65, label %56
65: ; preds = %56
%66 = tail call zeroext i8 @ringbuf_sneak(%struct.ringbuf* %0, i32 %52)
%67 = trunc i32 %62 to i8
%68 = icmp eq i8 %66, %67
%69 = icmp ugt i32 %58, 3
%70 = and i1 %68, %69
br i1 %70, label %71, label %73
71: ; preds = %65
%72 = add nuw nsw i32 %58, 2
store i32 %72, i32* %1
br label %73
73: ; preds = %43, %65, %35, %3, %71, %53, %41, %23, %8
%74 = phi i32 [ %12, %8 ], [ %25, %23 ], [ 1, %41 ], [ %55, %53 ], [ 1, %71 ], [ 2, %3 ], [ 2, %35 ], [ 2, %65 ], [ 2, %43 ]
ret i32 %74
}