#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, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float a, b, c;
  int i = 0, j = 100;
  float ar[100];
  for (i = 0; i < 100; i++) {
    scanf("%f", &a);
    ar[i] = a;
  }
  for (i = 0; i < j; i++) {
    if (ar[i] < 11) {
      printf("A[%d] = %.1f\n", i, ar[i]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x64,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jge    1181 <main+0x61>
lea    0xeac(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movslq -0x14(%rbp),%rax
movss  %xmm0,-0x1b0(%rbp,%rax,4)
ff ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1147 <main+0x27>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11dd <main+0xbd>
movslq -0x14(%rbp),%rax
movss  0xe60(%rip),%xmm0
ucomiss -0x1b0(%rbp,%rax,4),%xmm0
ff
jbe    11ca <main+0xaa>
mov    -0x14(%rbp),%esi
movslq -0x14(%rbp),%rax
movss  -0x1b0(%rbp,%rax,4),%xmm0
ff ff
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
jmp    11cf <main+0xaf>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1188 <main+0x68>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x1a0,%rsp
xor    %ebx,%ebx
lea    0xecf(%rip),%r14
lea    0xc(%rsp),%r15
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
movss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    1140 <main+0x20>
xor    %ebx,%ebx
movss  0xe95(%rip),%xmm1
lea    0xe95(%rip),%r14
jmp    118a <main+0x6a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
cmp    $0x64,%rbx
je     11a9 <main+0x89>
movss  0x10(%rsp,%rbx,4),%xmm0
ucomiss %xmm0,%xmm1
jbe    1180 <main+0x60>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movss  0xe59(%rip),%xmm1
jmp    1180 <main+0x60>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [14 x i8] c"A[%d] = %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
%7 = alloca [100 x float]
store i32 0, i32* %1
store i32 0, i32* %5
store i32 100, i32* %6
store i32 0, i32* %5
br label %8
8: ; preds = %17, %0
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%13 = load float, float* %2
%14 = load i32, i32* %5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x float], [100 x float]* %7, i64 0, i64 %15
store float %13, float* %16
br label %17
17: ; preds = %11
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %8
20: ; preds = %8
store i32 0, i32* %5
br label %21
21: ; preds = %39, %20
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %42
25: ; preds = %21
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x float], [100 x float]* %7, i64 0, i64 %27
%29 = load float, float* %28
%30 = fcmp olt float %29, 1.100000e+01
br i1 %30, label %31, label %38
31: ; preds = %25
%32 = load i32, i32* %5
%33 = load i32, i32* %5
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x float], [100 x float]* %7, i64 0, i64 %34
%36 = load float, float* %35
%37 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %32, float %36)
br label %38
38: ; preds = %31, %25
br label %39
39: ; preds = %38
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %21
42: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [14 x i8] c"A[%d] = %.1f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca [100 x float]
%3 = bitcast float* %1 to i8*
%4 = bitcast [100 x float]* %2 to i8*
br label %5
5: ; preds = %0, %5
%6 = phi i64 [ 0, %0 ], [ %10, %5 ]
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%8 = load float, float* %1
%9 = getelementptr inbounds [100 x float], [100 x float]* %2, i64 0, i64 %6
store float %8, float* %9
%10 = add nuw nsw i64 %6, 1
%11 = icmp eq i64 %10, 100
br i1 %11, label %12, label %5
12: ; preds = %5, %20
%13 = phi i64 [ %21, %20 ], [ 0, %5 ]
%14 = getelementptr inbounds [100 x float], [100 x float]* %2, i64 0, i64 %13
%15 = load float, float* %14
%16 = fcmp olt float %15, 1.100000e+01
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = trunc i64 %13 to i32
%19 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %18, float %15)
br label %20
20: ; preds = %12, %17
%21 = add nuw nsw i64 %13, 1
%22 = icmp eq i64 %21, 100
br i1 %22, label %23, label %12
23: ; preds = %20
ret i32 0
}