#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 */
int /*<<< orphan*/ printf(char *, unsigned long);
int main(int argc, const char *argv[]) {
  unsigned long int myNumber = 1;
  for (int i = 1; i < 64; i = i + 2) {
    myNumber = myNumber << 2;
    myNumber = myNumber + 1;
    printf("New Decimal: %ld. Number was shifted left two places.\n", myNumber);
  }
  printf("My final number is: %ld.", myNumber);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    1175 <main+0x65>
mov    -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    1135 <main+0x25>
mov    -0x18(%rbp),%rsi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x1,%ebx
mov    $0xffffffff,%ebp
lea    0xedb(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(,%rbx,4),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0x2,%ebp
cmp    $0x3e,%ebp
jb     1130 <main+0x20>
lea    0xee5(%rip),%rdi
movabs $0x5555555555555555,%rsi
55 55 55
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [55 x i8] c"New Decimal: %ld. Number was shifted left two places.\0A\00"
@.str.1 = [25 x i8] c"My final number is: %ld.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 1, i64* %6
store i32 1, i32* %7
br label %8
8: ; preds = %18, %2
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 64
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i64, i64* %6
%13 = shl i64 %12, 2
store i64 %13, i64* %6
%14 = load i64, i64* %6
%15 = add i64 %14, 1
store i64 %15, i64* %6
%16 = load i64, i64* %6
%17 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i64 %16)
br label %18
18: ; preds = %11
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 2
store i32 %20, i32* %7
br label %8
21: ; preds = %8
%22 = load i64, i64* %6
%23 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [55 x i8] c"New Decimal: %ld. Number was shifted left two places.\0A\00"
@.str.1 = [25 x i8] c"My final number is: %ld.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %5
3: ; preds = %5
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 6148914691236517205)
ret i32 0
5: ; preds = %2, %5
%6 = phi i32 [ 1, %2 ], [ %11, %5 ]
%7 = phi i64 [ 1, %2 ], [ %9, %5 ]
%8 = shl i64 %7, 2
%9 = or i64 %8, 1
%10 = tail call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i64 %9)
%11 = add nuw nsw i32 %6, 2
%12 = icmp ult i32 %6, 62
br i1 %12, label %5, label %3
}