#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 int uint8_t;
typedef int /*<<< orphan*/ foo;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ memcpy(int *, int *, int);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ stderr;
int bitfield_test1(void) {
  int i;
  uint8_t foo[(64 + 7) / 8];
  uint8_t bar[(64 + 7) / 8];
  do {
    int __my_ret__ = sizeof(foo) == 8;
    if (__my_ret__ == 0) {
      fprintf(stderr, "failed on line %d: %s\n", 34, "sizeof(foo) == 8");
      return -1;
    }
  } while (0);
  ;
  do {
    uint8_t *name8 = foo;
    memset(name8, 0, sizeof(foo));
  } while (0);
  ;
  for (i = 0; i < 64; ++i) {
    do {
      int __my_ret__ = ((foo[i / 8] >> (i % 8)) & 0x1);
      if (__my_ret__) {
        fprintf(stderr, "failed on line %d: %s\n", 37, "BITFIELD_TEST(foo, i)");
        return __my_ret__;
      }
    } while (0);
    ;
  }
  do {
    uint8_t *name8 = foo;
    int floor = 14 / 8;
    int rem = 14 - (floor * 8);
    name8[floor] |= (1 << rem);
  } while (0);
  ;
  do {
    int __my_ret__ = ((foo[14 / 8] >> (14 % 8)) & 0x1);
    if (__my_ret__ == 0) {
      fprintf(stderr, "failed on line %d: %s\n", 40, "BITFIELD_TEST(foo, 14)");
      return -1;
    }
  } while (0);
  ;
  do {
    uint8_t *name8 = foo;
    int floor = 32 / 8;
    int rem = 32 - (floor * 8);
    name8[floor] |= (1 << rem);
  } while (0);
  ;
  do {
    int __my_ret__ = ((foo[32 / 8] >> (32 % 8)) & 0x1);
    if (__my_ret__ == 0) {
      fprintf(stderr, "failed on line %d: %s\n", 42, "BITFIELD_TEST(foo, 32)");
      return -1;
    }
  } while (0);
  ;
  do {
    uint8_t *name8 = foo;
    int floor = 1 / 8;
    int rem = 1 - (floor * 8);
    name8[floor] |= (1 << rem);
  } while (0);
  ;
  do {
    int __my_ret__ = ((foo[1 / 8] >> (1 % 8)) & 0x1);
    if (__my_ret__ == 0) {
      fprintf(stderr, "failed on line %d: %s\n", 44, "BITFIELD_TEST(foo, 1)");
      return -1;
    }
  } while (0);
  ;
  do {
    uint8_t *name8 = foo;
    memset(name8, ~0, sizeof(foo));
  } while (0);
  ;
  for (i = 0; i < 64; ++i) {
    do {
      int __my_ret__ = ((foo[i / 8] >> (i % 8)) & 0x1);
      if (__my_ret__ == 0) {
        fprintf(stderr, "failed on line %d: %s\n", 47, "BITFIELD_TEST(foo, i)");
        return -1;
      }
    } while (0);
    ;
  }
  do {
    uint8_t *src8 = foo;
    memcpy(bar, src8, sizeof(foo));
  } while (0);
  ;
  for (i = 0; i < 64; ++i) {
    do {
      int __my_ret__ = ((foo[i / 8] >> (i % 8)) & 0x1);
      if (__my_ret__ == 0) {
        fprintf(stderr, "failed on line %d: %s\n", 51, "BITFIELD_TEST(foo, i)");
        return -1;
      }
    } while (0);
    ;
  }
  return 0;
}


x86 assembly (clang, -O0):
<bitfield_test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    1179 <bitfield_test1+0x49>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
lea    0xea4(%rip),%rsi
mov    $0x22,%edx
lea    0xeaf(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    117e <bitfield_test1+0x4e>
jmp    1183 <bitfield_test1+0x53>
lea    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1030 <memset@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x40,-0x8(%rbp)
jge    1231 <bitfield_test1+0x101>
jmp    11b1 <bitfield_test1+0x81>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0xd0(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xd0(%rbp),%eax
mov    %edx,%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1219 <bitfield_test1+0xe9>
mov    0x2dec(%rip),%rax
mov    (%rax),%edi
lea    0xe03(%rip),%rsi
mov    $0x25,%edx
lea    0xe1f(%rip),%rcx
call   1040 <fprintf@plt>
mov    -0x64(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    121e <bitfield_test1+0xee>
jmp    1223 <bitfield_test1+0xf3>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a2 <bitfield_test1+0x72>
jmp    1236 <bitfield_test1+0x106>
lea    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
movl   $0x1,-0x74(%rbp)
mov    -0x74(%rbp),%ecx
shl    $0x3,%ecx
mov    $0xe,%eax
sub    %ecx,%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    -0x70(%rbp),%rax
movslq -0x74(%rbp),%rcx
or     (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    1272 <bitfield_test1+0x142>
mov    -0x2c(%rbp),%eax
sar    $0x6,%eax
and    $0x1,%eax
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jne    12b5 <bitfield_test1+0x185>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
lea    0xd68(%rip),%rsi
mov    $0x28,%edx
lea    0xd9a(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    12ba <bitfield_test1+0x18a>
jmp    12bf <bitfield_test1+0x18f>
lea    -0x30(%rbp),%rax
mov    %rax,-0x88(%rbp)
movl   $0x4,-0x8c(%rbp)
mov    -0x8c(%rbp),%ecx
shl    $0x3,%ecx
mov    $0x20,%eax
sub    %ecx,%eax
mov    %eax,-0x90(%rbp)
mov    -0x90(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    -0x88(%rbp),%rax
movslq -0x8c(%rbp),%rcx
or     (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    1310 <bitfield_test1+0x1e0>
mov    -0x20(%rbp),%eax
sar    $0x0,%eax
and    $0x1,%eax
mov    %eax,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jne    1359 <bitfield_test1+0x229>
mov    0x2cad(%rip),%rax
mov    (%rax),%edi
lea    0xcc4(%rip),%rsi
mov    $0x2a,%edx
lea    0xd0d(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    135e <bitfield_test1+0x22e>
jmp    1363 <bitfield_test1+0x233>
lea    -0x30(%rbp),%rax
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%ecx
shl    $0x3,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
mov    %eax,-0xa8(%rbp)
mov    -0xa8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    -0xa0(%rbp),%rax
movslq -0xa4(%rbp),%rcx
or     (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    13b4 <bitfield_test1+0x284>
mov    -0x30(%rbp),%eax
sar    $0x1,%eax
and    $0x1,%eax
mov    %eax,-0xac(%rbp)
cmpl   $0x0,-0xac(%rbp)
jne    13fd <bitfield_test1+0x2cd>
mov    0x2c09(%rip),%rax
mov    (%rax),%edi
lea    0xc20(%rip),%rsi
mov    $0x2c,%edx
lea    0xc80(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    1402 <bitfield_test1+0x2d2>
jmp    1407 <bitfield_test1+0x2d7>
lea    -0x30(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rdi
mov    $0xffffffff,%esi
mov    $0x20,%edx
call   1030 <memset@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x40,-0x8(%rbp)
jge    14c5 <bitfield_test1+0x395>
jmp    143e <bitfield_test1+0x30e>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0xd4(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xd4(%rbp),%eax
mov    %edx,%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0xbc(%rbp)
cmpl   $0x0,-0xbc(%rbp)
jne    14ad <bitfield_test1+0x37d>
mov    0x2b59(%rip),%rax
mov    (%rax),%edi
lea    0xb70(%rip),%rsi
mov    $0x2f,%edx
lea    0xb8c(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    14b2 <bitfield_test1+0x382>
jmp    14b7 <bitfield_test1+0x387>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    142f <bitfield_test1+0x2ff>
jmp    14ca <bitfield_test1+0x39a>
lea    -0x30(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0xc8(%rbp),%rsi
mov    $0x20,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x40,-0x8(%rbp)
jge    1587 <bitfield_test1+0x457>
jmp    1500 <bitfield_test1+0x3d0>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0xd8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xd8(%rbp),%eax
mov    %edx,%ecx
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0xcc(%rbp)
cmpl   $0x0,-0xcc(%rbp)
jne    156f <bitfield_test1+0x43f>
mov    0x2a97(%rip),%rax
mov    (%rax),%edi
lea    0xaae(%rip),%rsi
mov    $0x33,%edx
lea    0xaca(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    158e <bitfield_test1+0x45e>
jmp    1574 <bitfield_test1+0x444>
jmp    1579 <bitfield_test1+0x449>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14f1 <bitfield_test1+0x3c1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitfield_test1>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
lea    0xeef(%rip),%rcx
mov    $0x22,%edx
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [23 x i8] c"failed on line %d: %s\0A\00"
@.str.1 = [17 x i8] c"sizeof(foo) == 8\00"
@.str.2 = [22 x i8] c"BITFIELD_TEST(foo, i)\00"
@.str.3 = [23 x i8] c"BITFIELD_TEST(foo, 14)\00"
@.str.4 = [23 x i8] c"BITFIELD_TEST(foo, 32)\00"
@.str.5 = [22 x i8] c"BITFIELD_TEST(foo, 1)\00"
define i32 @bitfield_test1() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [8 x i32]
%4 = alloca [8 x i32]
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32*
%23 = alloca i32
br label %24
24: ; preds = %0
store i32 0, i32* %5
%25 = load i32, i32* %5
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
30: ; preds = %24
br label %31
31: ; preds = %30
br label %32
32: ; preds = %31
%33 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %33, i32** %6
%34 = load i32*, i32** %6
%35 = call i32 @memset(i32* %34, i32 0, i32 32)
br label %36
36: ; preds = %32
store i32 0, i32* %2
br label %37
37: ; preds = %59, %36
%38 = load i32, i32* %2
%39 = icmp slt i32 %38, 64
br i1 %39, label %40, label %62
40: ; preds = %37
br label %41
41: ; preds = %40
%42 = load i32, i32* %2
%43 = sdiv i32 %42, 8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = load i32, i32* %2
%48 = srem i32 %47, 8
%49 = ashr i32 %46, %48
%50 = and i32 %49, 1
store i32 %50, i32* %7
%51 = load i32, i32* %7
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %41
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%56 = load i32, i32* %7
store i32 %56, i32* %1
br label %202
57: ; preds = %41
br label %58
58: ; preds = %57
br label %59
59: ; preds = %58
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %37
62: ; preds = %37
br label %63
63: ; preds = %62
%64 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %64, i32** %8
store i32 1, i32* %9
%65 = load i32, i32* %9
%66 = mul nsw i32 %65, 8
%67 = sub nsw i32 14, %66
store i32 %67, i32* %10
%68 = load i32, i32* %10
%69 = shl i32 1, %68
%70 = load i32*, i32** %8
%71 = load i32, i32* %9
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, i32* %70, i64 %72
%74 = load i32, i32* %73
%75 = or i32 %74, %69
store i32 %75, i32* %73
br label %76
76: ; preds = %63
br label %77
77: ; preds = %76
%78 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 1
%79 = load i32, i32* %78
%80 = ashr i32 %79, 6
%81 = and i32 %80, 1
store i32 %81, i32* %11
%82 = load i32, i32* %11
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %77
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
87: ; preds = %77
br label %88
88: ; preds = %87
br label %89
89: ; preds = %88
%90 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %90, i32** %12
store i32 4, i32* %13
%91 = load i32, i32* %13
%92 = mul nsw i32 %91, 8
%93 = sub nsw i32 32, %92
store i32 %93, i32* %14
%94 = load i32, i32* %14
%95 = shl i32 1, %94
%96 = load i32*, i32** %12
%97 = load i32, i32* %13
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, i32* %96, i64 %98
%100 = load i32, i32* %99
%101 = or i32 %100, %95
store i32 %101, i32* %99
br label %102
102: ; preds = %89
br label %103
103: ; preds = %102
%104 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 4
%105 = load i32, i32* %104
%106 = ashr i32 %105, 0
%107 = and i32 %106, 1
store i32 %107, i32* %15
%108 = load i32, i32* %15
%109 = icmp eq i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %103
%111 = load i32, i32* @stderr
%112 = call i32 @fprintf(i32 %111, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
113: ; preds = %103
br label %114
114: ; preds = %113
br label %115
115: ; preds = %114
%116 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %116, i32** %16
store i32 0, i32* %17
%117 = load i32, i32* %17
%118 = mul nsw i32 %117, 8
%119 = sub nsw i32 1, %118
store i32 %119, i32* %18
%120 = load i32, i32* %18
%121 = shl i32 1, %120
%122 = load i32*, i32** %16
%123 = load i32, i32* %17
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, i32* %122, i64 %124
%126 = load i32, i32* %125
%127 = or i32 %126, %121
store i32 %127, i32* %125
br label %128
128: ; preds = %115
br label %129
129: ; preds = %128
%130 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%131 = load i32, i32* %130
%132 = ashr i32 %131, 1
%133 = and i32 %132, 1
store i32 %133, i32* %19
%134 = load i32, i32* %19
%135 = icmp eq i32 %134, 0
br i1 %135, label %136, label %139
136: ; preds = %129
%137 = load i32, i32* @stderr
%138 = call i32 @fprintf(i32 %137, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
139: ; preds = %129
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
%142 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %142, i32** %20
%143 = load i32*, i32** %20
%144 = call i32 @memset(i32* %143, i32 -1, i32 32)
br label %145
145: ; preds = %141
store i32 0, i32* %2
br label %146
146: ; preds = %167, %145
%147 = load i32, i32* %2
%148 = icmp slt i32 %147, 64
br i1 %148, label %149, label %170
149: ; preds = %146
br label %150
150: ; preds = %149
%151 = load i32, i32* %2
%152 = sdiv i32 %151, 8
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %153
%155 = load i32, i32* %154
%156 = load i32, i32* %2
%157 = srem i32 %156, 8
%158 = ashr i32 %155, %157
%159 = and i32 %158, 1
store i32 %159, i32* %21
%160 = load i32, i32* %21
%161 = icmp eq i32 %160, 0
br i1 %161, label %162, label %165
162: ; preds = %150
%163 = load i32, i32* @stderr
%164 = call i32 @fprintf(i32 %163, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 47, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
165: ; preds = %150
br label %166
166: ; preds = %165
br label %167
167: ; preds = %166
%168 = load i32, i32* %2
%169 = add nsw i32 %168, 1
store i32 %169, i32* %2
br label %146
170: ; preds = %146
br label %171
171: ; preds = %170
%172 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
store i32* %172, i32** %22
%173 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 0
%174 = load i32*, i32** %22
%175 = call i32 @memcpy(i32* %173, i32* %174, i32 32)
br label %176
176: ; preds = %171
store i32 0, i32* %2
br label %177
177: ; preds = %198, %176
%178 = load i32, i32* %2
%179 = icmp slt i32 %178, 64
br i1 %179, label %180, label %201
180: ; preds = %177
br label %181
181: ; preds = %180
%182 = load i32, i32* %2
%183 = sdiv i32 %182, 8
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 %184
%186 = load i32, i32* %185
%187 = load i32, i32* %2
%188 = srem i32 %187, 8
%189 = ashr i32 %186, %188
%190 = and i32 %189, 1
store i32 %190, i32* %23
%191 = load i32, i32* %23
%192 = icmp eq i32 %191, 0
br i1 %192, label %193, label %196
193: ; preds = %181
%194 = load i32, i32* @stderr
%195 = call i32 @fprintf(i32 %194, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %202
196: ; preds = %181
br label %197
197: ; preds = %196
br label %198
198: ; preds = %197
%199 = load i32, i32* %2
%200 = add nsw i32 %199, 1
store i32 %200, i32* %2
br label %177
201: ; preds = %177
store i32 0, i32* %1
br label %202
202: ; preds = %201, %193, %162, %136, %110, %84, %53, %27
%203 = load i32, i32* %1
ret i32 %203
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"failed on line %d: %s\0A\00"
@.str.1 = [17 x i8] c"sizeof(foo) == 8\00"
define i32 @bitfield_test1() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
ret i32 -1
}