#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 */
unsigned int contain_m_in_n(unsigned int, unsigned int, int, int);
int getbit(unsigned int, int);
int /*<<< orphan*/ printf(char *, ...);
unsigned int update_bits_directly(unsigned int, unsigned int, int, int);
int main() {
  int c;
  unsigned int n = 1024;
  unsigned int m = 16 + 2 + 1;
  int j = 6;
  int i = 2;
  printf("n: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(n, c));
  }
  printf("\nm: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(m, c));
  }
  printf("\nj: %d", j);
  printf("\ni: %d", i);
  n = contain_m_in_n(m, n, j, i);
  printf("\nresult: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(n, c));
  }
  printf("\n\n");
  n = 1024 + 512 + 256 + 128 + 64;
  m = 16 + 1;
  j = 5;
  i = 1;
  printf("n: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(n, c));
  }
  printf("\nm: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(m, c));
  }
  printf("\nj: %d", j);
  printf("\ni: %d", i);
  n = update_bits_directly(m, n, j, i);
  printf("\nresult: ");
  for (c = 31; c >= 0; c--) {
    printf("%d", getbit(n, c));
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x400,-0xc(%rbp)
movl   $0x13,-0x10(%rbp)
movl   $0x6,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     11b3 <main+0x73>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1180 <main+0x40>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     11fb <main+0xbb>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    11c8 <main+0x88>
mov    -0x14(%rbp),%esi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1050 <contain_m_in_n@plt>
mov    %eax,-0xc(%rbp)
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1279 <main+0x139>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1246 <main+0x106>
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x7c0,-0xc(%rbp)
movl   $0x11,-0x10(%rbp)
movl   $0x5,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     12eb <main+0x1ab>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    12b8 <main+0x178>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1333 <main+0x1f3>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1300 <main+0x1c0>
mov    -0x14(%rbp),%esi
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1040 <update_bits_directly@plt>
mov    %eax,-0xc(%rbp)
lea    0xca7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     13b1 <main+0x271>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <getbit@plt>
mov    %eax,%esi
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    137e <main+0x23e>
lea    0xc6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xe95(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebx
lea    0xe96(%rip),%rbp
xchg   %ax,%ax
mov    $0x400,%edi
mov    %ebx,%esi
call   1080 <getbit@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jb     1180 <main+0x20>
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebx
lea    0xe5d(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    $0x13,%edi
mov    %ebx,%esi
call   1080 <getbit@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jb     11c0 <main+0x60>
lea    0xe25(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe19(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x13,%edi
mov    $0x400,%esi
mov    $0x6,%edx
mov    $0x2,%ecx
call   1070 <contain_m_in_n@plt>
mov    %eax,%ebx
lea    0xdf2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebp
lea    0xddc(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %ebp,%esi
call   1080 <getbit@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebp
jb     1240 <main+0xe0>
lea    0xdc0(%rip),%rdi
call   1040 <puts@plt>
lea    0xd93(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebx
lea    0xd94(%rip),%rbp
mov    $0x7c0,%edi
mov    %ebx,%esi
call   1080 <getbit@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jb     1280 <main+0x120>
lea    0xd60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebx
lea    0xd5d(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    $0x11,%edi
mov    %ebx,%esi
call   1080 <getbit@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jb     12c0 <main+0x160>
lea    0xd25(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd19(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x11,%edi
mov    $0x7c0,%esi
mov    $0x5,%edx
mov    $0x1,%ecx
call   1060 <update_bits_directly@plt>
mov    %eax,%ebx
lea    0xcf2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1f,%ebp
lea    0xcdc(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %ebp,%esi
call   1080 <getbit@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebp
jb     1340 <main+0x1e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"n: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [5 x i8] c"\0Am: \00"
@.str.3 = [7 x i8] c"\0Aj: %d\00"
@.str.4 = [7 x i8] c"\0Ai: %d\00"
@.str.5 = [10 x i8] c"\0Aresult: \00"
@.str.6 = [3 x i8] c"\0A\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 1024, i32* %3
store i32 19, i32* %4
store i32 6, i32* %5
store i32 2, i32* %6
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 31, i32* %2
br label %8
8: ; preds = %16, %0
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, i32* %3
%13 = load i32, i32* %2
%14 = call i32 @getbit(i32 %12, i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %11
%17 = load i32, i32* %2
%18 = add nsw i32 %17, -1
store i32 %18, i32* %2
br label %8
19: ; preds = %8
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 31, i32* %2
br label %21
21: ; preds = %29, %19
%22 = load i32, i32* %2
%23 = icmp sge i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = load i32, i32* %4
%26 = load i32, i32* %2
%27 = call i32 @getbit(i32 %25, i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %24
%30 = load i32, i32* %2
%31 = add nsw i32 %30, -1
store i32 %31, i32* %2
br label %21
32: ; preds = %21
%33 = load i32, i32* %5
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %6
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = load i32, i32* %4
%38 = load i32, i32* %3
%39 = load i32, i32* %5
%40 = load i32, i32* %6
%41 = call i32 @contain_m_in_n(i32 %37, i32 %38, i32 %39, i32 %40)
store i32 %41, i32* %3
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store i32 31, i32* %2
br label %43
43: ; preds = %51, %32
%44 = load i32, i32* %2
%45 = icmp sge i32 %44, 0
br i1 %45, label %46, label %54
46: ; preds = %43
%47 = load i32, i32* %3
%48 = load i32, i32* %2
%49 = call i32 @getbit(i32 %47, i32 %48)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %46
%52 = load i32, i32* %2
%53 = add nsw i32 %52, -1
store i32 %53, i32* %2
br label %43
54: ; preds = %43
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i32 1984, i32* %3
store i32 17, i32* %4
store i32 5, i32* %5
store i32 1, i32* %6
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 31, i32* %2
br label %57
57: ; preds = %65, %54
%58 = load i32, i32* %2
%59 = icmp sge i32 %58, 0
br i1 %59, label %60, label %68
60: ; preds = %57
%61 = load i32, i32* %3
%62 = load i32, i32* %2
%63 = call i32 @getbit(i32 %61, i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %63)
br label %65
65: ; preds = %60
%66 = load i32, i32* %2
%67 = add nsw i32 %66, -1
store i32 %67, i32* %2
br label %57
68: ; preds = %57
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 31, i32* %2
br label %70
70: ; preds = %78, %68
%71 = load i32, i32* %2
%72 = icmp sge i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %70
%74 = load i32, i32* %4
%75 = load i32, i32* %2
%76 = call i32 @getbit(i32 %74, i32 %75)
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %73
%79 = load i32, i32* %2
%80 = add nsw i32 %79, -1
store i32 %80, i32* %2
br label %70
81: ; preds = %70
%82 = load i32, i32* %5
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %6
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %4
%87 = load i32, i32* %3
%88 = load i32, i32* %5
%89 = load i32, i32* %6
%90 = call i32 @update_bits_directly(i32 %86, i32 %87, i32 %88, i32 %89)
store i32 %90, i32* %3
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store i32 31, i32* %2
br label %92
92: ; preds = %100, %81
%93 = load i32, i32* %2
%94 = icmp sge i32 %93, 0
br i1 %94, label %95, label %103
95: ; preds = %92
%96 = load i32, i32* %3
%97 = load i32, i32* %2
%98 = call i32 @getbit(i32 %96, i32 %97)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %98)
br label %100
100: ; preds = %95
%101 = load i32, i32* %2
%102 = add nsw i32 %101, -1
store i32 %102, i32* %2
br label %92
103: ; preds = %92
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%105 = load i32, i32* %1
ret i32 %105
}

LLVM IR (-O2):
@.str = [4 x i8] c"n: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [5 x i8] c"\0Am: \00"
@.str.3 = [7 x i8] c"\0Aj: %d\00"
@.str.4 = [7 x i8] c"\0Ai: %d\00"
@.str.5 = [10 x i8] c"\0Aresult: \00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 31, %0 ], [ %6, %2 ]
%4 = tail call i32 @getbit(i32 1024, i32 %3)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = add nsw i32 %3, -1
%7 = icmp eq i32 %3, 0
br i1 %7, label %8, label %2
8: ; preds = %2
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %8, %10
%11 = phi i32 [ 31, %8 ], [ %14, %10 ]
%12 = tail call i32 @getbit(i32 19, i32 %11)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = add nsw i32 %11, -1
%15 = icmp eq i32 %11, 0
br i1 %15, label %16, label %10
16: ; preds = %10
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 2)
%19 = tail call i32 @contain_m_in_n(i32 19, i32 1024, i32 6, i32 2)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %21
21: ; preds = %16, %21
%22 = phi i32 [ 31, %16 ], [ %25, %21 ]
%23 = tail call i32 @getbit(i32 %19, i32 %22)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = add nsw i32 %22, -1
%26 = icmp eq i32 %22, 0
br i1 %26, label %27, label %21
27: ; preds = %21
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %30
30: ; preds = %27, %30
%31 = phi i32 [ 31, %27 ], [ %34, %30 ]
%32 = tail call i32 @getbit(i32 1984, i32 %31)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = add nsw i32 %31, -1
%35 = icmp eq i32 %31, 0
br i1 %35, label %36, label %30
36: ; preds = %30
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %38
%39 = phi i32 [ 31, %36 ], [ %42, %38 ]
%40 = tail call i32 @getbit(i32 17, i32 %39)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = add nsw i32 %39, -1
%43 = icmp eq i32 %39, 0
br i1 %43, label %44, label %38
44: ; preds = %38
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 5)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 1)
%47 = tail call i32 @update_bits_directly(i32 17, i32 1984, i32 5, i32 1)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %49
49: ; preds = %44, %49
%50 = phi i32 [ 31, %44 ], [ %53, %49 ]
%51 = tail call i32 @getbit(i32 %47, i32 %50)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %51)
%53 = add nsw i32 %50, -1
%54 = icmp eq i32 %50, 0
br i1 %54, label %55, label %49
55: ; preds = %49
%56 = tail call i32 @putchar(i32 10)
ret i32 0
}