#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 size = ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7);
  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);
  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))) +
             ((*(unsigned int *)((
                  (char *)(((char *)(bp) -
                            ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
                  4))) &
              ~0x7) -
             8))) &
         ~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))) +
             ((*(unsigned int *)((
                  (char *)(((char *)(bp) -
                            ((*(unsigned int *)(((char *)(bp)-8))) & ~0x7))) -
                  4))) &
              ~0x7) -
             8))) &
         ~0x7) +
        ((*(unsigned int *)((
             (char *)(((char *)(bp) +
                       ((*(unsigned int *)(((char *)(bp)-4))) & ~0x7))) -
             4))) &
         ~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    -0x4(%rax),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
mov    %rax,-0x18(%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,-0x20(%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,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     119f <coalesce+0x9f>
cmpq   $0x0,-0x28(%rbp)
je     119f <coalesce+0x9f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    13c4 <coalesce+0x2c4>
cmpq   $0x0,-0x20(%rbp)
je     120a <coalesce+0x10a>
cmpq   $0x0,-0x28(%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    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
or     $0x0,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,-0x4(%rax)
mov    -0x18(%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    13b7 <coalesce+0x2b7>
cmpq   $0x0,-0x20(%rbp)
jne    12d1 <coalesce+0x1d1>
cmpq   $0x0,-0x28(%rbp)
je     12d1 <coalesce+0x1d1>
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    $0xfffffff8,%eax
mov    %eax,%eax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%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    -0x18(%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    13b2 <coalesce+0x2b2>
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    $0xfffffff8,%eax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    -0x4(%rdx),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
mov    -0x4(%rcx,%rdx,1),%ecx
and    $0xfffffff8,%ecx
add    %ecx,%eax
mov    %eax,%eax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%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    -0x18(%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    13b7 <coalesce+0x2b7>
jmp    13bc <coalesce+0x2bc>
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,%edx
and    $0xfffffff8,%ecx
mov    %rdi,%rsi
sub    %rcx,%rsi
neg    %rcx
mov    -0x4(%rdi,%rcx,1),%ecx
and    $0xfffffff8,%ecx
mov    -0x8(%rcx,%rsi,1),%r8d
mov    -0x4(%rdi,%rdx,1),%edi
mov    %edi,%ecx
and    $0x1,%ecx
test   $0x1,%r8b
je     1138 <coalesce+0x38>
test   %ecx,%ecx
je     1138 <coalesce+0x38>
ret
test   $0x1,%r8b
je     114f <coalesce+0x4f>
test   %ecx,%ecx
jne    114f <coalesce+0x4f>
and    $0xfffffff8,%edi
add    %edx,%edi
mov    %edi,-0x4(%rax)
mov    %edi,-0x8(%rax,%rdi,1)
ret
mov    %r8d,%r9d
and    $0xfffffff8,%r8d
test   $0x1,%r9b
jne    1178 <coalesce+0x78>
test   %ecx,%ecx
je     1178 <coalesce+0x78>
add    %edx,%r8d
mov    %r8d,-0x8(%rax,%rdx,1)
mov    -0x8(%rax),%ecx
and    $0xfffffff8,%ecx
neg    %rcx
mov    %r8d,-0x4(%rax,%rcx,1)
jmp    119b <coalesce+0x9b>
and    $0xfffffff8,%edi
add    %edx,%r8d
add    %edi,%r8d
mov    %r8d,-0x4(%rsi)
mov    -0x4(%rax),%ecx
and    $0xfffffff8,%ecx
lea    (%rax,%rcx,1),%rdx
mov    -0x4(%rax,%rcx,1),%ecx
and    $0xfffffff8,%ecx
mov    %r8d,-0x8(%rcx,%rdx,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 = getelementptr inbounds i8, i8* %7, i64 -4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = and i32 %10, -8
%12 = zext i32 %11 to i64
store i64 %12, i64* %4
%13 = load i8*, i8** %3
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 -8
%16 = bitcast i8* %15 to i32*
%17 = load i32, i32* %16
%18 = and i32 %17, -8
%19 = zext i32 %18 to i64
%20 = sub i64 0, %19
%21 = getelementptr inbounds i8, i8* %13, i64 %20
%22 = load i8*, i8** %3
%23 = load i8*, i8** %3
%24 = getelementptr inbounds i8, i8* %23, i64 -8
%25 = bitcast i8* %24 to i32*
%26 = load i32, i32* %25
%27 = and i32 %26, -8
%28 = zext i32 %27 to i64
%29 = sub i64 0, %28
%30 = getelementptr inbounds i8, i8* %22, i64 %29
%31 = getelementptr inbounds i8, i8* %30, i64 -4
%32 = bitcast i8* %31 to i32*
%33 = load i32, i32* %32
%34 = and i32 %33, -8
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %21, i64 %35
%37 = getelementptr inbounds i8, i8* %36, i64 -8
%38 = bitcast i8* %37 to i32*
%39 = load i32, i32* %38
%40 = and i32 %39, 1
%41 = zext i32 %40 to i64
store i64 %41, i64* %5
%42 = load i8*, i8** %3
%43 = load i8*, i8** %3
%44 = getelementptr inbounds i8, i8* %43, i64 -4
%45 = bitcast i8* %44 to i32*
%46 = load i32, i32* %45
%47 = and i32 %46, -8
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %42, i64 %48
%50 = getelementptr inbounds i8, i8* %49, i64 -4
%51 = bitcast i8* %50 to i32*
%52 = load i32, i32* %51
%53 = and i32 %52, 1
%54 = zext i32 %53 to i64
store i64 %54, i64* %6
%55 = load i64, i64* %5
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %1
%58 = load i64, i64* %6
%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 %276
62: ; preds = %57, %1
%63 = load i64, i64* %5
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %103
65: ; preds = %62
%66 = load i64, i64* %6
%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* %4
%83 = add i64 %82, %81
store i64 %83, i64* %4
%84 = load i64, i64* %4
%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* %4
%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 %273
103: ; preds = %65, %62
%104 = load i64, i64* %5
%105 = icmp ne i64 %104, 0
br i1 %105, label %177, label %106
106: ; preds = %103
%107 = load i64, i64* %6
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %177
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 = load i8*, i8** %3
%120 = load i8*, i8** %3
%121 = getelementptr inbounds i8, i8* %120, i64 -8
%122 = bitcast i8* %121 to i32*
%123 = load i32, i32* %122
%124 = and i32 %123, -8
%125 = zext i32 %124 to i64
%126 = sub i64 0, %125
%127 = getelementptr inbounds i8, i8* %119, i64 %126
%128 = getelementptr inbounds i8, i8* %127, i64 -4
%129 = bitcast i8* %128 to i32*
%130 = load i32, i32* %129
%131 = and i32 %130, -8
%132 = zext i32 %131 to i64
%133 = getelementptr inbounds i8, i8* %118, i64 %132
%134 = getelementptr inbounds i8, i8* %133, i64 -8
%135 = bitcast i8* %134 to i32*
%136 = load i32, i32* %135
%137 = and i32 %136, -8
%138 = zext i32 %137 to i64
%139 = load i64, i64* %4
%140 = add i64 %139, %138
store i64 %140, i64* %4
%141 = load i64, i64* %4
%142 = or i64 %141, 0
%143 = trunc i64 %142 to i32
%144 = load i8*, i8** %3
%145 = load i8*, i8** %3
%146 = getelementptr inbounds i8, i8* %145, i64 -4
%147 = bitcast i8* %146 to i32*
%148 = load i32, i32* %147
%149 = and i32 %148, -8
%150 = zext i32 %149 to i64
%151 = getelementptr inbounds i8, i8* %144, i64 %150
%152 = getelementptr inbounds i8, i8* %151, i64 -8
%153 = bitcast i8* %152 to i32*
store i32 %143, i32* %153
%154 = load i64, i64* %4
%155 = or i64 %154, 0
%156 = trunc i64 %155 to i32
%157 = load i8*, i8** %3
%158 = load i8*, i8** %3
%159 = getelementptr inbounds i8, i8* %158, i64 -8
%160 = bitcast i8* %159 to i32*
%161 = load i32, i32* %160
%162 = and i32 %161, -8
%163 = zext i32 %162 to i64
%164 = sub i64 0, %163
%165 = getelementptr inbounds i8, i8* %157, i64 %164
%166 = getelementptr inbounds i8, i8* %165, i64 -4
%167 = bitcast i8* %166 to i32*
store i32 %156, i32* %167
%168 = load i8*, i8** %3
%169 = load i8*, i8** %3
%170 = getelementptr inbounds i8, i8* %169, i64 -8
%171 = bitcast i8* %170 to i32*
%172 = load i32, i32* %171
%173 = and i32 %172, -8
%174 = zext i32 %173 to i64
%175 = sub i64 0, %174
%176 = getelementptr inbounds i8, i8* %168, i64 %175
store i8* %176, i8** %3
br label %272
177: ; preds = %106, %103
%178 = load i8*, i8** %3
%179 = load i8*, i8** %3
%180 = getelementptr inbounds i8, i8* %179, i64 -8
%181 = bitcast i8* %180 to i32*
%182 = load i32, i32* %181
%183 = and i32 %182, -8
%184 = zext i32 %183 to i64
%185 = sub i64 0, %184
%186 = getelementptr inbounds i8, i8* %178, i64 %185
%187 = load i8*, i8** %3
%188 = load i8*, i8** %3
%189 = getelementptr inbounds i8, i8* %188, i64 -8
%190 = bitcast i8* %189 to i32*
%191 = load i32, i32* %190
%192 = and i32 %191, -8
%193 = zext i32 %192 to i64
%194 = sub i64 0, %193
%195 = getelementptr inbounds i8, i8* %187, i64 %194
%196 = getelementptr inbounds i8, i8* %195, i64 -4
%197 = bitcast i8* %196 to i32*
%198 = load i32, i32* %197
%199 = and i32 %198, -8
%200 = zext i32 %199 to i64
%201 = getelementptr inbounds i8, i8* %186, i64 %200
%202 = getelementptr inbounds i8, i8* %201, i64 -8
%203 = bitcast i8* %202 to i32*
%204 = load i32, i32* %203
%205 = and i32 %204, -8
%206 = load i8*, i8** %3
%207 = load i8*, i8** %3
%208 = getelementptr inbounds i8, i8* %207, i64 -4
%209 = bitcast i8* %208 to i32*
%210 = load i32, i32* %209
%211 = and i32 %210, -8
%212 = zext i32 %211 to i64
%213 = getelementptr inbounds i8, i8* %206, i64 %212
%214 = getelementptr inbounds i8, i8* %213, i64 -4
%215 = bitcast i8* %214 to i32*
%216 = load i32, i32* %215
%217 = and i32 %216, -8
%218 = add i32 %205, %217
%219 = zext i32 %218 to i64
%220 = load i64, i64* %4
%221 = add i64 %220, %219
store i64 %221, i64* %4
%222 = load i64, i64* %4
%223 = or i64 %222, 0
%224 = trunc i64 %223 to i32
%225 = load i8*, i8** %3
%226 = load i8*, i8** %3
%227 = getelementptr inbounds i8, i8* %226, i64 -8
%228 = bitcast i8* %227 to i32*
%229 = load i32, i32* %228
%230 = and i32 %229, -8
%231 = zext i32 %230 to i64
%232 = sub i64 0, %231
%233 = getelementptr inbounds i8, i8* %225, i64 %232
%234 = getelementptr inbounds i8, i8* %233, i64 -4
%235 = bitcast i8* %234 to i32*
store i32 %224, i32* %235
%236 = load i64, i64* %4
%237 = or i64 %236, 0
%238 = trunc i64 %237 to i32
%239 = load i8*, i8** %3
%240 = load i8*, i8** %3
%241 = getelementptr inbounds i8, i8* %240, i64 -4
%242 = bitcast i8* %241 to i32*
%243 = load i32, i32* %242
%244 = and i32 %243, -8
%245 = zext i32 %244 to i64
%246 = getelementptr inbounds i8, i8* %239, i64 %245
%247 = load i8*, i8** %3
%248 = load i8*, i8** %3
%249 = getelementptr inbounds i8, i8* %248, i64 -4
%250 = bitcast i8* %249 to i32*
%251 = load i32, i32* %250
%252 = and i32 %251, -8
%253 = zext i32 %252 to i64
%254 = getelementptr inbounds i8, i8* %247, i64 %253
%255 = getelementptr inbounds i8, i8* %254, i64 -4
%256 = bitcast i8* %255 to i32*
%257 = load i32, i32* %256
%258 = and i32 %257, -8
%259 = zext i32 %258 to i64
%260 = getelementptr inbounds i8, i8* %246, i64 %259
%261 = getelementptr inbounds i8, i8* %260, i64 -8
%262 = bitcast i8* %261 to i32*
store i32 %238, i32* %262
%263 = load i8*, i8** %3
%264 = load i8*, i8** %3
%265 = getelementptr inbounds i8, i8* %264, i64 -8
%266 = bitcast i8* %265 to i32*
%267 = load i32, i32* %266
%268 = and i32 %267, -8
%269 = zext i32 %268 to i64
%270 = sub i64 0, %269
%271 = getelementptr inbounds i8, i8* %263, i64 %270
store i8* %271, i8** %3
br label %272
272: ; preds = %177, %109
br label %273
273: ; preds = %272, %68
br label %274
274: ; preds = %273
%275 = load i8*, i8** %3
store i8* %275, i8** %2
br label %276
276: ; preds = %274, %60
%277 = load i8*, i8** %2
ret i8* %277
}

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