#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 */
float const distance_s(float const, float const, float const, float const);
int __attribute__((__always___, __gnu___, __pure__, __nonnull__,
                   __artificial__))
circle_point_in_circles(const int count, const float *restrict mx,
                        const float *restrict my, const float *restrict r,
                        const float px, const float py) {
  for (int i = 0; i < count; i++) {
    if (distance_s(mx[i], my[i], px, py) > (r[i] + 0.01f))
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<circle_point_in_circles>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movss  %xmm0,-0x24(%rbp)
movss  %xmm1,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11aa <circle_point_in_circles+0x9a>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
movss  -0x24(%rbp),%xmm2
movss  -0x28(%rbp),%xmm3
call   1030 <distance_s@plt>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  0xe83(%rip),%xmm1
addss  (%rax,%rcx,4),%xmm1
ucomiss %xmm1,%xmm0
jbe    1197 <circle_point_in_circles+0x87>
movl   $0x0,-0x4(%rbp)
jmp    11b1 <circle_point_in_circles+0xa1>
jmp    119c <circle_point_in_circles+0x8c>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1138 <circle_point_in_circles+0x28>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<circle_point_in_circles>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
test   %edi,%edi
jle    11b6 <circle_point_in_circles+0xa6>
movaps %xmm1,%xmm3
movaps %xmm0,%xmm2
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %edi,%ebp
movss  (%rsi),%xmm0
movss  (%rdx),%xmm1
movss  %xmm2,0x8(%rsp)
movss  %xmm3,0xc(%rsp)
call   1030 <distance_s@plt>
movss  (%r14),%xmm1
addss  0xea5(%rip),%xmm1
xor    %eax,%eax
ucomiss %xmm1,%xmm0
ja     11bb <circle_point_in_circles+0xab>
mov    %ebp,%ebp
mov    $0x1,%eax
nopl   0x0(%rax)
mov    %rax,%rbx
cmp    %rax,%rbp
je     11ac <circle_point_in_circles+0x9c>
movss  (%r12,%rbx,4),%xmm0
movss  (%r15,%rbx,4),%xmm1
movss  0x8(%rsp),%xmm2
movss  0xc(%rsp),%xmm3
call   1030 <distance_s@plt>
movss  (%r14,%rbx,4),%xmm1
addss  0xe5d(%rip),%xmm1
lea    0x1(%rbx),%rax
ucomiss %xmm1,%xmm0
jbe    1170 <circle_point_in_circles+0x60>
xor    %eax,%eax
cmp    %rbp,%rbx
setae  %al
jmp    11bb <circle_point_in_circles+0xab>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @circle_point_in_circles(i32 %0, float* noalias %1, float* noalias %2, float* noalias %3, float %4, float %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca float*
%10 = alloca float*
%11 = alloca float*
%12 = alloca float
%13 = alloca float
%14 = alloca i32
store i32 %0, i32* %8
store float* %1, float** %9
store float* %2, float** %10
store float* %3, float** %11
store float %4, float* %12
store float %5, float* %13
store i32 0, i32* %14
br label %15
15: ; preds = %42, %6
%16 = load i32, i32* %14
%17 = load i32, i32* %8
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %45
19: ; preds = %15
%20 = load float*, float** %9
%21 = load i32, i32* %14
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, float* %20, i64 %22
%24 = load float, float* %23
%25 = load float*, float** %10
%26 = load i32, i32* %14
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, float* %25, i64 %27
%29 = load float, float* %28
%30 = load float, float* %12
%31 = load float, float* %13
%32 = call float @distance_s(float %24, float %29, float %30, float %31)
%33 = load float*, float** %11
%34 = load i32, i32* %14
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, float* %33, i64 %35
%37 = load float, float* %36
%38 = fadd float %37, 0x3F847AE140000000
%39 = fcmp ogt float %32, %38
br i1 %39, label %40, label %41
40: ; preds = %19
store i32 0, i32* %7
br label %46
41: ; preds = %19
br label %42
42: ; preds = %41
%43 = load i32, i32* %14
%44 = add nsw i32 %43, 1
store i32 %44, i32* %14
br label %15
45: ; preds = %15
store i32 1, i32* %7
br label %46
46: ; preds = %45, %40
%47 = load i32, i32* %7
ret i32 %47
}

LLVM IR (-O2):
define i32 @circle_point_in_circles(i32 %0, float* noalias nocapture %1, float* noalias nocapture %2, float* noalias nocapture %3, float %4, float %5) {
%7 = icmp sgt i32 %0, 0
br i1 %7, label %8, label %34
8: ; preds = %6
%9 = zext i32 %0 to i64
%10 = zext i32 %0 to i64
%11 = load float, float* %1
%12 = load float, float* %2
%13 = tail call float @distance_s(float %11, float %12, float %4, float %5)
%14 = load float, float* %3
%15 = fadd float %14, 0x3F847AE140000000
%16 = fcmp ogt float %13, %15
br i1 %16, label %34, label %17
17: ; preds = %8, %20
%18 = phi i64 [ %30, %20 ], [ 1, %8 ]
%19 = icmp eq i64 %18, %10
br i1 %19, label %31, label %20
20: ; preds = %17
%21 = getelementptr inbounds float, float* %1, i64 %18
%22 = load float, float* %21
%23 = getelementptr inbounds float, float* %2, i64 %18
%24 = load float, float* %23
%25 = tail call float @distance_s(float %22, float %24, float %4, float %5)
%26 = getelementptr inbounds float, float* %3, i64 %18
%27 = load float, float* %26
%28 = fadd float %27, 0x3F847AE140000000
%29 = fcmp ogt float %25, %28
%30 = add nuw nsw i64 %18, 1
br i1 %29, label %31, label %17
31: ; preds = %17, %20
%32 = icmp uge i64 %18, %9
%33 = zext i1 %32 to i32
br label %34
34: ; preds = %31, %8, %6
%35 = phi i32 [ 1, %6 ], [ 0, %8 ], [ %33, %31 ]
ret i32 %35
}