#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__ calloc(int, int);
int /*<<< orphan*/ exit(int);
scalar_t__ isdigit(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, const char *argv[]) {
  int x = 0;
  int y = 0;
  printf("Enter X: ");
  scanf("%d", &x);
  printf("Enter Y: ");
  scanf("%d", &y);
  printf("X as Decimal : %d\nX as Hexadecimal %hhx\nY as Decimal : %d\nY as "
         "Hexadecimal %hhx\n",
         x, x, y, y);
  int cel = 0;
  if (x != y) {
    double real = (double)x / y;
    cel = x / y;
    printf("Kolicnik : %lf | %d\n", real, cel);
  }
  int numberOfBytesInInt = sizeof(int) * 8;
  int bufferSize = numberOfBytesInInt;
  char *binArr = (char *)calloc(bufferSize, sizeof(char));
  if (!binArr) {
    printf("Memory Allocation error. Exiting.\n");
    exit(1);
  }
  int i = 0;
  while (cel) {
    if (cel & 1) {
      binArr[i++] = '1';
    } else {
      binArr[i++] = '0';
    }
    cel >>= 1;
  }
  int firstOccurrence = 0;
  int lastOccurrence = 0;
  int j = 1;
  for (i = bufferSize - 1; i >= 0; i--) {
    int temp = j++ % 4;
    if (binArr[i] == '1') {
      if (lastOccurrence == 0)
        lastOccurrence = i;
      firstOccurrence = i;
    }
    if (temp == 0) {
      if (isdigit(binArr[i])) {
        printf("%c ", binArr[i]);
      } else
        printf("0 ");
    } else {
      if (isdigit(binArr[i])) {
        printf("%c", binArr[i]);
      } else
        printf("0");
    }
  }
  printf("\nLast Occurrence of 1 on bit: %d", lastOccurrence);
  printf("\nFirst Occurrence of 1 on bit: %d", firstOccurrence);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf3e(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf20(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     1211 <main+0xc1>
cvtsi2sdl -0x14(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x14(%rbp),%eax
cltd
idivl  -0x18(%rbp)
mov    %eax,-0x1c(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x1c(%rbp),%esi
lea    0xe5b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x20,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1252 <main+0x102>
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     12b1 <main+0x161>
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     128d <main+0x13d>
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x3c(%rbp)
movslq %ecx,%rcx
movb   $0x31,(%rax,%rcx,1)
jmp    12a3 <main+0x153>
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x3c(%rbp)
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1259 <main+0x109>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x1,-0x48(%rbp)
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jl     13d1 <main+0x281>
mov    -0x48(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x48(%rbp)
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %edx,-0x4c(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x31,%eax
jne    131a <main+0x1ca>
cmpl   $0x0,-0x44(%rbp)
jne    1314 <main+0x1c4>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jne    1371 <main+0x221>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     135e <main+0x20e>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    136c <main+0x21c>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13be <main+0x26e>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     13ab <main+0x25b>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b9 <main+0x269>
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13be <main+0x26e>
jmp    13c3 <main+0x273>
mov    -0x3c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
jmp    12cf <main+0x17f>
mov    -0x44(%rbp),%esi
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%esi
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf00(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0xe57(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
mov    0x4(%rsp),%edx
mov    (%rsp),%ecx
lea    0xe41(%rip),%rdi
mov    %edx,%esi
mov    %ecx,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ecx
cmp    %ecx,%eax
jne    1206 <main+0x96>
mov    $0x20,%edi
mov    $0x1,%esi
call   1070 <calloc@plt>
mov    %rax,%r14
test   %rax,%rax
jne    1267 <main+0xf7>
jmp    132c <main+0x1bc>
cvtsi2sd %eax,%xmm0
cvtsi2sd %ecx,%xmm1
divsd  %xmm1,%xmm0
cltd
idiv   %ecx
mov    %eax,%ebx
lea    0xe47(%rip),%rdi
mov    %eax,%esi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x20,%edi
mov    $0x1,%esi
call   1070 <calloc@plt>
test   %rax,%rax
je     132c <main+0x1bc>
mov    %rax,%r14
test   %ebx,%ebx
je     1267 <main+0xf7>
mov    %r14,%rax
mov    %ebx,%ecx
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edx
and    $0x1,%dl
or     $0x30,%dl
mov    %dl,(%rax)
sar    %ecx
add    $0x1,%rax
cmp    $0x2,%ebx
mov    %ecx,%ebx
jae    1250 <main+0xe0>
mov    $0x1,%r15d
mov    $0x1f,%ebp
xor    %ebx,%ebx
xor    %r13d,%r13d
jmp    1294 <main+0x124>
nopl   0x0(%rax)
mov    $0x30,%edi
call   1030 <putchar@plt>
add    $0xffffffffffffffff,%rbp
cmp    $0x21,%r15d
je     12fa <main+0x18a>
mov    %ebx,%eax
mov    %r15d,%r12d
lea    0x1(%r12),%r15d
movsbl (%r14,%rbp,1),%edi
test   %ebx,%ebx
cmove  %ebp,%ebx
cmp    $0x31,%edi
cmove  %ebp,%r13d
cmovne %eax,%ebx
call   1040 <isdigit@plt>
test   $0x3,%r12b
je     12d0 <main+0x160>
test   %rax,%rax
je     1280 <main+0x110>
movsbl (%r14,%rbp,1),%edi
jmp    1285 <main+0x115>
nopl   0x0(%rax)
test   %rax,%rax
je     12ea <main+0x17a>
movsbl (%r14,%rbp,1),%esi
lea    0xd99(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    128a <main+0x11a>
lea    0xd8d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    128a <main+0x11a>
lea    0xd80(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd91(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd91(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Enter X: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"Enter Y: \00"
@.str.3 = [81 x i8] c"X as Decimal : %d\0AX as Hexadecimal %hhx\0AY as Decimal : %d\0AY as Hexadecimal %hhx\0A\00"
@.str.4 = [21 x i8] c"Kolicnik : %lf | %d\0A\00"
@.str.5 = [35 x i8] c"Memory Allocation error. Exiting.\0A\00"
@.str.6 = [4 x i8] c"%c \00"
@.str.7 = [3 x i8] c"0 \00"
@.str.8 = [3 x i8] c"%c\00"
@.str.9 = [2 x i8] c"0\00"
@.str.10 = [33 x i8] c"\0ALast Occurrence of 1 on bit: %d\00"
@.str.11 = [34 x i8] c"\0AFirst Occurrence of 1 on bit: %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%22 = load i32, i32* %6
%23 = load i32, i32* %6
%24 = load i32, i32* %7
%25 = load i32, i32* %7
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.3, i64 0, i64 0), i32 %22, i32 %23, i32 %24, i32 %25)
store i32 0, i32* %8
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %42
30: ; preds = %2
%31 = load i32, i32* %6
%32 = sitofp i32 %31 to double
%33 = load i32, i32* %7
%34 = sitofp i32 %33 to double
%35 = fdiv double %32, %34
store double %35, double* %9
%36 = load i32, i32* %6
%37 = load i32, i32* %7
%38 = sdiv i32 %36, %37
store i32 %38, i32* %8
%39 = load double, double* %9
%40 = load i32, i32* %8
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), double %39, i32 %40)
br label %42
42: ; preds = %30, %2
store i32 32, i32* %10
%43 = load i32, i32* %10
store i32 %43, i32* %11
%44 = load i32, i32* %11
%45 = call i64 @calloc(i32 %44, i32 1)
%46 = inttoptr i64 %45 to i8*
store i8* %46, i8** %12
%47 = load i8*, i8** %12
%48 = icmp ne i8* %47, null
br i1 %48, label %52, label %49
49: ; preds = %42
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %42
store i32 0, i32* %13
br label %53
53: ; preds = %72, %52
%54 = load i32, i32* %8
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %75
56: ; preds = %53
%57 = load i32, i32* %8
%58 = and i32 %57, 1
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = load i8*, i8** %12
%62 = load i32, i32* %13
%63 = add nsw i32 %62, 1
store i32 %63, i32* %13
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds i8, i8* %61, i64 %64
store i8 49, i8* %65
br label %72
66: ; preds = %56
%67 = load i8*, i8** %12
%68 = load i32, i32* %13
%69 = add nsw i32 %68, 1
store i32 %69, i32* %13
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds i8, i8* %67, i64 %70
store i8 48, i8* %71
br label %72
72: ; preds = %66, %60
%73 = load i32, i32* %8
%74 = ashr i32 %73, 1
store i32 %74, i32* %8
br label %53
75: ; preds = %53
store i32 0, i32* %14
store i32 0, i32* %15
store i32 1, i32* %16
%76 = load i32, i32* %11
%77 = sub nsw i32 %76, 1
store i32 %77, i32* %13
br label %78
78: ; preds = %141, %75
%79 = load i32, i32* %13
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %144
81: ; preds = %78
%82 = load i32, i32* %16
%83 = add nsw i32 %82, 1
store i32 %83, i32* %16
%84 = srem i32 %82, 4
store i32 %84, i32* %17
%85 = load i8*, i8** %12
%86 = load i32, i32* %13
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, i8* %85, i64 %87
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 49
br i1 %91, label %92, label %99
92: ; preds = %81
%93 = load i32, i32* %15
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = load i32, i32* %13
store i32 %96, i32* %15
br label %97
97: ; preds = %95, %92
%98 = load i32, i32* %13
store i32 %98, i32* %14
br label %99
99: ; preds = %97, %81
%100 = load i32, i32* %17
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %121
102: ; preds = %99
%103 = load i8*, i8** %12
%104 = load i32, i32* %13
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %103, i64 %105
%107 = load i8, i8* %106
%108 = call i64 @isdigit(i8 signext %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %118
110: ; preds = %102
%111 = load i8*, i8** %12
%112 = load i32, i32* %13
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, i8* %111, i64 %113
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %116)
br label %120
118: ; preds = %102
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %120
120: ; preds = %118, %110
br label %140
121: ; preds = %99
%122 = load i8*, i8** %12
%123 = load i32, i32* %13
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %122, i64 %124
%126 = load i8, i8* %125
%127 = call i64 @isdigit(i8 signext %126)
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %137
129: ; preds = %121
%130 = load i8*, i8** %12
%131 = load i32, i32* %13
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, i8* %130, i64 %132
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %135)
br label %139
137: ; preds = %121
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %139
139: ; preds = %137, %129
br label %140
140: ; preds = %139, %120
br label %141
141: ; preds = %140
%142 = load i32, i32* %13
%143 = add nsw i32 %142, -1
store i32 %143, i32* %13
br label %78
144: ; preds = %78
%145 = load i32, i32* %15
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %145)
%147 = load i32, i32* %14
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0), i32 %147)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"Enter X: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"Enter Y: \00"
@.str.3 = [81 x i8] c"X as Decimal : %d\0AX as Hexadecimal %hhx\0AY as Decimal : %d\0AY as Hexadecimal %hhx\0A\00"
@.str.4 = [21 x i8] c"Kolicnik : %lf | %d\0A\00"
@.str.6 = [4 x i8] c"%c \00"
@.str.7 = [3 x i8] c"0 \00"
@.str.10 = [33 x i8] c"\0ALast Occurrence of 1 on bit: %d\00"
@.str.11 = [34 x i8] c"\0AFirst Occurrence of 1 on bit: %d\00"
@str = [34 x i8] c"Memory Allocation error. Exiting.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%6 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.3, i64 0, i64 0), i32 %11, i32 %11, i32 %12, i32 %12)
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = icmp eq i32 %14, %15
br i1 %16, label %26, label %17
17: ; preds = %2
%18 = sitofp i32 %14 to double
%19 = sitofp i32 %15 to double
%20 = fdiv double %18, %19
%21 = sdiv i32 %14, %15
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), double %20, i32 %21)
%23 = call i64 @calloc(i32 32, i32 1)
%24 = inttoptr i64 %23 to i8*
%25 = icmp eq i64 %23, 0
br i1 %25, label %32, label %30
26: ; preds = %2
%27 = call i64 @calloc(i32 32, i32 1)
%28 = inttoptr i64 %27 to i8*
%29 = icmp eq i64 %27, 0
br i1 %29, label %32, label %35
30: ; preds = %17
%31 = icmp eq i32 %21, 0
br i1 %31, label %35, label %37
32: ; preds = %26, %17
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %37, %26, %30
%36 = phi i8* [ %24, %30 ], [ %28, %26 ], [ %24, %37 ]
br label %47
37: ; preds = %30, %37
%38 = phi i64 [ %44, %37 ], [ 0, %30 ]
%39 = phi i32 [ %45, %37 ], [ %21, %30 ]
%40 = and i32 %39, 1
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i8 48, i8 49
%43 = getelementptr inbounds i8, i8* %24, i64 %38
store i8 %42, i8* %43
%44 = add nuw i64 %38, 1
%45 = ashr i32 %39, 1
%46 = icmp ult i32 %39, 2
br i1 %46, label %35, label %37
47: ; preds = %35, %79
%48 = phi i64 [ 31, %35 ], [ %80, %79 ]
%49 = phi i32 [ 1, %35 ], [ %52, %79 ]
%50 = phi i32 [ 0, %35 ], [ %61, %79 ]
%51 = phi i32 [ 0, %35 ], [ %59, %79 ]
%52 = add nuw nsw i32 %49, 1
%53 = and i32 %49, 3
%54 = getelementptr inbounds i8, i8* %36, i64 %48
%55 = load i8, i8* %54
%56 = icmp eq i8 %55, 49
%57 = icmp eq i32 %50, 0
%58 = trunc i64 %48 to i32
%59 = select i1 %56, i32 %58, i32 %51
%60 = select i1 %56, i1 %57, i1 false
%61 = select i1 %60, i32 %58, i32 %50
%62 = icmp eq i32 %53, 0
%63 = call i64 @isdigit(i8 signext %55)
%64 = icmp eq i64 %63, 0
br i1 %62, label %65, label %72
65: ; preds = %47
br i1 %64, label %70, label %66
66: ; preds = %65
%67 = load i8, i8* %54
%68 = sext i8 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %68)
br label %79
70: ; preds = %65
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %79
72: ; preds = %47
br i1 %64, label %77, label %73
73: ; preds = %72
%74 = load i8, i8* %54
%75 = sext i8 %74 to i32
%76 = call i32 @putchar(i32 %75)
br label %79
77: ; preds = %72
%78 = call i32 @putchar(i32 48)
br label %79
79: ; preds = %73, %77, %66, %70
%80 = add nsw i64 %48, -1
%81 = icmp eq i32 %52, 33
br i1 %81, label %82, label %47
82: ; preds = %79
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %61)
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0), i32 %59)
ret i32 0
}