#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 */

/* Variables and functions */
scalar_t__ log2(int);
int /*<<< orphan*/ printf(char *);
void print_dll_characteristics(int *flags) {
  if (flags[(int)log2(0x0001)] == 1) {
    printf("(reserved)\n");
  }
  if (flags[(int)log2(0x0002)] == 1) {
    printf("(reserved)\n");
  }
  if (flags[(int)log2(0x0004)] == 1) {
    printf("(reserved)\n");
  }
  if (flags[(int)log2(0x0008)] == 1) {
    printf("(reserved)\n");
  }
  if (flags[(int)log2(0x0040)] == 1) {
    printf("IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE");
    printf("\n");
  }
  if (flags[(int)log2(0x0080)] == 1) {
    printf("IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY");
    printf("\n");
  }
  if (flags[(int)log2(0x0100)] == 1) {
    printf("IMAGE_DLL_CHARACTERISTICS_NX_COMPAT");
    printf("\n");
  }
  if (flags[(int)log2(0x0200)] == 1) {
    printf("IMAGE_DLLCHARACTERISTICS_NO_ISOLATION");
    printf("\n");
  }
  if (flags[(int)log2(0x0400)] == 1) {
    printf("IMAGE_DLLCHARACTERISTICS_NO_SEH");
    printf("\n");
  }
  if (flags[(int)log2(0x0800)] == 1) {
    printf("IMAGE_DLLCHARACTERISTICS_NO_BIND");
  }
  if (flags[(int)log2(0x1000)] == 1) {
    printf("(reserved)\n");
  }
  if (flags[(int)log2(0x2000)] == 1) {
    printf("IMAGE_DLLCHARACTERISTICS_WDM_DRIVER");
    printf("\n");
  }
  if (flags[(int)log2(0x8000)] == 1) {
    printf("IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE");
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<print_dll_characteristics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x1,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    115e <print_dll_characteristics+0x3e>
lea    0xea7(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x2,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1190 <print_dll_characteristics+0x70>
lea    0xe75(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x4,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    11c2 <print_dll_characteristics+0xa2>
lea    0xe43(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    $0x8,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    11f4 <print_dll_characteristics+0xd4>
lea    0xe11(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    $0x40,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1232 <print_dll_characteristics+0x112>
lea    0xdeb(%rip),%rdi
call   1040 <printf@plt>
lea    0xddd(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    $0x80,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1270 <print_dll_characteristics+0x150>
lea    0xdd4(%rip),%rdi
call   1040 <printf@plt>
lea    0xd9f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x100,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    12ae <print_dll_characteristics+0x18e>
lea    0xdc0(%rip),%rdi
call   1040 <printf@plt>
lea    0xd61(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    $0x200,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x48(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    12ec <print_dll_characteristics+0x1cc>
lea    0xda6(%rip),%rdi
call   1040 <printf@plt>
lea    0xd23(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    $0x400,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x50(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    132a <print_dll_characteristics+0x20a>
lea    0xd8e(%rip),%rdi
call   1040 <printf@plt>
lea    0xce5(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    $0x800,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    135c <print_dll_characteristics+0x23c>
lea    0xd70(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    $0x1000,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    138e <print_dll_characteristics+0x26e>
lea    0xc77(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    $0x2000,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    13cc <print_dll_characteristics+0x2ac>
lea    0xd2d(%rip),%rdi
call   1040 <printf@plt>
lea    0xc43(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    $0x8000,%edi
call   1030 <log2@plt>
mov    %rax,%rcx
mov    -0x70(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    140a <print_dll_characteristics+0x2ea>
lea    0xd13(%rip),%rdi
call   1040 <printf@plt>
lea    0xc05(%rip),%rdi
call   1040 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_dll_characteristics>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    1162 <print_dll_characteristics+0x22>
lea    0xfd2(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    1180 <print_dll_characteristics+0x40>
lea    0xfb4(%rip),%rdi
call   1050 <puts@plt>
mov    $0x4,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    119e <print_dll_characteristics+0x5e>
lea    0xf96(%rip),%rdi
call   1050 <puts@plt>
mov    $0x8,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    11bc <print_dll_characteristics+0x7c>
lea    0xf78(%rip),%rdi
call   1050 <puts@plt>
mov    $0x40,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    11e4 <print_dll_characteristics+0xa4>
lea    0xe2b(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x80,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    120c <print_dll_characteristics+0xcc>
lea    0xe2a(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x100,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    1234 <print_dll_characteristics+0xf4>
lea    0xe2c(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x200,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    125c <print_dll_characteristics+0x11c>
lea    0xe28(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x400,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    1284 <print_dll_characteristics+0x144>
lea    0xe26(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x800,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    12a2 <print_dll_characteristics+0x162>
lea    0xe1e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x1000,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    12c0 <print_dll_characteristics+0x180>
lea    0xe74(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2000,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    12e8 <print_dll_characteristics+0x1a8>
lea    0xe03(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x8000,%edi
call   1040 <log2@plt>
cltq
cmpl   $0x1,(%rbx,%rax,4)
jne    1311 <print_dll_characteristics+0x1d1>
lea    0xdff(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"(reserved)\0A\00"
@.str.1 = [39 x i8] c"IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [42 x i8] c"IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY\00"
@.str.4 = [36 x i8] c"IMAGE_DLL_CHARACTERISTICS_NX_COMPAT\00"
@.str.5 = [38 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_ISOLATION\00"
@.str.6 = [32 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_SEH\00"
@.str.7 = [33 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_BIND\00"
@.str.8 = [36 x i8] c"IMAGE_DLLCHARACTERISTICS_WDM_DRIVER\00"
@.str.9 = [47 x i8] c"IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE\00"
define void @print_dll_characteristics(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i64 @log2(i32 1)
%5 = trunc i64 %4 to i32
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, i32* %3, i64 %6
%8 = load i32, i32* %7
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %1
%13 = load i32*, i32** %2
%14 = call i64 @log2(i32 2)
%15 = trunc i64 %14 to i32
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, i32* %13, i64 %16
%18 = load i32, i32* %17
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %12
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %22
22: ; preds = %20, %12
%23 = load i32*, i32** %2
%24 = call i64 @log2(i32 4)
%25 = trunc i64 %24 to i32
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, i32* %23, i64 %26
%28 = load i32, i32* %27
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %32
30: ; preds = %22
%31 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %32
32: ; preds = %30, %22
%33 = load i32*, i32** %2
%34 = call i64 @log2(i32 8)
%35 = trunc i64 %34 to i32
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, i32* %33, i64 %36
%38 = load i32, i32* %37
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %42
40: ; preds = %32
%41 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %42
42: ; preds = %40, %32
%43 = load i32*, i32** %2
%44 = call i64 @log2(i32 64)
%45 = trunc i64 %44 to i32
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, i32* %43, i64 %46
%48 = load i32, i32* %47
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %50, %42
%54 = load i32*, i32** %2
%55 = call i64 @log2(i32 128)
%56 = trunc i64 %55 to i32
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, i32* %54, i64 %57
%59 = load i32, i32* %58
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %64
61: ; preds = %53
%62 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%63 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %64
64: ; preds = %61, %53
%65 = load i32*, i32** %2
%66 = call i64 @log2(i32 256)
%67 = trunc i64 %66 to i32
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %65, i64 %68
%70 = load i32, i32* %69
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %75
72: ; preds = %64
%73 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%74 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %75
75: ; preds = %72, %64
%76 = load i32*, i32** %2
%77 = call i64 @log2(i32 512)
%78 = trunc i64 %77 to i32
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, i32* %76, i64 %79
%81 = load i32, i32* %80
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %86
83: ; preds = %75
%84 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%85 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %86
86: ; preds = %83, %75
%87 = load i32*, i32** %2
%88 = call i64 @log2(i32 1024)
%89 = trunc i64 %88 to i32
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %87, i64 %90
%92 = load i32, i32* %91
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %97
94: ; preds = %86
%95 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%96 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %97
97: ; preds = %94, %86
%98 = load i32*, i32** %2
%99 = call i64 @log2(i32 2048)
%100 = trunc i64 %99 to i32
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %98, i64 %101
%103 = load i32, i32* %102
%104 = icmp eq i32 %103, 1
br i1 %104, label %105, label %107
105: ; preds = %97
%106 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
br label %107
107: ; preds = %105, %97
%108 = load i32*, i32** %2
%109 = call i64 @log2(i32 4096)
%110 = trunc i64 %109 to i32
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, i32* %108, i64 %111
%113 = load i32, i32* %112
%114 = icmp eq i32 %113, 1
br i1 %114, label %115, label %117
115: ; preds = %107
%116 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %117
117: ; preds = %115, %107
%118 = load i32*, i32** %2
%119 = call i64 @log2(i32 8192)
%120 = trunc i64 %119 to i32
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, i32* %118, i64 %121
%123 = load i32, i32* %122
%124 = icmp eq i32 %123, 1
br i1 %124, label %125, label %128
125: ; preds = %117
%126 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%127 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %128
128: ; preds = %125, %117
%129 = load i32*, i32** %2
%130 = call i64 @log2(i32 32768)
%131 = trunc i64 %130 to i32
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i32, i32* %129, i64 %132
%134 = load i32, i32* %133
%135 = icmp eq i32 %134, 1
br i1 %135, label %136, label %139
136: ; preds = %128
%137 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%138 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %139
139: ; preds = %136, %128
ret void
}

LLVM IR (-O2):
@.str.1 = [39 x i8] c"IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE\00"
@.str.3 = [42 x i8] c"IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY\00"
@.str.4 = [36 x i8] c"IMAGE_DLL_CHARACTERISTICS_NX_COMPAT\00"
@.str.5 = [38 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_ISOLATION\00"
@.str.6 = [32 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_SEH\00"
@.str.7 = [33 x i8] c"IMAGE_DLLCHARACTERISTICS_NO_BIND\00"
@.str.8 = [36 x i8] c"IMAGE_DLLCHARACTERISTICS_WDM_DRIVER\00"
@.str.9 = [47 x i8] c"IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE\00"
@str.13 = [11 x i8] c"(reserved)\00"
define void @print_dll_characteristics(i32* nocapture %0) {
%2 = tail call i64 @log2(i32 1)
%3 = shl i64 %2, 32
%4 = ashr exact i64 %3, 32
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.13, i64 0, i64 0))
br label %10
10: ; preds = %8, %1
%11 = tail call i64 @log2(i32 2)
%12 = shl i64 %11, 32
%13 = ashr exact i64 %12, 32
%14 = getelementptr inbounds i32, i32* %0, i64 %13
%15 = load i32, i32* %14
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.13, i64 0, i64 0))
br label %19
19: ; preds = %17, %10
%20 = tail call i64 @log2(i32 4)
%21 = shl i64 %20, 32
%22 = ashr exact i64 %21, 32
%23 = getelementptr inbounds i32, i32* %0, i64 %22
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.13, i64 0, i64 0))
br label %28
28: ; preds = %26, %19
%29 = tail call i64 @log2(i32 8)
%30 = shl i64 %29, 32
%31 = ashr exact i64 %30, 32
%32 = getelementptr inbounds i32, i32* %0, i64 %31
%33 = load i32, i32* %32
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %28
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.13, i64 0, i64 0))
br label %37
37: ; preds = %35, %28
%38 = tail call i64 @log2(i32 64)
%39 = shl i64 %38, 32
%40 = ashr exact i64 %39, 32
%41 = getelementptr inbounds i32, i32* %0, i64 %40
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%46 = tail call i32 @putchar(i32 10)
br label %47
47: ; preds = %44, %37
%48 = tail call i64 @log2(i32 128)
%49 = shl i64 %48, 32
%50 = ashr exact i64 %49, 32
%51 = getelementptr inbounds i32, i32* %0, i64 %50
%52 = load i32, i32* %51
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %57
54: ; preds = %47
%55 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%56 = tail call i32 @putchar(i32 10)
br label %57
57: ; preds = %54, %47
%58 = tail call i64 @log2(i32 256)
%59 = shl i64 %58, 32
%60 = ashr exact i64 %59, 32
%61 = getelementptr inbounds i32, i32* %0, i64 %60
%62 = load i32, i32* %61
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %67
64: ; preds = %57
%65 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%66 = tail call i32 @putchar(i32 10)
br label %67
67: ; preds = %64, %57
%68 = tail call i64 @log2(i32 512)
%69 = shl i64 %68, 32
%70 = ashr exact i64 %69, 32
%71 = getelementptr inbounds i32, i32* %0, i64 %70
%72 = load i32, i32* %71
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %77
74: ; preds = %67
%75 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%76 = tail call i32 @putchar(i32 10)
br label %77
77: ; preds = %74, %67
%78 = tail call i64 @log2(i32 1024)
%79 = shl i64 %78, 32
%80 = ashr exact i64 %79, 32
%81 = getelementptr inbounds i32, i32* %0, i64 %80
%82 = load i32, i32* %81
%83 = icmp eq i32 %82, 1
br i1 %83, label %84, label %87
84: ; preds = %77
%85 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%86 = tail call i32 @putchar(i32 10)
br label %87
87: ; preds = %84, %77
%88 = tail call i64 @log2(i32 2048)
%89 = shl i64 %88, 32
%90 = ashr exact i64 %89, 32
%91 = getelementptr inbounds i32, i32* %0, i64 %90
%92 = load i32, i32* %91
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %96
94: ; preds = %87
%95 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
br label %96
96: ; preds = %94, %87
%97 = tail call i64 @log2(i32 4096)
%98 = shl i64 %97, 32
%99 = ashr exact i64 %98, 32
%100 = getelementptr inbounds i32, i32* %0, i64 %99
%101 = load i32, i32* %100
%102 = icmp eq i32 %101, 1
br i1 %102, label %103, label %105
103: ; preds = %96
%104 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.13, i64 0, i64 0))
br label %105
105: ; preds = %103, %96
%106 = tail call i64 @log2(i32 8192)
%107 = shl i64 %106, 32
%108 = ashr exact i64 %107, 32
%109 = getelementptr inbounds i32, i32* %0, i64 %108
%110 = load i32, i32* %109
%111 = icmp eq i32 %110, 1
br i1 %111, label %112, label %115
112: ; preds = %105
%113 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%114 = tail call i32 @putchar(i32 10)
br label %115
115: ; preds = %112, %105
%116 = tail call i64 @log2(i32 32768)
%117 = shl i64 %116, 32
%118 = ashr exact i64 %117, 32
%119 = getelementptr inbounds i32, i32* %0, i64 %118
%120 = load i32, i32* %119
%121 = icmp eq i32 %120, 1
br i1 %121, label %122, label %125
122: ; preds = %115
%123 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%124 = tail call i32 @putchar(i32 10)
br label %125
125: ; preds = %122, %115
ret void
}