#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__ poteguj(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, long *);
int main() {
  int liczba[32];
  int i, j, reszta;
  long int podana;
  scanf("%li", &podana);
  for (i = 0; i < 32; i++)
    liczba[i] = 0;
  j = 31;
  while (podana != 0) {
    reszta = podana % 2;
    podana = podana / 2;
    if (reszta == 1)
      liczba[j] = 1;
    j--;
  }
  for (i = 0; i < 32; i++)
    printf("%d", liczba[i]);
  printf("\n");
  int dni = 0, miesiace = 0, lata = 0;
  j = 0;
  for (i = 31; i > 26; i--) {
    if (liczba[i] == 1)
      dni += poteguj(2, j);
    j++;
  }
  printf("liczba dni wynosi %d \n", dni);
  j = 0;
  for (i = 26; i > 22; i--) {
    if (liczba[i] == 1)
      miesiace += poteguj(2, j);
    j++;
  }
  printf("liczba miesiecy wynosi %d\n", miesiace);
  j = 0;
  for (i = 22; i >= 0; i--) {
    if (liczba[i] == 1)
      lata += poteguj(2, j);
    j++;
  }
  printf("liczba lat wynosi %d\n", lata);
  printf("Zakodowana liczba 1032225 to 1.1.2016\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
lea    -0xa8(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0x20,-0x94(%rbp)
jge    1192 <main+0x62>
movslq -0x94(%rbp),%rax
movl   $0x0,-0x90(%rbp,%rax,4)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    115f <main+0x2f>
movl   $0x1f,-0x98(%rbp)
cmpq   $0x0,-0xa8(%rbp)
je     120e <main+0xde>
mov    -0xa8(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %edx,%eax
mov    %eax,-0x9c(%rbp)
mov    -0xa8(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0xa8(%rbp)
cmpl   $0x1,-0x9c(%rbp)
jne    11fa <main+0xca>
movslq -0x98(%rbp),%rax
movl   $0x1,-0x90(%rbp,%rax,4)
mov    -0x98(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x98(%rbp)
jmp    119c <main+0x6c>
movl   $0x0,-0x94(%rbp)
cmpl   $0x20,-0x94(%rbp)
jge    1255 <main+0x125>
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%esi
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1218 <main+0xe8>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xac(%rbp)
movl   $0x0,-0xb0(%rbp)
movl   $0x0,-0xb4(%rbp)
movl   $0x0,-0x98(%rbp)
movl   $0x1f,-0x94(%rbp)
cmpl   $0x1a,-0x94(%rbp)
jle    12fd <main+0x1cd>
movslq -0x94(%rbp),%rax
cmpl   $0x1,-0x90(%rbp,%rax,4)
01
jne    12da <main+0x1aa>
mov    -0x98(%rbp),%esi
mov    $0x2,%edi
call   1040 <poteguj@plt>
mov    %rax,%rcx
movslq -0xac(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xac(%rbp)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
jmp    1295 <main+0x165>
mov    -0xac(%rbp),%esi
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x98(%rbp)
movl   $0x1a,-0x94(%rbp)
cmpl   $0x16,-0x94(%rbp)
jle    138d <main+0x25d>
movslq -0x94(%rbp),%rax
cmpl   $0x1,-0x90(%rbp,%rax,4)
01
jne    136a <main+0x23a>
mov    -0x98(%rbp),%esi
mov    $0x2,%edi
call   1040 <poteguj@plt>
mov    %rax,%rcx
movslq -0xb0(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xb0(%rbp)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
jmp    1325 <main+0x1f5>
mov    -0xb0(%rbp),%esi
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x98(%rbp)
movl   $0x16,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jl     141d <main+0x2ed>
movslq -0x94(%rbp),%rax
cmpl   $0x1,-0x90(%rbp,%rax,4)
01
jne    13fa <main+0x2ca>
mov    -0x98(%rbp),%esi
mov    $0x2,%edi
call   1040 <poteguj@plt>
mov    %rax,%rcx
movslq -0xb4(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xb4(%rbp)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
jmp    13b5 <main+0x285>
mov    -0xb4(%rbp),%esi
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x90,%rsp
lea    0xe9e(%rip),%rdi
lea    0x88(%rsp),%rsi
call   1070 <scanf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
mov    0x88(%rsp),%rax
xor    %r14d,%r14d
mov    $0x0,%esi
test   %rax,%rax
je     11fc <main+0xac>
lea    0x7c(%rsp),%rdx
mov    %rax,%rcx
jmp    11d4 <main+0x84>
nopl   0x0(%rax,%rax,1)
sar    %rcx
add    $0x1,%rax
add    $0xfffffffffffffffc,%rdx
cmp    $0x3,%rax
mov    %rcx,%rax
jb     11f1 <main+0xa1>
shr    $0x3f,%rcx
add    %rax,%rcx
mov    %ecx,%esi
and    $0xfffffffe,%esi
mov    %eax,%edi
sub    %esi,%edi
cmp    $0x1,%edi
jne    11c0 <main+0x70>
movl   $0x1,(%rdx)
jmp    11c0 <main+0x70>
mov    %rcx,0x88(%rsp)
mov    (%rsp),%esi
lea    0xe01(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x60(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x64(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x6c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x70(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x74(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x78(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x7c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x1,0x7c(%rsp)
je     14ce <main+0x37e>
cmpl   $0x1,0x78(%rsp)
je     14e8 <main+0x398>
cmpl   $0x1,0x74(%rsp)
je     1505 <main+0x3b5>
cmpl   $0x1,0x70(%rsp)
je     1522 <main+0x3d2>
cmpl   $0x1,0x6c(%rsp)
jne    140e <main+0x2be>
mov    $0x2,%edi
mov    $0x4,%esi
call   1060 <poteguj@plt>
add    %eax,%r14d
lea    0xbf2(%rip),%rdi
xor    %ebx,%ebx
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x1,0x68(%rsp)
je     1544 <main+0x3f4>
cmpl   $0x1,0x64(%rsp)
je     155e <main+0x40e>
cmpl   $0x1,0x60(%rsp)
je     157a <main+0x42a>
cmpl   $0x1,0x5c(%rsp)
jne    145a <main+0x30a>
mov    $0x2,%edi
mov    $0x3,%esi
call   1060 <poteguj@plt>
add    %eax,%ebx
lea    0xbbd(%rip),%rdi
xor    %r14d,%r14d
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x58(%rsp),%rbp
xor    %ebx,%ebx
jmp    148c <main+0x33c>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebx
add    $0xfffffffffffffffc,%rbp
cmp    $0x17,%ebx
je     14a3 <main+0x353>
cmpl   $0x1,0x0(%rbp)
jne    1480 <main+0x330>
mov    $0x2,%edi
mov    %ebx,%esi
call   1060 <poteguj@plt>
add    %eax,%r14d
jmp    1480 <main+0x330>
lea    0xb8f(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb94(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    $0x2,%edi
xor    %esi,%esi
call   1060 <poteguj@plt>
mov    %rax,%r14
cmpl   $0x1,0x78(%rsp)
jne    13df <main+0x28f>
mov    $0x2,%edi
mov    $0x1,%esi
call   1060 <poteguj@plt>
add    %eax,%r14d
cmpl   $0x1,0x74(%rsp)
jne    13ea <main+0x29a>
mov    $0x2,%edi
mov    $0x2,%esi
call   1060 <poteguj@plt>
add    %eax,%r14d
cmpl   $0x1,0x70(%rsp)
jne    13f5 <main+0x2a5>
mov    $0x2,%edi
mov    $0x3,%esi
call   1060 <poteguj@plt>
add    %eax,%r14d
cmpl   $0x1,0x6c(%rsp)
je     13fc <main+0x2ac>
jmp    140e <main+0x2be>
mov    $0x2,%edi
xor    %esi,%esi
call   1060 <poteguj@plt>
mov    %rax,%rbx
cmpl   $0x1,0x64(%rsp)
jne    1437 <main+0x2e7>
mov    $0x2,%edi
mov    $0x1,%esi
call   1060 <poteguj@plt>
add    %eax,%ebx
cmpl   $0x1,0x60(%rsp)
jne    1442 <main+0x2f2>
mov    $0x2,%edi
mov    $0x2,%esi
call   1060 <poteguj@plt>
add    %eax,%ebx
cmpl   $0x1,0x5c(%rsp)
je     1449 <main+0x2f9>
jmp    145a <main+0x30a>

LLVM IR (-O0):
@.str = [4 x i8] c"%li\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [23 x i8] c"liczba dni wynosi %d \0A\00"
@.str.4 = [27 x i8] c"liczba miesiecy wynosi %d\0A\00"
@.str.5 = [22 x i8] c"liczba lat wynosi %d\0A\00"
@.str.6 = [39 x i8] c"Zakodowana liczba 1032225 to 1.1.2016\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [32 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %6)
store i32 0, i32* %3
br label %11
11: ; preds = %18, %0
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 32
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %16
store i32 0, i32* %17
br label %18
18: ; preds = %14
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %11
21: ; preds = %11
store i32 31, i32* %4
br label %22
22: ; preds = %37, %21
%23 = load i64, i64* %6
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %40
25: ; preds = %22
%26 = load i64, i64* %6
%27 = srem i64 %26, 2
%28 = trunc i64 %27 to i32
store i32 %28, i32* %5
%29 = load i64, i64* %6
%30 = sdiv i64 %29, 2
store i64 %30, i64* %6
%31 = load i32, i32* %5
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %37
33: ; preds = %25
%34 = load i32, i32* %4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %35
store i32 1, i32* %36
br label %37
37: ; preds = %33, %25
%38 = load i32, i32* %4
%39 = add nsw i32 %38, -1
store i32 %39, i32* %4
br label %22
40: ; preds = %22
store i32 0, i32* %3
br label %41
41: ; preds = %50, %40
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 32
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %48)
br label %50
50: ; preds = %44
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %41
53: ; preds = %41
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %4
store i32 31, i32* %3
br label %55
55: ; preds = %74, %53
%56 = load i32, i32* %3
%57 = icmp sgt i32 %56, 26
br i1 %57, label %58, label %77
58: ; preds = %55
%59 = load i32, i32* %3
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %71
64: ; preds = %58
%65 = load i32, i32* %4
%66 = call i64 @poteguj(i32 2, i32 %65)
%67 = load i32, i32* %7
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, i32* %7
br label %71
71: ; preds = %64, %58
%72 = load i32, i32* %4
%73 = add nsw i32 %72, 1
store i32 %73, i32* %4
br label %74
74: ; preds = %71
%75 = load i32, i32* %3
%76 = add nsw i32 %75, -1
store i32 %76, i32* %3
br label %55
77: ; preds = %55
%78 = load i32, i32* %7
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %78)
store i32 0, i32* %4
store i32 26, i32* %3
br label %80
80: ; preds = %99, %77
%81 = load i32, i32* %3
%82 = icmp sgt i32 %81, 22
br i1 %82, label %83, label %102
83: ; preds = %80
%84 = load i32, i32* %3
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %96
89: ; preds = %83
%90 = load i32, i32* %4
%91 = call i64 @poteguj(i32 2, i32 %90)
%92 = load i32, i32* %8
%93 = sext i32 %92 to i64
%94 = add nsw i64 %93, %91
%95 = trunc i64 %94 to i32
store i32 %95, i32* %8
br label %96
96: ; preds = %89, %83
%97 = load i32, i32* %4
%98 = add nsw i32 %97, 1
store i32 %98, i32* %4
br label %99
99: ; preds = %96
%100 = load i32, i32* %3
%101 = add nsw i32 %100, -1
store i32 %101, i32* %3
br label %80
102: ; preds = %80
%103 = load i32, i32* %8
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %103)
store i32 0, i32* %4
store i32 22, i32* %3
br label %105
105: ; preds = %124, %102
%106 = load i32, i32* %3
%107 = icmp sge i32 %106, 0
br i1 %107, label %108, label %127
108: ; preds = %105
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [32 x i32], [32 x i32]* %2, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = icmp eq i32 %112, 1
br i1 %113, label %114, label %121
114: ; preds = %108
%115 = load i32, i32* %4
%116 = call i64 @poteguj(i32 2, i32 %115)
%117 = load i32, i32* %9
%118 = sext i32 %117 to i64
%119 = add nsw i64 %118, %116
%120 = trunc i64 %119 to i32
store i32 %120, i32* %9
br label %121
121: ; preds = %114, %108
%122 = load i32, i32* %4
%123 = add nsw i32 %122, 1
store i32 %123, i32* %4
br label %124
124: ; preds = %121
%125 = load i32, i32* %3
%126 = add nsw i32 %125, -1
store i32 %126, i32* %3
br label %105
127: ; preds = %105
%128 = load i32, i32* %9
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %128)
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

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