#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 /*<<< orphan*/ s;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ assign_bit(char *, int, int);
int /*<<< orphan*/ clear_bit(char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ set_bit(char *, int);
int test_bit(char *, int);
void test_two_byte() {
  printf("test two byte start...\n");
  unsigned short s = 0;
  int i;
  for (i = 0; i < sizeof(s) * 8; i++) {
    set_bit((char *)&s, i);
  }
  assert(s == 0xffff);
  for (i = 0; i < sizeof(s) * 8; i++) {
    assert(test_bit((char *)&s, i) == 1);
  }
  for (i = 0; i < sizeof(s) * 8; i++) {
    clear_bit((char *)&s, i);
  }
  assert(s == 0);
  for (i = 0; i < sizeof(s) * 8; i++) {
    assign_bit((char *)&s, i, 1);
  }
  assert(s == 0xffff);
  for (i = 0; i < sizeof(s) * 8; i++) {
    assign_bit((char *)&s, i, 0);
  }
  assert(s == 0);
}


x86 assembly (clang, -O0):
<test_two_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
movw   $0x0,-0x2(%rbp)
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
jae    11a9 <test_two_byte+0x49>
lea    -0x2(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1050 <set_bit@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1181 <test_two_byte+0x21>
movzwl -0x2(%rbp),%eax
cmp    $0xffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
jae    11fe <test_two_byte+0x9e>
lea    -0x2(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1070 <test_bit@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11c6 <test_two_byte+0x66>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
jae    122d <test_two_byte+0xcd>
lea    -0x2(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1040 <clear_bit@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1205 <test_two_byte+0xa5>
movzwl -0x2(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
jae    1275 <test_two_byte+0x115>
lea    -0x2(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1248 <test_two_byte+0xe8>
movzwl -0x2(%rbp),%eax
cmp    $0xffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
jae    12bc <test_two_byte+0x15c>
lea    -0x2(%rbp),%rdi
mov    -0x8(%rbp),%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1292 <test_two_byte+0x132>
movzwl -0x2(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_two_byte>:
push   %rbx
sub    $0x10,%rsp
lea    0xe94(%rip),%rdi
call   1030 <puts@plt>
movw   $0x0,0xe(%rsp)
lea    0xe(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1050 <set_bit@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1050 <set_bit@plt>
xor    %edi,%edi
cmpw   $0xffff,0xe(%rsp)
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1070 <test_bit@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1040 <clear_bit@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
call   1040 <clear_bit@plt>
xor    %edi,%edi
cmpw   $0x0,0xe(%rsp)
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1080 <assign_bit@plt>
xor    %edi,%edi
cmpw   $0xffff,0xe(%rsp)
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %edx,%edx
call   1080 <assign_bit@plt>
xor    %edi,%edi
cmpw   $0x0,0xe(%rsp)
sete   %dil
call   1060 <assert@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"test two byte start...\0A\00"
define void @test_two_byte() {
%1 = alloca i16
%2 = alloca i32
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i16 0, i16* %1
store i32 0, i32* %2
br label %4
4: ; preds = %12, %0
%5 = load i32, i32* %2
%6 = sext i32 %5 to i64
%7 = icmp ult i64 %6, 16
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = bitcast i16* %1 to i8*
%10 = load i32, i32* %2
%11 = call i32 @set_bit(i8* %9, i32 %10)
br label %12
12: ; preds = %8
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
br label %4
15: ; preds = %4
%16 = load i16, i16* %1
%17 = zext i16 %16 to i32
%18 = icmp eq i32 %17, 65535
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
store i32 0, i32* %2
br label %21
21: ; preds = %32, %15
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = icmp ult i64 %23, 16
br i1 %24, label %25, label %35
25: ; preds = %21
%26 = bitcast i16* %1 to i8*
%27 = load i32, i32* %2
%28 = call i32 @test_bit(i8* %26, i32 %27)
%29 = icmp eq i32 %28, 1
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
br label %32
32: ; preds = %25
%33 = load i32, i32* %2
%34 = add nsw i32 %33, 1
store i32 %34, i32* %2
br label %21
35: ; preds = %21
store i32 0, i32* %2
br label %36
36: ; preds = %44, %35
%37 = load i32, i32* %2
%38 = sext i32 %37 to i64
%39 = icmp ult i64 %38, 16
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = bitcast i16* %1 to i8*
%42 = load i32, i32* %2
%43 = call i32 @clear_bit(i8* %41, i32 %42)
br label %44
44: ; preds = %40
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %36
47: ; preds = %36
%48 = load i16, i16* %1
%49 = zext i16 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
store i32 0, i32* %2
br label %53
53: ; preds = %61, %47
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = icmp ult i64 %55, 16
br i1 %56, label %57, label %64
57: ; preds = %53
%58 = bitcast i16* %1 to i8*
%59 = load i32, i32* %2
%60 = call i32 @assign_bit(i8* %58, i32 %59, i32 1)
br label %61
61: ; preds = %57
%62 = load i32, i32* %2
%63 = add nsw i32 %62, 1
store i32 %63, i32* %2
br label %53
64: ; preds = %53
%65 = load i16, i16* %1
%66 = zext i16 %65 to i32
%67 = icmp eq i32 %66, 65535
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
store i32 0, i32* %2
br label %70
70: ; preds = %78, %64
%71 = load i32, i32* %2
%72 = sext i32 %71 to i64
%73 = icmp ult i64 %72, 16
br i1 %73, label %74, label %81
74: ; preds = %70
%75 = bitcast i16* %1 to i8*
%76 = load i32, i32* %2
%77 = call i32 @assign_bit(i8* %75, i32 %76, i32 0)
br label %78
78: ; preds = %74
%79 = load i32, i32* %2
%80 = add nsw i32 %79, 1
store i32 %80, i32* %2
br label %70
81: ; preds = %70
%82 = load i16, i16* %1
%83 = zext i16 %82 to i32
%84 = icmp eq i32 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"test two byte start...\00"
define void @test_two_byte() {
%1 = alloca i16
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%3 = bitcast i16* %1 to i8*
store i16 0, i16* %1
%4 = call i32 @set_bit(i8* %3, i32 0)
%5 = call i32 @set_bit(i8* %3, i32 1)
%6 = call i32 @set_bit(i8* %3, i32 2)
%7 = call i32 @set_bit(i8* %3, i32 3)
%8 = call i32 @set_bit(i8* %3, i32 4)
%9 = call i32 @set_bit(i8* %3, i32 5)
%10 = call i32 @set_bit(i8* %3, i32 6)
%11 = call i32 @set_bit(i8* %3, i32 7)
%12 = call i32 @set_bit(i8* %3, i32 8)
%13 = call i32 @set_bit(i8* %3, i32 9)
%14 = call i32 @set_bit(i8* %3, i32 10)
%15 = call i32 @set_bit(i8* %3, i32 11)
%16 = call i32 @set_bit(i8* %3, i32 12)
%17 = call i32 @set_bit(i8* %3, i32 13)
%18 = call i32 @set_bit(i8* %3, i32 14)
%19 = call i32 @set_bit(i8* %3, i32 15)
%20 = load i16, i16* %1
%21 = icmp eq i16 %20, -1
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = call i32 @test_bit(i8* %3, i32 0)
%25 = icmp eq i32 %24, 1
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = call i32 @test_bit(i8* %3, i32 1)
%29 = icmp eq i32 %28, 1
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = call i32 @test_bit(i8* %3, i32 2)
%33 = icmp eq i32 %32, 1
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = call i32 @test_bit(i8* %3, i32 3)
%37 = icmp eq i32 %36, 1
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = call i32 @test_bit(i8* %3, i32 4)
%41 = icmp eq i32 %40, 1
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = call i32 @test_bit(i8* %3, i32 5)
%45 = icmp eq i32 %44, 1
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = call i32 @test_bit(i8* %3, i32 6)
%49 = icmp eq i32 %48, 1
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
%52 = call i32 @test_bit(i8* %3, i32 7)
%53 = icmp eq i32 %52, 1
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = call i32 @test_bit(i8* %3, i32 8)
%57 = icmp eq i32 %56, 1
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
%60 = call i32 @test_bit(i8* %3, i32 9)
%61 = icmp eq i32 %60, 1
%62 = zext i1 %61 to i32
%63 = call i32 @assert(i32 %62)
%64 = call i32 @test_bit(i8* %3, i32 10)
%65 = icmp eq i32 %64, 1
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 %66)
%68 = call i32 @test_bit(i8* %3, i32 11)
%69 = icmp eq i32 %68, 1
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 %70)
%72 = call i32 @test_bit(i8* %3, i32 12)
%73 = icmp eq i32 %72, 1
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = call i32 @test_bit(i8* %3, i32 13)
%77 = icmp eq i32 %76, 1
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = call i32 @test_bit(i8* %3, i32 14)
%81 = icmp eq i32 %80, 1
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = call i32 @test_bit(i8* %3, i32 15)
%85 = icmp eq i32 %84, 1
%86 = zext i1 %85 to i32
%87 = call i32 @assert(i32 %86)
%88 = call i32 @clear_bit(i8* %3, i32 0)
%89 = call i32 @clear_bit(i8* %3, i32 1)
%90 = call i32 @clear_bit(i8* %3, i32 2)
%91 = call i32 @clear_bit(i8* %3, i32 3)
%92 = call i32 @clear_bit(i8* %3, i32 4)
%93 = call i32 @clear_bit(i8* %3, i32 5)
%94 = call i32 @clear_bit(i8* %3, i32 6)
%95 = call i32 @clear_bit(i8* %3, i32 7)
%96 = call i32 @clear_bit(i8* %3, i32 8)
%97 = call i32 @clear_bit(i8* %3, i32 9)
%98 = call i32 @clear_bit(i8* %3, i32 10)
%99 = call i32 @clear_bit(i8* %3, i32 11)
%100 = call i32 @clear_bit(i8* %3, i32 12)
%101 = call i32 @clear_bit(i8* %3, i32 13)
%102 = call i32 @clear_bit(i8* %3, i32 14)
%103 = call i32 @clear_bit(i8* %3, i32 15)
%104 = load i16, i16* %1
%105 = icmp eq i16 %104, 0
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = call i32 @assign_bit(i8* %3, i32 0, i32 1)
%109 = call i32 @assign_bit(i8* %3, i32 1, i32 1)
%110 = call i32 @assign_bit(i8* %3, i32 2, i32 1)
%111 = call i32 @assign_bit(i8* %3, i32 3, i32 1)
%112 = call i32 @assign_bit(i8* %3, i32 4, i32 1)
%113 = call i32 @assign_bit(i8* %3, i32 5, i32 1)
%114 = call i32 @assign_bit(i8* %3, i32 6, i32 1)
%115 = call i32 @assign_bit(i8* %3, i32 7, i32 1)
%116 = call i32 @assign_bit(i8* %3, i32 8, i32 1)
%117 = call i32 @assign_bit(i8* %3, i32 9, i32 1)
%118 = call i32 @assign_bit(i8* %3, i32 10, i32 1)
%119 = call i32 @assign_bit(i8* %3, i32 11, i32 1)
%120 = call i32 @assign_bit(i8* %3, i32 12, i32 1)
%121 = call i32 @assign_bit(i8* %3, i32 13, i32 1)
%122 = call i32 @assign_bit(i8* %3, i32 14, i32 1)
%123 = call i32 @assign_bit(i8* %3, i32 15, i32 1)
%124 = load i16, i16* %1
%125 = icmp eq i16 %124, -1
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = call i32 @assign_bit(i8* %3, i32 0, i32 0)
%129 = call i32 @assign_bit(i8* %3, i32 1, i32 0)
%130 = call i32 @assign_bit(i8* %3, i32 2, i32 0)
%131 = call i32 @assign_bit(i8* %3, i32 3, i32 0)
%132 = call i32 @assign_bit(i8* %3, i32 4, i32 0)
%133 = call i32 @assign_bit(i8* %3, i32 5, i32 0)
%134 = call i32 @assign_bit(i8* %3, i32 6, i32 0)
%135 = call i32 @assign_bit(i8* %3, i32 7, i32 0)
%136 = call i32 @assign_bit(i8* %3, i32 8, i32 0)
%137 = call i32 @assign_bit(i8* %3, i32 9, i32 0)
%138 = call i32 @assign_bit(i8* %3, i32 10, i32 0)
%139 = call i32 @assign_bit(i8* %3, i32 11, i32 0)
%140 = call i32 @assign_bit(i8* %3, i32 12, i32 0)
%141 = call i32 @assign_bit(i8* %3, i32 13, i32 0)
%142 = call i32 @assign_bit(i8* %3, i32 14, i32 0)
%143 = call i32 @assign_bit(i8* %3, i32 15, i32 0)
%144 = load i16, i16* %1
%145 = icmp eq i16 %144, 0
%146 = zext i1 %145 to i32
%147 = call i32 @assert(i32 %146)
ret void
}