#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 *, short, int, unsigned int, unsigned int,
                          double);
void main() {
  short int i = 0;
  char word = 0;
  float float_word = 0;
  double dword = 0;
  int two = 0;
  unsigned int utwo = 0;
  two = 1;
  utwo = 1;
  dword = 1;
  for (i = 1; i <= 64; ++i) {
    two *= 2;
    utwo *= 2;
    dword *= 2;
    printf("at step i = %12d ( two - 1 )= %12d; ( utwo - 1 ) = %.15u;     - ( "
           "utwo - 1 ) = %15d; dword = %22.22G;\n",
           i, two - 1, utwo - 1, -(utwo - 1), dword);
  };
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movw   $0x0,-0x2(%rbp)
movb   $0x0,-0x3(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movsd  0xeaa(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movw   $0x1,-0x2(%rbp)
movswl -0x2(%rbp),%eax
cmp    $0x40,%eax
jg     11d3 <main+0xc3>
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x18(%rbp)
movsd  0xe80(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x2(%rbp),%ax
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
mov    -0x18(%rbp),%esi
sub    $0x1,%esi
xor    %r8d,%r8d
sub    %esi,%r8d
movsd  -0x10(%rbp),%xmm0
lea    0xe56(%rip),%rdi
movswl %ax,%esi
call   1030 <printf@plt>
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    1161 <main+0x51>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x1,%bx
movsd  0xedd(%rip),%xmm0
mov    $0x1,%eax
lea    0xed9(%rip),%r14
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
addsd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
mov    %ecx,%r15d
add    %ecx,%r15d
lea    (%rcx,%rcx,1),%edx
add    $0xffffffff,%edx
mov    %eax,%ebp
add    %eax,%ebp
lea    (%rax,%rax,1),%ecx
add    $0xffffffff,%ecx
mov    $0x1,%r8d
sub    %ebp,%r8d
movswl %bx,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
movsd  (%rsp),%xmm0
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
add    $0x1,%ebx
mov    %ebp,%eax
mov    %r15d,%ecx
cmp    $0x41,%bx
jne    1140 <main+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [103 x i8] c"at step i = %12d ( two - 1 )= %12d; ( utwo - 1 ) = %.15u; - ( utwo - 1 ) = %15d; dword = %22.22G;\0A\00"
define void @main() {
%1 = alloca i16
%2 = alloca i8
%3 = alloca float
%4 = alloca double
%5 = alloca i32
%6 = alloca i32
store i16 0, i16* %1
store i8 0, i8* %2
store float 0.000000e+00, float* %3
store double 0.000000e+00, double* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 1, i32* %5
store i32 1, i32* %6
store double 1.000000e+00, double* %4
store i16 1, i16* %1
br label %7
7: ; preds = %28, %0
%8 = load i16, i16* %1
%9 = sext i16 %8 to i32
%10 = icmp sle i32 %9, 64
br i1 %10, label %11, label %31
11: ; preds = %7
%12 = load i32, i32* %5
%13 = mul nsw i32 %12, 2
store i32 %13, i32* %5
%14 = load i32, i32* %6
%15 = mul i32 %14, 2
store i32 %15, i32* %6
%16 = load double, double* %4
%17 = fmul double %16, 2.000000e+00
store double %17, double* %4
%18 = load i16, i16* %1
%19 = load i32, i32* %5
%20 = sub nsw i32 %19, 1
%21 = load i32, i32* %6
%22 = sub i32 %21, 1
%23 = load i32, i32* %6
%24 = sub i32 %23, 1
%25 = sub i32 0, %24
%26 = load double, double* %4
%27 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i16 signext %18, i32 %20, i32 %22, i32 %25, double %26)
br label %28
28: ; preds = %11
%29 = load i16, i16* %1
%30 = add i16 %29, 1
store i16 %30, i16* %1
br label %7
31: ; preds = %7
ret void
}

LLVM IR (-O2):
@.str = [103 x i8] c"at step i = %12d ( two - 1 )= %12d; ( utwo - 1 ) = %.15u; - ( utwo - 1 ) = %15d; dword = %22.22G;\0A\00"
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %7, %1 ]
%3 = phi i32 [ 1, %0 ], [ %6, %1 ]
%4 = phi double [ 1.000000e+00, %0 ], [ %8, %1 ]
%5 = phi i16 [ 1, %0 ], [ %13, %1 ]
%6 = shl nsw i32 %3, 1
%7 = shl i32 %2, 1
%8 = fmul double %4, 2.000000e+00
%9 = add nsw i32 %6, -1
%10 = add i32 %7, -1
%11 = sub i32 1, %7
%12 = tail call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i16 signext %5, i32 %9, i32 %10, i32 %11, double %8)
%13 = add nuw nsw i16 %5, 1
%14 = icmp eq i16 %13, 65
br i1 %14, label %15, label %1
15: ; preds = %1
ret void
}