#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 */
typedef scalar_t__ clock_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
double CLOCKS_PER_SEC;
scalar_t__ clock();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, double);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int rand_for_x(int, int);
int rand_for_y(int, int);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  double rad;
  int y_start, x_and_y_end, x_start, i = 0, l, amount_of_points;
  l = 0;
  x_start = -5;
  y_start = x_start;
  x_and_y_end = 5;
  printf("Введите радиус окружности: ");
  scanf("%lf", &rad);
  FILE *file;
  file = fopen("text.dat", "w+");
  for (amount_of_points = 200; amount_of_points < 5000;
       amount_of_points += 200) {
    clock_t time;
    time = clock();
    int x[amount_of_points];
    int y[amount_of_points];
    for (i = 0; i < amount_of_points; ++i) {
      x[i] = rand_for_x(x_start, x_and_y_end);
      y[i] = rand_for_y(y_start, x_and_y_end);
    }
    i = 1 + rand() % (amount_of_points - 1);
    printf("Координаты случайно выбранной точки [%i,%i]\n", x[i], y[i]);
    i = 0;
    while ((x[i] > 0.0000001) || (x[i] <= -0.0000001)) {
      if (x[i] * x[i] + y[i] * y[i] <= rad * rad) {
        l++;
      }
      i++;
    }
    printf("Количество точек, принадлежащих окружности составляет: %i\n", l);
    time = clock() - time;
    printf("Время выполнения: %f\n", (double)time / CLOCKS_PER_SEC);
    fprintf(file, "%i %f\n", amount_of_points, (double)time / CLOCKS_PER_SEC);
  }
  fclose(file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0xfffffffb,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe6d(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xe61(%rip),%rdi
lea    0xe63(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x30(%rbp)
movl   $0xc8,-0x28(%rbp)
cmpl   $0x1388,-0x28(%rbp)
jge    1412 <main+0x282>
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12ad <main+0x11d>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
call   10a0 <rand_for_x@plt>
mov    %eax,%edx
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1060 <rand_for_y@plt>
mov    %eax,%edx
mov    -0x58(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1263 <main+0xd3>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    -0x60(%rbp),%rcx
mov    -0x28(%rbp),%esi
sub    $0x1,%esi
cltd
idiv   %esi
mov    -0x58(%rbp),%rax
add    $0x1,%edx
mov    %edx,-0x20(%rbp)
movslq -0x20(%rbp),%rdx
mov    (%rcx,%rdx,4),%esi
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mov    $0x1,%al
movsd  0xcfb(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x61(%rbp)
ja     1331 <main+0x1a1>
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0xce1(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    1341 <main+0x1b1>
jmp    1398 <main+0x208>
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rcx
movslq -0x20(%rbp),%rax
mov    (%rcx,%rax,4),%eax
movslq -0x20(%rbp),%rsi
imul   (%rcx,%rsi,4),%eax
movslq -0x20(%rbp),%rcx
mov    (%rdx,%rcx,4),%ecx
movslq -0x20(%rbp),%rsi
imul   (%rdx,%rsi,4),%ecx
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     138a <main+0x1fa>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12ee <main+0x15e>
mov    -0x24(%rbp),%esi
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <clock@plt>
sub    -0x38(%rbp),%rax
mov    %rax,-0x38(%rbp)
cvtsi2sdq -0x38(%rbp),%xmm0
mov    0x2c23(%rip),%rax
divsd  (%rax),%xmm0
lea    0xd3b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%edx
cvtsi2sdq -0x38(%rbp),%xmm0
mov    0x2bfd(%rip),%rax
divsd  (%rax),%xmm0
lea    0xd3a(%rip),%rsi
call   1070 <fprintf@plt>
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    -0x28(%rbp),%eax
add    $0xc8,%eax
mov    %eax,-0x28(%rbp)
jmp    11fd <main+0x6d>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7d(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xe71(%rip),%rdi
lea    0xe73(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    $0xc8,%ebx
xor    %r12d,%r12d
jmp    125d <main+0xcd>
mov    -0x40(%rbp),%r13
lea    0xea5(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <clock@plt>
sub    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    0x2dd4(%rip),%r14
divsd  (%r14),%xmm0
lea    0xedb(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x30(%rbp),%xmm0
divsd  (%r14),%xmm0
mov    -0x38(%rbp),%rdi
lea    0xee4(%rip),%rsi
mov    %ebx,%edx
call   1070 <fprintf@plt>
mov    %r13,%rsp
lea    0xc8(%rbx),%rax
cmp    $0x12c0,%rbx
mov    %rax,%rbx
jae    133d <main+0x1ad>
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,-0x30(%rbp)
mov    %rsp,-0x40(%rbp)
mov    %rsp,%r14
lea    0xf(,%rbx,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    %rsp,%r15
sub    %rax,%r15
mov    %r15,%rsp
xor    %r13d,%r13d
nopl   (%rax)
mov    $0xfffffffb,%edi
mov    $0x5,%esi
call   10a0 <rand_for_x@plt>
mov    %eax,(%r14,%r13,4)
mov    $0xfffffffb,%edi
mov    $0x5,%esi
call   1060 <rand_for_y@plt>
mov    %eax,(%r15,%r13,4)
add    $0x1,%r13
cmp    %r13,%rbx
jne    1290 <main+0x100>
xor    %eax,%eax
call   10b0 <rand@plt>
lea    -0x1(%rbx),%ecx
cltd
idiv   %ecx
movslq %edx,%rax
mov    0x4(%r14,%rax,4),%esi
mov    0x4(%r15,%rax,4),%edx
lea    0xd63(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
test   %eax,%eax
je     11e0 <main+0x50>
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm0,%xmm0
xor    %ecx,%ecx
mov    -0x40(%rbp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
imul   %eax,%eax
mov    (%r15,%rcx,1),%edx
imul   %edx,%edx
add    %eax,%edx
xorps  %xmm1,%xmm1
cvtsi2sd %edx,%xmm1
ucomisd %xmm1,%xmm0
sbb    $0xffffffff,%r12d
mov    0x4(%r14,%rcx,1),%eax
add    $0x4,%rcx
test   %eax,%eax
jne    1310 <main+0x180>
jmp    11e4 <main+0x54>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [51 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\80\D0\B0\D0\B4\D0\B8\D1\83\D1\81 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [9 x i8] c"text.dat\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [77 x i8] c"\D0\9A\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D1\81\D0\BB\D1\83\D1\87\D0\B0\D0\B9\D0\BD\D0\BE \D0\B2\D1\8B\D0\B1\D1\80\D0\B0\D0\BD\D0\BD\D0\BE\D0\B9 \D1\82\D0\BE\D1\87\D0\BA\D0\B8 [%i,%i]\0A\00"
@.str.5 = [107 x i8] c"\D0\9A\D0\BE\D0\BB\D0\B8\D1\87\D0\B5\D1\81\D1\82\D0\B2\D0\BE \D1\82\D0\BE\D1\87\D0\B5\D0\BA, \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B0\D1\89\D0\B8\D1\85 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8 \D1\81\D0\BE\D1\81\D1\82\D0\B0\D0\B2\D0\BB\D1\8F\D0\B5\D1\82: %i\0A\00"
@.str.6 = [37 x i8] c"\D0\92\D1\80\D0\B5\D0\BC\D1\8F \D0\B2\D1\8B\D0\BF\D0\BE\D0\BB\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F: %f\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.7 = [7 x i8] c"%i %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i64
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
store i32 0, i32* %1
store i32 0, i32* %6
store i32 0, i32* %7
store i32 -5, i32* %5
%14 = load i32, i32* %5
store i32 %14, i32* %3
store i32 5, i32* %4
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%17 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %17, i32** %9
store i32 200, i32* %8
br label %18
18: ; preds = %131, %0
%19 = load i32, i32* %8
%20 = icmp slt i32 %19, 5000
br i1 %20, label %21, label %134
21: ; preds = %18
%22 = call i64 (...) @clock()
store i64 %22, i64* %10
%23 = load i32, i32* %8
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %11
%26 = alloca i32, i64 %24
store i64 %24, i64* %12
%27 = load i32, i32* %8
%28 = zext i32 %27 to i64
%29 = alloca i32, i64 %28
store i64 %28, i64* %13
store i32 0, i32* %6
br label %30
30: ; preds = %47, %21
%31 = load i32, i32* %6
%32 = load i32, i32* %8
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %50
34: ; preds = %30
%35 = load i32, i32* %5
%36 = load i32, i32* %4
%37 = call i32 @rand_for_x(i32 %35, i32 %36)
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, i32* %26, i64 %39
store i32 %37, i32* %40
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = call i32 @rand_for_y(i32 %41, i32 %42)
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, i32* %29, i64 %45
store i32 %43, i32* %46
br label %47
47: ; preds = %34
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
store i32 %49, i32* %6
br label %30
50: ; preds = %30
%51 = call i32 (...) @rand()
%52 = load i32, i32* %8
%53 = sub nsw i32 %52, 1
%54 = srem i32 %51, %53
%55 = add nsw i32 1, %54
store i32 %55, i32* %6
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, i32* %26, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %29, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %63)
store i32 0, i32* %6
br label %65
65: ; preds = %109, %50
%66 = load i32, i32* %6
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, i32* %26, i64 %67
%69 = load i32, i32* %68
%70 = sitofp i32 %69 to double
%71 = fcmp ogt double %70, 0x3E7AD7F29ABCAF48
br i1 %71, label %79, label %72
72: ; preds = %65
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, i32* %26, i64 %74
%76 = load i32, i32* %75
%77 = sitofp i32 %76 to double
%78 = fcmp ole double %77, 0xBE7AD7F29ABCAF48
br label %79
79: ; preds = %72, %65
%80 = phi i1 [ true, %65 ], [ %78, %72 ]
br i1 %80, label %81, label %112
81: ; preds = %79
%82 = load i32, i32* %6
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %26, i64 %83
%85 = load i32, i32* %84
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %26, i64 %87
%89 = load i32, i32* %88
%90 = mul nsw i32 %85, %89
%91 = load i32, i32* %6
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, i32* %29, i64 %92
%94 = load i32, i32* %93
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %29, i64 %96
%98 = load i32, i32* %97
%99 = mul nsw i32 %94, %98
%100 = add nsw i32 %90, %99
%101 = sitofp i32 %100 to double
%102 = load double, double* %2
%103 = load double, double* %2
%104 = fmul double %102, %103
%105 = fcmp ole double %101, %104
br i1 %105, label %106, label %109
106: ; preds = %81
%107 = load i32, i32* %7
%108 = add nsw i32 %107, 1
store i32 %108, i32* %7
br label %109
109: ; preds = %106, %81
%110 = load i32, i32* %6
%111 = add nsw i32 %110, 1
store i32 %111, i32* %6
br label %65
112: ; preds = %79
%113 = load i32, i32* %7
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.5, i64 0, i64 0), i32 %113)
%115 = call i64 (...) @clock()
%116 = load i64, i64* %10
%117 = sub nsw i64 %115, %116
store i64 %117, i64* %10
%118 = load i64, i64* %10
%119 = sitofp i64 %118 to double
%120 = load double, double* @CLOCKS_PER_SEC
%121 = fdiv double %119, %120
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double %121)
%123 = load i32*, i32** %9
%124 = load i32, i32* %8
%125 = load i64, i64* %10
%126 = sitofp i64 %125 to double
%127 = load double, double* @CLOCKS_PER_SEC
%128 = fdiv double %126, %127
%129 = call i32 @fprintf(i32* %123, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %124, double %128)
%130 = load i8*, i8** %11
br label %131
131: ; preds = %112
%132 = load i32, i32* %8
%133 = add nsw i32 %132, 200
store i32 %133, i32* %8
br label %18
134: ; preds = %18
%135 = load i32*, i32** %9
%136 = call i32 @fclose(i32* %135)
ret i32 0
}

LLVM IR (-O2):
@.str = [51 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\80\D0\B0\D0\B4\D0\B8\D1\83\D1\81 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [9 x i8] c"text.dat\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [77 x i8] c"\D0\9A\D0\BE\D0\BE\D1\80\D0\B4\D0\B8\D0\BD\D0\B0\D1\82\D1\8B \D1\81\D0\BB\D1\83\D1\87\D0\B0\D0\B9\D0\BD\D0\BE \D0\B2\D1\8B\D0\B1\D1\80\D0\B0\D0\BD\D0\BD\D0\BE\D0\B9 \D1\82\D0\BE\D1\87\D0\BA\D0\B8 [%i,%i]\0A\00"
@.str.5 = [107 x i8] c"\D0\9A\D0\BE\D0\BB\D0\B8\D1\87\D0\B5\D1\81\D1\82\D0\B2\D0\BE \D1\82\D0\BE\D1\87\D0\B5\D0\BA, \D0\BF\D1\80\D0\B8\D0\BD\D0\B0\D0\B4\D0\BB\D0\B5\D0\B6\D0\B0\D1\89\D0\B8\D1\85 \D0\BE\D0\BA\D1\80\D1\83\D0\B6\D0\BD\D0\BE\D1\81\D1\82\D0\B8 \D1\81\D0\BE\D1\81\D1\82\D0\B0\D0\B2\D0\BB\D1\8F\D0\B5\D1\82: %i\0A\00"
@.str.6 = [37 x i8] c"\D0\92\D1\80\D0\B5\D0\BC\D1\8F \D0\B2\D1\8B\D0\BF\D0\BE\D0\BB\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F: %f\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.7 = [7 x i8] c"%i %f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%5 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %6
6: ; preds = %0, %55
%7 = phi i64 [ 200, %0 ], [ %68, %55 ]
%8 = phi i32 [ 0, %0 ], [ %56, %55 ]
%9 = call i64 (...) @clock()
%10 = call i8* @llvm.stacksave()
%11 = alloca i32, i64 %7
%12 = alloca i32, i64 %7
br label %13
13: ; preds = %6, %13
%14 = phi i64 [ 0, %6 ], [ %19, %13 ]
%15 = call i32 @rand_for_x(i32 -5, i32 5)
%16 = getelementptr inbounds i32, i32* %11, i64 %14
store i32 %15, i32* %16
%17 = call i32 @rand_for_y(i32 -5, i32 5)
%18 = getelementptr inbounds i32, i32* %12, i64 %14
store i32 %17, i32* %18
%19 = add nuw nsw i64 %14, 1
%20 = icmp eq i64 %19, %7
br i1 %20, label %21, label %13
21: ; preds = %13
%22 = call i32 (...) @rand()
%23 = trunc i64 %7 to i32
%24 = add i32 %23, -1
%25 = srem i32 %22, %24
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %11, i64 %27
%29 = load i32, i32* %28
%30 = getelementptr inbounds i32, i32* %12, i64 %27
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.4, i64 0, i64 0), i32 %29, i32 %31)
%33 = load i32, i32* %11
%34 = icmp eq i32 %33, 0
br i1 %34, label %55, label %35
35: ; preds = %21
%36 = load double, double* %1
%37 = fmul double %36, %36
br label %38
38: ; preds = %35, %38
%39 = phi i64 [ 0, %35 ], [ %51, %38 ]
%40 = phi i32 [ %33, %35 ], [ %53, %38 ]
%41 = phi i32 [ %8, %35 ], [ %50, %38 ]
%42 = mul nsw i32 %40, %40
%43 = getelementptr inbounds i32, i32* %12, i64 %39
%44 = load i32, i32* %43
%45 = mul nsw i32 %44, %44
%46 = add nuw nsw i32 %45, %42
%47 = sitofp i32 %46 to double
%48 = fcmp oge double %37, %47
%49 = zext i1 %48 to i32
%50 = add nsw i32 %41, %49
%51 = add nuw nsw i64 %39, 1
%52 = getelementptr inbounds i32, i32* %11, i64 %51
%53 = load i32, i32* %52
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %38
55: ; preds = %38, %21
%56 = phi i32 [ %8, %21 ], [ %50, %38 ]
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([107 x i8], [107 x i8]* @.str.5, i64 0, i64 0), i32 %56)
%58 = call i64 (...) @clock()
%59 = sub nsw i64 %58, %9
%60 = sitofp i64 %59 to double
%61 = load double, double* @CLOCKS_PER_SEC
%62 = fdiv double %60, %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double %62)
%64 = load double, double* @CLOCKS_PER_SEC
%65 = fdiv double %60, %64
%66 = trunc i64 %7 to i32
%67 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %66, double %65)
%68 = add nuw nsw i64 %7, 200
%69 = icmp ult i64 %7, 4800
br i1 %69, label %6, label %70
70: ; preds = %55
%71 = call i32 @fclose(i32* %5)
ret i32 0
}