#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 */
scalar_t__ judge(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int l[10];
  int i;
  for (i = 0; i < 10; i++) {
    scanf("%d", &l[i]);
  }
  int counter = 0;
  for (i = 0; i < 10; i++) {
    if (judge(l[i]))
      counter++;
  }
  printf("%d", counter);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1179 <main+0x49>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe9a(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1146 <main+0x16>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11c4 <main+0x94>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
call   1040 <judge@plt>
cmp    $0x0,%rax
je     11b1 <main+0x81>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b6 <main+0x86>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1187 <main+0x57>
mov    -0x38(%rbp),%esi
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
lea    0xec3(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    (%rsp),%edi
call   1040 <judge@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    0x4(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x8(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0xc(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x10(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x14(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x18(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x1c(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x20(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    0x24(%rsp),%edi
call   1040 <judge@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.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 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%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]* %1, i64 0, i64 2
%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]* %1, i64 0, i64 3
%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]* %1, i64 0, i64 4
%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]* %1, i64 0, i64 5
%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]* %1, i64 0, i64 6
%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]* %1, i64 0, i64 7
%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]* %1, i64 0, i64 8
%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]* %1, i64 0, i64 9
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %21)
%23 = load i32, i32* %3
%24 = call i64 @judge(i32 %23)
%25 = icmp ne i64 %24, 0
%26 = zext i1 %25 to i32
%27 = load i32, i32* %5
%28 = call i64 @judge(i32 %27)
%29 = icmp ne i64 %28, 0
%30 = zext i1 %29 to i32
%31 = add nuw nsw i32 %26, %30
%32 = load i32, i32* %7
%33 = call i64 @judge(i32 %32)
%34 = icmp ne i64 %33, 0
%35 = zext i1 %34 to i32
%36 = add nuw nsw i32 %31, %35
%37 = load i32, i32* %9
%38 = call i64 @judge(i32 %37)
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i32
%41 = add nuw nsw i32 %36, %40
%42 = load i32, i32* %11
%43 = call i64 @judge(i32 %42)
%44 = icmp ne i64 %43, 0
%45 = zext i1 %44 to i32
%46 = add nuw nsw i32 %41, %45
%47 = load i32, i32* %13
%48 = call i64 @judge(i32 %47)
%49 = icmp ne i64 %48, 0
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %46, %50
%52 = load i32, i32* %15
%53 = call i64 @judge(i32 %52)
%54 = icmp ne i64 %53, 0
%55 = zext i1 %54 to i32
%56 = add nuw nsw i32 %51, %55
%57 = load i32, i32* %17
%58 = call i64 @judge(i32 %57)
%59 = icmp ne i64 %58, 0
%60 = zext i1 %59 to i32
%61 = add nuw nsw i32 %56, %60
%62 = load i32, i32* %19
%63 = call i64 @judge(i32 %62)
%64 = icmp ne i64 %63, 0
%65 = zext i1 %64 to i32
%66 = add nuw nsw i32 %61, %65
%67 = load i32, i32* %21
%68 = call i64 @judge(i32 %67)
%69 = icmp ne i64 %68, 0
%70 = zext i1 %69 to i32
%71 = add nuw nsw i32 %66, %70
%72 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %71)
ret i32 0
}