#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 *, ...);
int main(void) {
  unsigned int anniPrevisione = 0;
  double stimaPopolazioneMondiale = 0;
  unsigned int aumento = 0;
  unsigned int salvaStato;
  printf("%4s\t%17s\t%18s\n", "Anno", "Stima Popolazione",
         "Stima Aumento Anno");
  stimaPopolazioneMondiale = (double)7283292602;
  do {
    salvaStato = stimaPopolazioneMondiale;
    stimaPopolazioneMondiale +=
        ((stimaPopolazioneMondiale * (double)1.79) / 100);
    aumento = stimaPopolazioneMondiale - salvaStato;
    anniPrevisione++;
    printf("%4u\t%17.0lf\t%18u\n", anniPrevisione, stimaPopolazioneMondiale,
           aumento);
  } while (anniPrevisione < 75);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xedc(%rip),%rdi
lea    0xf04(%rip),%rsi
lea    0xedd(%rip),%rdx
lea    0xee8(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xea0(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
cvttsd2si -0x10(%rbp),%rax
mov    %eax,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe8d(%rip),%xmm2
movaps %xmm0,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xe86(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%eax
cvtsi2sd %rax,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
movsd  -0x10(%rbp),%xmm0
mov    -0x14(%rbp),%edx
lea    0xe81(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
cmpl   $0x4b,-0x8(%rbp)
jb     1165 <main+0x55>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xefd(%rip),%rdi
lea    0xf25(%rip),%rsi
lea    0xefe(%rip),%rdx
lea    0xf09(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0xec1(%rip),%xmm0
mov    $0x1,%ebx
lea    0xf01(%rip),%r14
nopl   0x0(%rax,%rax,1)
cvttsd2si %xmm0,%rax
movapd %xmm0,%xmm2
mulsd  0xea7(%rip),%xmm2
divsd  0xea7(%rip),%xmm2
mov    %eax,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
addsd  %xmm2,%xmm0
movsd  %xmm0,(%rsp)
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
cvttsd2si %xmm2,%rdx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
add    $0x1,%ebx
cmp    $0x4c,%ebx
jne    1150 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%4s\09%17s\09%18s\0A\00"
@.str.1 = [5 x i8] c"Anno\00"
@.str.2 = [18 x i8] c"Stima Popolazione\00"
@.str.3 = [19 x i8] c"Stima Aumento Anno\00"
@.str.4 = [18 x i8] c"%4u\09%17.0lf\09%18u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store double 0.000000e+00, double* %3
store i32 0, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
store double 0x41FB21E39BA00000, double* %3
br label %7
7: ; preds = %26, %0
%8 = load double, double* %3
%9 = fptoui double %8 to i32
store i32 %9, i32* %5
%10 = load double, double* %3
%11 = fmul double %10, 1.790000e+00
%12 = fdiv double %11, 1.000000e+02
%13 = load double, double* %3
%14 = fadd double %13, %12
store double %14, double* %3
%15 = load double, double* %3
%16 = load i32, i32* %5
%17 = uitofp i32 %16 to double
%18 = fsub double %15, %17
%19 = fptoui double %18 to i32
store i32 %19, i32* %4
%20 = load i32, i32* %2
%21 = add i32 %20, 1
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = load double, double* %3
%24 = load i32, i32* %4
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %22, double %23, i32 %24)
br label %26
26: ; preds = %7
%27 = load i32, i32* %2
%28 = icmp ult i32 %27, 75
br i1 %28, label %7, label %29
29: ; preds = %26
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"%4s\09%17s\09%18s\0A\00"
@.str.1 = [5 x i8] c"Anno\00"
@.str.2 = [18 x i8] c"Stima Popolazione\00"
@.str.3 = [19 x i8] c"Stima Aumento Anno\00"
@.str.4 = [18 x i8] c"%4u\09%17.0lf\09%18u\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %2
2: ; preds = %2, %0
%3 = phi double [ 0x41FB21E39BA00000, %0 ], [ %8, %2 ]
%4 = phi i32 [ 0, %0 ], [ %12, %2 ]
%5 = fptoui double %3 to i32
%6 = fmul double %3, 1.790000e+00
%7 = fdiv double %6, 1.000000e+02
%8 = fadd double %3, %7
%9 = uitofp i32 %5 to double
%10 = fsub double %8, %9
%11 = fptoui double %10 to i32
%12 = add nuw nsw i32 %4, 1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %12, double %8, i32 %11)
%14 = icmp eq i32 %12, 75
br i1 %14, label %15, label %2
15: ; preds = %2
ret i32 0
}