#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*/ getchar();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a[10] = {45, 67, 93, 56, 25, 73, 48, 34, 55, 88}, *p, n = 0;
  float aver = 0;
  for (p = a; p < a + 10; aver += *p++)
    ;
  for (aver /= 10, p = a; p < a + 10; p++)
    if (*p > aver)
      n++;
  printf("%d", n);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x28,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
lea    -0x30(%rbp),%rcx
add    $0x28,%rcx
cmp    %rcx,%rax
jae    11a7 <main+0x77>
jmp    1185 <main+0x55>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x38(%rbp)
cvtsi2ssl (%rax),%xmm0
addss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    116b <main+0x3b>
movss  -0x40(%rbp),%xmm0
movss  0xe4c(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
lea    -0x30(%rbp),%rcx
add    $0x28,%rcx
cmp    %rcx,%rax
jae    120b <main+0xdb>
mov    -0x38(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
ucomiss -0x40(%rbp),%xmm0
jbe    11f5 <main+0xc5>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11fa <main+0xca>
mov    -0x38(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
jmp    11c5 <main+0x95>
mov    -0x3c(%rbp),%esi
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    0xf05(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x28(%rsp),%rax
movss  0xeac(%rip),%xmm0
lea    0x4(%rsp),%rcx
nopl   0x0(%rax)
xorps  %xmm1,%xmm1
cvtsi2ssl (%rcx),%xmm1
add    $0x4,%rcx
addss  %xmm1,%xmm0
cmp    %rax,%rcx
jb     1160 <main+0x40>
divss  0xe88(%rip),%xmm0
movss  0xe7c(%rip),%xmm1
xor    %esi,%esi
ucomiss %xmm0,%xmm1
seta   %sil
lea    0x4(%rsp),%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorps  %xmm1,%xmm1
cvtsi2ssl (%rcx),%xmm1
xor    %edx,%edx
ucomiss %xmm0,%xmm1
seta   %dl
add    %edx,%esi
add    $0x4,%rcx
cmp    %rax,%rcx
jb     11a0 <main+0x80>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.a = [10 x i32] [i32 45, i32 67, i32 93, i32 56, i32 25, i32 73, i32 48, i32 34, i32 55, i32 88]
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32*
%4 = alloca i32
%5 = alloca float
store i32 0, i32* %1
%6 = bitcast [10 x i32]* %2 to i8*
store i32 0, i32* %4
store float 0.000000e+00, float* %5
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %7, i32** %3
br label %8
8: ; preds = %14, %0
%9 = load i32*, i32** %3
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%11 = getelementptr inbounds i32, i32* %10, i64 10
%12 = icmp ult i32* %9, %11
br i1 %12, label %13, label %21
13: ; preds = %8
br label %14
14: ; preds = %13
%15 = load i32*, i32** %3
%16 = getelementptr inbounds i32, i32* %15, i32 1
store i32* %16, i32** %3
%17 = load i32, i32* %15
%18 = sitofp i32 %17 to float
%19 = load float, float* %5
%20 = fadd float %19, %18
store float %20, float* %5
br label %8
21: ; preds = %8
%22 = load float, float* %5
%23 = fdiv float %22, 1.000000e+01
store float %23, float* %5
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %24, i32** %3
br label %25
25: ; preds = %40, %21
%26 = load i32*, i32** %3
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%28 = getelementptr inbounds i32, i32* %27, i64 10
%29 = icmp ult i32* %26, %28
br i1 %29, label %30, label %43
30: ; preds = %25
%31 = load i32*, i32** %3
%32 = load i32, i32* %31
%33 = sitofp i32 %32 to float
%34 = load float, float* %5
%35 = fcmp ogt float %33, %34
br i1 %35, label %36, label %39
36: ; preds = %30
%37 = load i32, i32* %4
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %39
39: ; preds = %36, %30
br label %40
40: ; preds = %39
%41 = load i32*, i32** %3
%42 = getelementptr inbounds i32, i32* %41, i32 1
store i32* %42, i32** %3
br label %25
43: ; preds = %25
%44 = load i32, i32* %4
%45 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %44)
%46 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [10 x i32] [i32 45, i32 67, i32 93, i32 56, i32 25, i32 73, i32 48, i32 34, i32 55, i32 88]
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 10
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
br label %5
5: ; preds = %0, %5
%6 = phi float [ 4.500000e+01, %0 ], [ %11, %5 ]
%7 = phi i32* [ %4, %0 ], [ %9, %5 ]
%8 = load i32, i32* %7
%9 = getelementptr inbounds i32, i32* %7, i64 1
%10 = sitofp i32 %8 to float
%11 = fadd float %6, %10
%12 = icmp ult i32* %9, %3
br i1 %12, label %5, label %13
13: ; preds = %5
%14 = fdiv float %11, 1.000000e+01
%15 = fcmp olt float %14, 4.500000e+01
%16 = zext i1 %15 to i32
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
br label %18
18: ; preds = %13, %18
%19 = phi i32* [ %17, %13 ], [ %26, %18 ]
%20 = phi i32 [ %16, %13 ], [ %25, %18 ]
%21 = load i32, i32* %19
%22 = sitofp i32 %21 to float
%23 = fcmp olt float %14, %22
%24 = zext i1 %23 to i32
%25 = add nuw nsw i32 %20, %24
%26 = getelementptr inbounds i32, i32* %19, i64 1
%27 = icmp ult i32* %26, %3
br i1 %27, label %18, label %28
28: ; preds = %18
%29 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %25)
%30 = call i32 (...) @getchar()
ret i32 0
}