#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 */
typedef scalar_t__ bp;

/* Variables and functions */
void *coalesce(void *bp) {
  size_t prev_alloc =
      ((*(unsigned int *)((
           (char *)(((char *)(bp) -
                     ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) +
           ((*(unsigned int *)((
                (char *)(((char *)(bp) -
                          ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
                4))) &
            ~0x7) -
           8))) &
       0x1);
  size_t next_alloc =
      ((*(unsigned int *)((
           (char *)(((char *)(bp) +
                     ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) -
           4))) &
       0x1);
  size_t size = ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7);
  if (prev_alloc && next_alloc)
    return bp;
  else if (prev_alloc && !next_alloc) {
    size += ((*(unsigned int *)((
                 (char *)(((char *)(bp) +
                           ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) -
                 4))) &
             ~0x7);
    (*(unsigned int *)(((char *)(bp)-4)) = (((size) | (0))));
    (*(unsigned int *)(((char *)(bp) +
                        ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7) - 8)) =
         (((size) | (0))));
  } else if (!prev_alloc && next_alloc) {
    size += ((*(unsigned int *)((
                 (char *)(((char *)(bp) -
                           ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
                 4))) &
             ~0x7);
    (*(unsigned int *)(((char *)(bp) +
                        ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7) - 8)) =
         (((size) | (0))));
    (*(unsigned int *)((
         (char *)(((char *)(bp) -
                   ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
         4)) = (((size) | (0))));
    bp = ((char *)(bp) - ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7));
  } else {
    size +=
        ((*(unsigned int *)((
             (char *)(((char *)(bp) -
                       ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
             4))) &
         ~0x7) +
        ((*(unsigned int *)((
             (char *)(((char *)(bp) +
                       ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) +
             ((*(unsigned int *)((
                  (char *)(((char *)(bp) +
                            ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) -
                  4))) &
              ~0x7) -
             8))) &
         ~0x7);
    (*(unsigned int *)((
         (char *)(((char *)(bp) -
                   ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
         4)) = (((size) | (0))));
    (*(unsigned int *)((
         (char *)(((char *)(bp) +
                   ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) +
         ((*(unsigned int *)((
              (char *)(((char *)(bp) +
                        ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) -
              4))) &
          ~0x7) -
         8)) = (((size) | (0))));
    bp = ((char *)(bp) - ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7));
  }
  return bp;
}


x86 assembly (clang, -O0):
<coalesce>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    -0x8(%rdx),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
mov    %edx,%esi
xor    %edx,%edx
sub    %rsi,%rdx
mov    -0x4(%rcx,%rdx,1),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x8(%rax,%rcx,1),%eax
and    $0x1,%eax
mov    %eax,%eax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x4(%rax,%rcx,1),%eax
and    $0x1,%eax
mov    %eax,%eax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rax),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     119f <coalesce+0x9f>
cmpq   $0x0,-0x20(%rbp)
je     119f <coalesce+0x9f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    139a <coalesce+0x29a>
cmpq   $0x0,-0x18(%rbp)
je     120a <coalesce+0x10a>
cmpq   $0x0,-0x20(%rbp)
jne    120a <coalesce+0x10a>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,-0x4(%rax)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
jmp    138d <coalesce+0x28d>
cmpq   $0x0,-0x18(%rbp)
jne    12ae <coalesce+0x1ae>
cmpq   $0x0,-0x20(%rbp)
je     12ae <coalesce+0x1ae>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%esi
xor    %ecx,%ecx
sub    %rsi,%rcx
mov    %edx,-0x4(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    1388 <coalesce+0x288>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    -0x4(%rdx),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
add    %rdx,%rcx
mov    -0x10(%rbp),%rdx
mov    -0x10(%rbp),%rsi
mov    -0x4(%rsi),%esi
and    $0xfffffff8,%esi
mov    %esi,%esi
mov    -0x4(%rdx,%rsi,1),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
mov    -0x8(%rcx,%rdx,1),%ecx
and    $0xfffffff8,%ecx
add    %ecx,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%esi
xor    %ecx,%ecx
sub    %rsi,%rcx
mov    %edx,-0x4(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
add    %rcx,%rax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rsi
mov    -0x4(%rsi),%esi
and    $0xfffffff8,%esi
mov    %esi,%esi
mov    -0x4(%rcx,%rsi,1),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    138d <coalesce+0x28d>
jmp    1392 <coalesce+0x292>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<coalesce>:
mov    %rdi,%rax
mov    -0x8(%rdi),%ecx
mov    -0x4(%rdi),%edx
and    $0xfffffff8,%ecx
mov    %rdi,%r8
sub    %rcx,%r8
neg    %rcx
mov    -0x4(%rdi,%rcx,1),%ecx
and    $0xfffffff8,%ecx
mov    -0x8(%rcx,%r8,1),%r10d
and    $0xfffffff8,%edx
mov    -0x4(%rdi,%rdx,1),%edi
test   $0x1,%r10b
je     1136 <coalesce+0x36>
mov    %edi,%esi
and    $0x1,%esi
je     1136 <coalesce+0x36>
ret
test   $0x1,%r10b
je     1150 <coalesce+0x50>
mov    %edi,%esi
and    $0x1,%esi
jne    1150 <coalesce+0x50>
and    $0xfffffff8,%edi
add    %edx,%edi
mov    %edi,-0x4(%rax)
mov    %edi,-0x8(%rax,%rdi,1)
ret
mov    %rdx,%r9
add    %rax,%r9
test   $0x1,%r10b
jne    1178 <coalesce+0x78>
mov    %edi,%esi
and    $0x1,%esi
je     1178 <coalesce+0x78>
add    %edx,%ecx
mov    %ecx,-0x8(%r9)
mov    -0x8(%rax),%edx
and    $0xfffffff8,%edx
neg    %rdx
mov    %ecx,-0x4(%rax,%rdx,1)
jmp    11a0 <coalesce+0xa0>
and    $0xfffffff8,%edi
mov    -0x8(%r9,%rdi,1),%esi
and    $0xfffffff8,%esi
add    %edx,%ecx
add    %esi,%ecx
mov    %ecx,-0x4(%r8)
mov    -0x4(%rax),%edx
and    $0xfffffff8,%edx
lea    (%rax,%rdx,1),%rsi
mov    -0x4(%rax,%rdx,1),%edx
and    $0xfffffff8,%edx
mov    %ecx,-0x8(%rdx,%rsi,1)
mov    -0x8(%rax),%ecx
and    $0xfffffff8,%ecx
sub    %rcx,%rax
ret

LLVM IR (-O0):
define i8* @coalesce(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 -8
%10 = bitcast i8* %9 to i32*
%11 = load i32, i32* %10
%12 = and i32 %11, -8
%13 = zext i32 %12 to i64
%14 = sub i64 0, %13
%15 = getelementptr inbounds i8, i8* %7, i64 %14
%16 = load i8*, i8** %3
%17 = load i8*, i8** %3
%18 = getelementptr inbounds i8, i8* %17, i64 -8
%19 = bitcast i8* %18 to i32*
%20 = load i32, i32* %19
%21 = and i32 %20, -8
%22 = zext i32 %21 to i64
%23 = sub i64 0, %22
%24 = getelementptr inbounds i8, i8* %16, i64 %23
%25 = getelementptr inbounds i8, i8* %24, i64 -4
%26 = bitcast i8* %25 to i32*
%27 = load i32, i32* %26
%28 = and i32 %27, -8
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %15, i64 %29
%31 = getelementptr inbounds i8, i8* %30, i64 -8
%32 = bitcast i8* %31 to i32*
%33 = load i32, i32* %32
%34 = and i32 %33, 1
%35 = zext i32 %34 to i64
store i64 %35, i64* %4
%36 = load i8*, i8** %3
%37 = load i8*, i8** %3
%38 = getelementptr inbounds i8, i8* %37, i64 -4
%39 = bitcast i8* %38 to i32*
%40 = load i32, i32* %39
%41 = and i32 %40, -8
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %36, i64 %42
%44 = getelementptr inbounds i8, i8* %43, i64 -4
%45 = bitcast i8* %44 to i32*
%46 = load i32, i32* %45
%47 = and i32 %46, 1
%48 = zext i32 %47 to i64
store i64 %48, i64* %5
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 -4
%51 = bitcast i8* %50 to i32*
%52 = load i32, i32* %51
%53 = and i32 %52, -8
%54 = zext i32 %53 to i64
store i64 %54, i64* %6
%55 = load i64, i64* %4
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %1
%58 = load i64, i64* %5
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = load i8*, i8** %3
store i8* %61, i8** %2
br label %260
62: ; preds = %57, %1
%63 = load i64, i64* %4
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %103
65: ; preds = %62
%66 = load i64, i64* %5
%67 = icmp ne i64 %66, 0
br i1 %67, label %103, label %68
68: ; preds = %65
%69 = load i8*, i8** %3
%70 = load i8*, i8** %3
%71 = getelementptr inbounds i8, i8* %70, i64 -4
%72 = bitcast i8* %71 to i32*
%73 = load i32, i32* %72
%74 = and i32 %73, -8
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds i8, i8* %69, i64 %75
%77 = getelementptr inbounds i8, i8* %76, i64 -4
%78 = bitcast i8* %77 to i32*
%79 = load i32, i32* %78
%80 = and i32 %79, -8
%81 = zext i32 %80 to i64
%82 = load i64, i64* %6
%83 = add i64 %82, %81
store i64 %83, i64* %6
%84 = load i64, i64* %6
%85 = or i64 %84, 0
%86 = trunc i64 %85 to i32
%87 = load i8*, i8** %3
%88 = getelementptr inbounds i8, i8* %87, i64 -4
%89 = bitcast i8* %88 to i32*
store i32 %86, i32* %89
%90 = load i64, i64* %6
%91 = or i64 %90, 0
%92 = trunc i64 %91 to i32
%93 = load i8*, i8** %3
%94 = load i8*, i8** %3
%95 = getelementptr inbounds i8, i8* %94, i64 -4
%96 = bitcast i8* %95 to i32*
%97 = load i32, i32* %96
%98 = and i32 %97, -8
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds i8, i8* %93, i64 %99
%101 = getelementptr inbounds i8, i8* %100, i64 -8
%102 = bitcast i8* %101 to i32*
store i32 %92, i32* %102
br label %257
103: ; preds = %65, %62
%104 = load i64, i64* %4
%105 = icmp ne i64 %104, 0
br i1 %105, label %162, label %106
106: ; preds = %103
%107 = load i64, i64* %5
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %162
109: ; preds = %106
%110 = load i8*, i8** %3
%111 = load i8*, i8** %3
%112 = getelementptr inbounds i8, i8* %111, i64 -8
%113 = bitcast i8* %112 to i32*
%114 = load i32, i32* %113
%115 = and i32 %114, -8
%116 = zext i32 %115 to i64
%117 = sub i64 0, %116
%118 = getelementptr inbounds i8, i8* %110, i64 %117
%119 = getelementptr inbounds i8, i8* %118, i64 -4
%120 = bitcast i8* %119 to i32*
%121 = load i32, i32* %120
%122 = and i32 %121, -8
%123 = zext i32 %122 to i64
%124 = load i64, i64* %6
%125 = add i64 %124, %123
store i64 %125, i64* %6
%126 = load i64, i64* %6
%127 = or i64 %126, 0
%128 = trunc i64 %127 to i32
%129 = load i8*, i8** %3
%130 = load i8*, i8** %3
%131 = getelementptr inbounds i8, i8* %130, i64 -4
%132 = bitcast i8* %131 to i32*
%133 = load i32, i32* %132
%134 = and i32 %133, -8
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %129, i64 %135
%137 = getelementptr inbounds i8, i8* %136, i64 -8
%138 = bitcast i8* %137 to i32*
store i32 %128, i32* %138
%139 = load i64, i64* %6
%140 = or i64 %139, 0
%141 = trunc i64 %140 to i32
%142 = load i8*, i8** %3
%143 = load i8*, i8** %3
%144 = getelementptr inbounds i8, i8* %143, i64 -8
%145 = bitcast i8* %144 to i32*
%146 = load i32, i32* %145
%147 = and i32 %146, -8
%148 = zext i32 %147 to i64
%149 = sub i64 0, %148
%150 = getelementptr inbounds i8, i8* %142, i64 %149
%151 = getelementptr inbounds i8, i8* %150, i64 -4
%152 = bitcast i8* %151 to i32*
store i32 %141, i32* %152
%153 = load i8*, i8** %3
%154 = load i8*, i8** %3
%155 = getelementptr inbounds i8, i8* %154, i64 -8
%156 = bitcast i8* %155 to i32*
%157 = load i32, i32* %156
%158 = and i32 %157, -8
%159 = zext i32 %158 to i64
%160 = sub i64 0, %159
%161 = getelementptr inbounds i8, i8* %153, i64 %160
store i8* %161, i8** %3
br label %256
162: ; preds = %106, %103
%163 = load i8*, i8** %3
%164 = load i8*, i8** %3
%165 = getelementptr inbounds i8, i8* %164, i64 -8
%166 = bitcast i8* %165 to i32*
%167 = load i32, i32* %166
%168 = and i32 %167, -8
%169 = zext i32 %168 to i64
%170 = sub i64 0, %169
%171 = getelementptr inbounds i8, i8* %163, i64 %170
%172 = getelementptr inbounds i8, i8* %171, i64 -4
%173 = bitcast i8* %172 to i32*
%174 = load i32, i32* %173
%175 = and i32 %174, -8
%176 = load i8*, i8** %3
%177 = load i8*, i8** %3
%178 = getelementptr inbounds i8, i8* %177, i64 -4
%179 = bitcast i8* %178 to i32*
%180 = load i32, i32* %179
%181 = and i32 %180, -8
%182 = zext i32 %181 to i64
%183 = getelementptr inbounds i8, i8* %176, i64 %182
%184 = load i8*, i8** %3
%185 = load i8*, i8** %3
%186 = getelementptr inbounds i8, i8* %185, i64 -4
%187 = bitcast i8* %186 to i32*
%188 = load i32, i32* %187
%189 = and i32 %188, -8
%190 = zext i32 %189 to i64
%191 = getelementptr inbounds i8, i8* %184, i64 %190
%192 = getelementptr inbounds i8, i8* %191, i64 -4
%193 = bitcast i8* %192 to i32*
%194 = load i32, i32* %193
%195 = and i32 %194, -8
%196 = zext i32 %195 to i64
%197 = getelementptr inbounds i8, i8* %183, i64 %196
%198 = getelementptr inbounds i8, i8* %197, i64 -8
%199 = bitcast i8* %198 to i32*
%200 = load i32, i32* %199
%201 = and i32 %200, -8
%202 = add i32 %175, %201
%203 = zext i32 %202 to i64
%204 = load i64, i64* %6
%205 = add i64 %204, %203
store i64 %205, i64* %6
%206 = load i64, i64* %6
%207 = or i64 %206, 0
%208 = trunc i64 %207 to i32
%209 = load i8*, i8** %3
%210 = load i8*, i8** %3
%211 = getelementptr inbounds i8, i8* %210, i64 -8
%212 = bitcast i8* %211 to i32*
%213 = load i32, i32* %212
%214 = and i32 %213, -8
%215 = zext i32 %214 to i64
%216 = sub i64 0, %215
%217 = getelementptr inbounds i8, i8* %209, i64 %216
%218 = getelementptr inbounds i8, i8* %217, i64 -4
%219 = bitcast i8* %218 to i32*
store i32 %208, i32* %219
%220 = load i64, i64* %6
%221 = or i64 %220, 0
%222 = trunc i64 %221 to i32
%223 = load i8*, i8** %3
%224 = load i8*, i8** %3
%225 = getelementptr inbounds i8, i8* %224, i64 -4
%226 = bitcast i8* %225 to i32*
%227 = load i32, i32* %226
%228 = and i32 %227, -8
%229 = zext i32 %228 to i64
%230 = getelementptr inbounds i8, i8* %223, i64 %229
%231 = load i8*, i8** %3
%232 = load i8*, i8** %3
%233 = getelementptr inbounds i8, i8* %232, i64 -4
%234 = bitcast i8* %233 to i32*
%235 = load i32, i32* %234
%236 = and i32 %235, -8
%237 = zext i32 %236 to i64
%238 = getelementptr inbounds i8, i8* %231, i64 %237
%239 = getelementptr inbounds i8, i8* %238, i64 -4
%240 = bitcast i8* %239 to i32*
%241 = load i32, i32* %240
%242 = and i32 %241, -8
%243 = zext i32 %242 to i64
%244 = getelementptr inbounds i8, i8* %230, i64 %243
%245 = getelementptr inbounds i8, i8* %244, i64 -8
%246 = bitcast i8* %245 to i32*
store i32 %222, i32* %246
%247 = load i8*, i8** %3
%248 = load i8*, i8** %3
%249 = getelementptr inbounds i8, i8* %248, i64 -8
%250 = bitcast i8* %249 to i32*
%251 = load i32, i32* %250
%252 = and i32 %251, -8
%253 = zext i32 %252 to i64
%254 = sub i64 0, %253
%255 = getelementptr inbounds i8, i8* %247, i64 %254
store i8* %255, i8** %3
br label %256
256: ; preds = %162, %109
br label %257
257: ; preds = %256, %68
br label %258
258: ; preds = %257
%259 = load i8*, i8** %3
store i8* %259, i8** %2
br label %260
260: ; preds = %258, %60
%261 = load i8*, i8** %2
ret i8* %261
}

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