#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);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, char *argv[]) {
  int a[10], i, cnt = 0;
  for (i = 0; i < 10; i++)
    scanf("%i", &a[i]);
  printf("%.1f", a[0] * 28.9 + a[1] * 32.7 + a[2] * 45.6 + a[3] * 78.0 +
                     a[4] * 35.0 + a[5] * 86.2 + a[6] * 27.8 + a[7] * 43.0 +
                     a[8] * 56.0 + a[9] * 65.0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1177 <main+0x57>
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeec(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1144 <main+0x24>
cvtsi2sdl -0x40(%rbp),%xmm0
cvtsi2sdl -0x3c(%rbp),%xmm1
movsd  0xebf(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xeab(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x38(%rbp),%xmm1
movsd  0xe8e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
movsd  0xe71(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x30(%rbp),%xmm1
movsd  0xe54(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x2c(%rbp),%xmm0
movsd  0xe37(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x28(%rbp),%xmm1
movsd  0xe1a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x24(%rbp),%xmm0
movsd  0xdfd(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
movsd  0xde0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x1c(%rbp),%xmm0
movsd  0xdc3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xe03(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xf24(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
cvtsi2sdl (%rsp),%xmm0
cvtsi2sdl 0x4(%rsp),%xmm1
mulsd  0xe41(%rip),%xmm1
mulsd  0xe41(%rip),%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x8(%rsp),%xmm1
mulsd  0xe34(%rip),%xmm1
cvtsi2sdl 0xc(%rsp),%xmm2
addsd  %xmm0,%xmm1
mulsd  0xe2a(%rip),%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
mulsd  0xe1d(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x14(%rsp),%xmm1
mulsd  0xe14(%rip),%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sdl 0x18(%rsp),%xmm0
mulsd  0xe03(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtsi2sdl 0x1c(%rsp),%xmm2
addsd  %xmm1,%xmm0
mulsd  0xdf6(%rip),%xmm2
addsd  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtsi2sdl 0x20(%rsp),%xmm0
mulsd  0xde9(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x24(%rsp),%xmm1
mulsd  0xde0(%rip),%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xdd8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\00"
@.str.1 = [5 x i8] c"%.1f\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i32]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %7
br label %9
9: ; preds = %17, %2
%10 = load i32, i32* %7
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %14
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
br label %17
17: ; preds = %12
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
store i32 %19, i32* %7
br label %9
20: ; preds = %9
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 0
%22 = load i32, i32* %21
%23 = sitofp i32 %22 to double
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 1
%25 = load i32, i32* %24
%26 = sitofp i32 %25 to double
%27 = fmul double %26, 3.270000e+01
%28 = call double @llvm.fmuladd.f64(double %23, double 2.890000e+01, double %27)
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 2
%30 = load i32, i32* %29
%31 = sitofp i32 %30 to double
%32 = call double @llvm.fmuladd.f64(double %31, double 4.560000e+01, double %28)
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 3
%34 = load i32, i32* %33
%35 = sitofp i32 %34 to double
%36 = call double @llvm.fmuladd.f64(double %35, double 7.800000e+01, double %32)
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 4
%38 = load i32, i32* %37
%39 = sitofp i32 %38 to double
%40 = call double @llvm.fmuladd.f64(double %39, double 3.500000e+01, double %36)
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 5
%42 = load i32, i32* %41
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %43, double 8.620000e+01, double %40)
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 6
%46 = load i32, i32* %45
%47 = sitofp i32 %46 to double
%48 = call double @llvm.fmuladd.f64(double %47, double 2.780000e+01, double %44)
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 7
%50 = load i32, i32* %49
%51 = sitofp i32 %50 to double
%52 = call double @llvm.fmuladd.f64(double %51, double 4.300000e+01, double %48)
%53 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 8
%54 = load i32, i32* %53
%55 = sitofp i32 %54 to double
%56 = call double @llvm.fmuladd.f64(double %55, double 5.600000e+01, double %52)
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 9
%58 = load i32, i32* %57
%59 = sitofp i32 %58 to double
%60 = call double @llvm.fmuladd.f64(double %59, double 6.500000e+01, double %56)
%61 = fptosi double %60 to i32
%62 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %61)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
@.str.1 = [5 x i8] c"%.1f\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i32]
%4 = bitcast [10 x i32]* %3 to i8*
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 2
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 3
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 4
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 5
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 6
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 7
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 8
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %21)
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 9
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %23)
%25 = load i32, i32* %5
%26 = sitofp i32 %25 to double
%27 = load i32, i32* %7
%28 = sitofp i32 %27 to double
%29 = fmul double %28, 3.270000e+01
%30 = call double @llvm.fmuladd.f64(double %26, double 2.890000e+01, double %29)
%31 = load i32, i32* %9
%32 = sitofp i32 %31 to double
%33 = call double @llvm.fmuladd.f64(double %32, double 4.560000e+01, double %30)
%34 = load i32, i32* %11
%35 = sitofp i32 %34 to double
%36 = call double @llvm.fmuladd.f64(double %35, double 7.800000e+01, double %33)
%37 = load i32, i32* %13
%38 = sitofp i32 %37 to double
%39 = call double @llvm.fmuladd.f64(double %38, double 3.500000e+01, double %36)
%40 = load i32, i32* %15
%41 = sitofp i32 %40 to double
%42 = call double @llvm.fmuladd.f64(double %41, double 8.620000e+01, double %39)
%43 = load i32, i32* %17
%44 = sitofp i32 %43 to double
%45 = call double @llvm.fmuladd.f64(double %44, double 2.780000e+01, double %42)
%46 = load i32, i32* %19
%47 = sitofp i32 %46 to double
%48 = call double @llvm.fmuladd.f64(double %47, double 4.300000e+01, double %45)
%49 = load i32, i32* %21
%50 = sitofp i32 %49 to double
%51 = call double @llvm.fmuladd.f64(double %50, double 5.600000e+01, double %48)
%52 = load i32, i32* %23
%53 = sitofp i32 %52 to double
%54 = call double @llvm.fmuladd.f64(double %53, double 6.500000e+01, double %51)
%55 = fptosi double %54 to i32
%56 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %55)
ret i32 0
}