#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 *, double);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double x1, x2, soma = 0;
  scanf("%lf%lf", &x1, &x2);
  while (x1 <= x2) {
    soma += x1;
    printf("%.1lf+", x1);
    x1 += 0.2;
  }
  printf("\b=%.1lf\n", soma);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1196 <main+0x76>
movsd  -0x10(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe79(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    114b <main+0x2b>
movsd  -0x20(%rbp),%xmm0
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xedc(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
xorpd  %xmm2,%xmm2
ucomisd %xmm0,%xmm1
jb     1198 <main+0x78>
xorpd  %xmm2,%xmm2
lea    0xeb3(%rip),%rbx
nopl   0x0(%rax)
addsd  %xmm0,%xmm2
movsd  %xmm2,0x18(%rsp)
mov    %rbx,%rdi
call   1030 <printf@plt>
movsd  0x18(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
addsd  0xe7a(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jae    1160 <main+0x40>
lea    0xe77(%rip),%rdi
movapd %xmm2,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [7 x i8] c"%.1lf+\00"
@.str.2 = [9 x i8] c"\08=%.1lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %4
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
br label %6
6: ; preds = %10, %0
%7 = load double, double* %2
%8 = load double, double* %3
%9 = fcmp ole double %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load double, double* %2
%12 = load double, double* %4
%13 = fadd double %12, %11
store double %13, double* %4
%14 = load double, double* %2
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %14)
%16 = load double, double* %2
%17 = fadd double %16, 2.000000e-01
store double %17, double* %2
br label %6
18: ; preds = %6
%19 = load double, double* %4
%20 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [7 x i8] c"%.1lf+\00"
@.str.2 = [9 x i8] c"\08=%.1lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = load double, double* %2
%8 = fcmp ugt double %6, %7
br i1 %8, label %18, label %9
9: ; preds = %0, %9
%10 = phi double [ %15, %9 ], [ %6, %0 ]
%11 = phi double [ %12, %9 ], [ 0.000000e+00, %0 ]
%12 = fadd double %11, %10
%13 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %10)
%14 = load double, double* %1
%15 = fadd double %14, 2.000000e-01
store double %15, double* %1
%16 = load double, double* %2
%17 = fcmp ugt double %15, %16
br i1 %17, label %18, label %9
18: ; preds = %9, %0
%19 = phi double [ 0.000000e+00, %0 ], [ %12, %9 ]
%20 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %19)
ret i32 0
}