#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 int uint8_t;
typedef int uint64_t;
typedef int /*<<< orphan*/ private_key;
typedef int /*<<< orphan*/ peer2;
typedef int /*<<< orphan*/ peer1;

/* Variables and functions */
int /*<<< orphan*/ curve25519_donna(int *, int *, int const *);
int /*<<< orphan*/ memset(int *, int, int);
int /*<<< orphan*/ printf(char *, int, int /*<<< orphan*/, int);
int /*<<< orphan*/ sqrt(double);
int tsc_read();
int main(int argc, char **argv) {
  uint8_t private_key[32], public[32], peer1[32], peer2[32], output[32];
  static const uint8_t basepoint[32] = {9};
  unsigned i;
  uint64_t sum = 0, sum_squares = 0, skipped = 0, mean;
  static const unsigned count = 200000;
  memset(private_key, 42, sizeof(private_key));
  private_key[0] &= 248;
  private_key[31] &= 127;
  private_key[31] |= 64;
  curve25519_donna(public, private_key, basepoint);
  memset(peer1, 0, sizeof(peer1));
  memset(peer2, 255, sizeof(peer2));
  for (i = 0; i < count; ++i) {
    const uint64_t start = tsc_read();
    curve25519_donna(output, peer1, public);
    const uint64_t end = tsc_read();
    const uint64_t delta = end - start;
    if (delta > 650000) {
      skipped++;
      continue;
    }
    sum += delta;
    sum_squares += (delta * delta);
  }
  mean = sum / ((uint64_t)count);
  printf("all 0: mean:%lu sd:%f skipped:%lu\n", mean,
         sqrt((double)(sum_squares / ((uint64_t)count) - mean * mean)),
         skipped);
  sum = sum_squares = skipped = 0;
  for (i = 0; i < count; ++i) {
    const uint64_t start = tsc_read();
    curve25519_donna(output, peer2, public);
    const uint64_t end = tsc_read();
    const uint64_t delta = end - start;
    if (delta > 650000) {
      skipped++;
      continue;
    }
    sum += delta;
    sum_squares += (delta * delta);
  }
  mean = sum / ((uint64_t)count);
  printf("all 1: mean:%lu sd:%f skipped:%lu\n", mean,
         sqrt((double)(sum_squares / ((uint64_t)count) - mean * mean)),
         skipped);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2d0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x298(%rbp)
movl   $0x0,-0x29c(%rbp)
movl   $0x0,-0x2a0(%rbp)
lea    -0x90(%rbp),%rdi
mov    $0x2a,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
mov    -0x90(%rbp),%eax
and    $0xf8,%eax
mov    %eax,-0x90(%rbp)
mov    -0x14(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x14(%rbp)
lea    -0x110(%rbp),%rdi
lea    -0x90(%rbp),%rsi
lea    0xe2b(%rip),%rdx
call   1030 <curve25519_donna@plt>
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    -0x210(%rbp),%rdi
mov    $0xff,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
movl   $0x0,-0x294(%rbp)
cmpl   $0x30d40,-0x294(%rbp)
jae    12c6 <main+0x176>
mov    $0x0,%al
call   1070 <tsc_read@plt>
mov    %eax,-0x2a8(%rbp)
lea    -0x290(%rbp),%rdi
lea    -0x190(%rbp),%rsi
lea    -0x110(%rbp),%rdx
call   1030 <curve25519_donna@plt>
mov    $0x0,%al
call   1070 <tsc_read@plt>
mov    %eax,-0x2ac(%rbp)
mov    -0x2ac(%rbp),%eax
sub    -0x2a8(%rbp),%eax
mov    %eax,-0x2b0(%rbp)
cmpl   $0x9eb10,-0x2b0(%rbp)
jle    1287 <main+0x137>
mov    -0x2a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2a0(%rbp)
jmp    12b2 <main+0x162>
mov    -0x2b0(%rbp),%eax
add    -0x298(%rbp),%eax
mov    %eax,-0x298(%rbp)
mov    -0x2b0(%rbp),%eax
imul   -0x2b0(%rbp),%eax
add    -0x29c(%rbp),%eax
mov    %eax,-0x29c(%rbp)
mov    -0x294(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x294(%rbp)
jmp    120d <main+0xbd>
mov    -0x298(%rbp),%eax
mov    $0x30d40,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2a4(%rbp)
mov    -0x2a4(%rbp),%eax
mov    %eax,-0x2c0(%rbp)
mov    -0x29c(%rbp),%eax
mov    $0x30d40,%ecx
cltd
idiv   %ecx
mov    -0x2a4(%rbp),%ecx
imul   -0x2a4(%rbp),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
call   1060 <sqrt@plt>
mov    -0x2c0(%rbp),%esi
mov    %eax,%edx
mov    -0x2a0(%rbp),%ecx
lea    0xd63(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x2a0(%rbp)
movl   $0x0,-0x29c(%rbp)
movl   $0x0,-0x298(%rbp)
movl   $0x0,-0x294(%rbp)
cmpl   $0x30d40,-0x294(%rbp)
jae    1407 <main+0x2b7>
mov    $0x0,%al
call   1070 <tsc_read@plt>
mov    %eax,-0x2b4(%rbp)
lea    -0x290(%rbp),%rdi
lea    -0x210(%rbp),%rsi
lea    -0x110(%rbp),%rdx
call   1030 <curve25519_donna@plt>
mov    $0x0,%al
call   1070 <tsc_read@plt>
mov    %eax,-0x2b8(%rbp)
mov    -0x2b8(%rbp),%eax
sub    -0x2b4(%rbp),%eax
mov    %eax,-0x2bc(%rbp)
cmpl   $0x9eb10,-0x2bc(%rbp)
jle    13c8 <main+0x278>
mov    -0x2a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2a0(%rbp)
jmp    13f3 <main+0x2a3>
mov    -0x2bc(%rbp),%eax
add    -0x298(%rbp),%eax
mov    %eax,-0x298(%rbp)
mov    -0x2bc(%rbp),%eax
imul   -0x2bc(%rbp),%eax
add    -0x29c(%rbp),%eax
mov    %eax,-0x29c(%rbp)
mov    -0x294(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x294(%rbp)
jmp    134e <main+0x1fe>
mov    -0x298(%rbp),%eax
mov    $0x30d40,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2a4(%rbp)
mov    -0x2a4(%rbp),%eax
mov    %eax,-0x2c4(%rbp)
mov    -0x29c(%rbp),%eax
mov    $0x30d40,%ecx
cltd
idiv   %ecx
mov    -0x2a4(%rbp),%ecx
imul   -0x2a4(%rbp),%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
call   1060 <sqrt@plt>
mov    -0x2c4(%rbp),%esi
mov    %eax,%edx
mov    -0x2a0(%rbp),%ecx
lea    0xc45(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x2d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x288,%rsp
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x2a,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
andl   $0xf8,(%rsp)
mov    0x7c(%rsp),%eax
and    $0x3f,%eax
or     $0x40,%eax
mov    %eax,0x7c(%rsp)
lea    0xe6e(%rip),%rdx
lea    0x80(%rsp),%rdi
mov    %rbx,%rsi
call   1030 <curve25519_donna@plt>
lea    0x200(%rsp),%rdi
xor    %r13d,%r13d
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    0x180(%rsp),%rdi
mov    $0xff,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
mov    $0x30d40,%r15d
xor    %r12d,%r12d
xor    %r14d,%r14d
xor    %ebx,%ebx
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <tsc_read@plt>
mov    %eax,%ebp
lea    0x100(%rsp),%rdi
lea    0x200(%rsp),%rsi
lea    0x80(%rsp),%rdx
call   1030 <curve25519_donna@plt>
xor    %eax,%eax
call   1070 <tsc_read@plt>
sub    %ebp,%eax
mov    %eax,%ecx
imul   %eax,%ecx
xor    %edx,%edx
cmp    $0x9eb11,%eax
setge  %dl
cmovge %r13d,%ecx
cmovge %r13d,%eax
add    %edx,%ebx
add    %ecx,%r14d
add    %eax,%r12d
add    $0xffffffff,%r15d
jne    11e0 <main+0x90>
movslq %r12d,%rax
imul   $0x14f8b589,%rax,%rbp
mov    %rbp,%rax
shr    $0x3f,%rax
sar    $0x2e,%rbp
add    %eax,%ebp
shr    $0x6,%r14d
imul   $0x53e2d63,%r14,%rax
shr    $0x26,%rax
mov    %ebp,%ecx
imul   %ebp,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
call   1060 <sqrt@plt>
lea    0xe0f(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    %ebx,%ecx
call   1040 <printf@plt>
xor    %r14d,%r14d
mov    $0x30d40,%r15d
xor    %r12d,%r12d
xor    %ebp,%ebp
xor    %ebx,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <tsc_read@plt>
mov    %eax,%r13d
lea    0x100(%rsp),%rdi
lea    0x180(%rsp),%rsi
lea    0x80(%rsp),%rdx
call   1030 <curve25519_donna@plt>
xor    %eax,%eax
call   1070 <tsc_read@plt>
sub    %r13d,%eax
mov    %eax,%ecx
imul   %eax,%ecx
xor    %edx,%edx
cmp    $0x9eb11,%eax
setge  %dl
cmovge %r14d,%ecx
cmovge %r14d,%eax
add    %edx,%ebx
add    %ecx,%ebp
add    %eax,%r12d
add    $0xffffffff,%r15d
jne    1290 <main+0x140>
movslq %r12d,%rax
imul   $0x14f8b589,%rax,%r14
mov    %r14,%rax
shr    $0x3f,%rax
sar    $0x2e,%r14
add    %eax,%r14d
shr    $0x6,%ebp
imul   $0x53e2d63,%rbp,%rax
shr    $0x26,%rax
mov    %r14d,%ecx
imul   %r14d,%ecx
sub    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
call   1060 <sqrt@plt>
lea    0xd7c(%rip),%rdi
mov    %r14d,%esi
mov    %eax,%edx
mov    %ebx,%ecx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x288,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.basepoint = internal constant <{ i32, [31 x i32] }> <{ i32 9, [31 x i32] zeroinitializer }>
@main.count = internal constant i32 200000
@.str = [35 x i8] c"all 0: mean:%lu sd:%f skipped:%lu\0A\00"
@.str.1 = [35 x i8] c"all 1: mean:%lu sd:%f skipped:%lu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [32 x i32]
%7 = alloca [32 x i32]
%8 = alloca [32 x i32]
%9 = alloca [32 x i32]
%10 = alloca [32 x i32]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%22 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 0
%23 = call i32 @memset(i32* %22, i32 42, i32 128)
%24 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 0
%25 = load i32, i32* %24
%26 = and i32 %25, 248
store i32 %26, i32* %24
%27 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 31
%28 = load i32, i32* %27
%29 = and i32 %28, 127
store i32 %29, i32* %27
%30 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 31
%31 = load i32, i32* %30
%32 = or i32 %31, 64
store i32 %32, i32* %30
%33 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 0
%34 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 0
%35 = call i32 @curve25519_donna(i32* %33, i32* %34, i32* getelementptr inbounds ([32 x i32], [32 x i32]* bitcast (<{ i32, [31 x i32] }>* @main.basepoint to [32 x i32]*), i64 0, i64 0))
%36 = getelementptr inbounds [32 x i32], [32 x i32]* %8, i64 0, i64 0
%37 = call i32 @memset(i32* %36, i32 0, i32 128)
%38 = getelementptr inbounds [32 x i32], [32 x i32]* %9, i64 0, i64 0
%39 = call i32 @memset(i32* %38, i32 255, i32 128)
store i32 0, i32* %11
br label %40
40: ; preds = %67, %2
%41 = load i32, i32* %11
%42 = icmp ult i32 %41, 200000
br i1 %42, label %43, label %70
43: ; preds = %40
%44 = call i32 (...) @tsc_read()
store i32 %44, i32* %16
%45 = getelementptr inbounds [32 x i32], [32 x i32]* %10, i64 0, i64 0
%46 = getelementptr inbounds [32 x i32], [32 x i32]* %8, i64 0, i64 0
%47 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 0
%48 = call i32 @curve25519_donna(i32* %45, i32* %46, i32* %47)
%49 = call i32 (...) @tsc_read()
store i32 %49, i32* %17
%50 = load i32, i32* %17
%51 = load i32, i32* %16
%52 = sub nsw i32 %50, %51
store i32 %52, i32* %18
%53 = load i32, i32* %18
%54 = icmp sgt i32 %53, 650000
br i1 %54, label %55, label %58
55: ; preds = %43
%56 = load i32, i32* %14
%57 = add nsw i32 %56, 1
store i32 %57, i32* %14
br label %67
58: ; preds = %43
%59 = load i32, i32* %18
%60 = load i32, i32* %12
%61 = add nsw i32 %60, %59
store i32 %61, i32* %12
%62 = load i32, i32* %18
%63 = load i32, i32* %18
%64 = mul nsw i32 %62, %63
%65 = load i32, i32* %13
%66 = add nsw i32 %65, %64
store i32 %66, i32* %13
br label %67
67: ; preds = %58, %55
%68 = load i32, i32* %11
%69 = add i32 %68, 1
store i32 %69, i32* %11
br label %40
70: ; preds = %40
%71 = load i32, i32* %12
%72 = sdiv i32 %71, 200000
store i32 %72, i32* %15
%73 = load i32, i32* %15
%74 = load i32, i32* %13
%75 = sdiv i32 %74, 200000
%76 = load i32, i32* %15
%77 = load i32, i32* %15
%78 = mul nsw i32 %76, %77
%79 = sub nsw i32 %75, %78
%80 = sitofp i32 %79 to double
%81 = call i32 @sqrt(double %80)
%82 = load i32, i32* %14
%83 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %73, i32 %81, i32 %82)
store i32 0, i32* %14
store i32 0, i32* %13
store i32 0, i32* %12
store i32 0, i32* %11
br label %84
84: ; preds = %111, %70
%85 = load i32, i32* %11
%86 = icmp ult i32 %85, 200000
br i1 %86, label %87, label %114
87: ; preds = %84
%88 = call i32 (...) @tsc_read()
store i32 %88, i32* %19
%89 = getelementptr inbounds [32 x i32], [32 x i32]* %10, i64 0, i64 0
%90 = getelementptr inbounds [32 x i32], [32 x i32]* %9, i64 0, i64 0
%91 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 0
%92 = call i32 @curve25519_donna(i32* %89, i32* %90, i32* %91)
%93 = call i32 (...) @tsc_read()
store i32 %93, i32* %20
%94 = load i32, i32* %20
%95 = load i32, i32* %19
%96 = sub nsw i32 %94, %95
store i32 %96, i32* %21
%97 = load i32, i32* %21
%98 = icmp sgt i32 %97, 650000
br i1 %98, label %99, label %102
99: ; preds = %87
%100 = load i32, i32* %14
%101 = add nsw i32 %100, 1
store i32 %101, i32* %14
br label %111
102: ; preds = %87
%103 = load i32, i32* %21
%104 = load i32, i32* %12
%105 = add nsw i32 %104, %103
store i32 %105, i32* %12
%106 = load i32, i32* %21
%107 = load i32, i32* %21
%108 = mul nsw i32 %106, %107
%109 = load i32, i32* %13
%110 = add nsw i32 %109, %108
store i32 %110, i32* %13
br label %111
111: ; preds = %102, %99
%112 = load i32, i32* %11
%113 = add i32 %112, 1
store i32 %113, i32* %11
br label %84
114: ; preds = %84
%115 = load i32, i32* %12
%116 = sdiv i32 %115, 200000
store i32 %116, i32* %15
%117 = load i32, i32* %15
%118 = load i32, i32* %13
%119 = sdiv i32 %118, 200000
%120 = load i32, i32* %15
%121 = load i32, i32* %15
%122 = mul nsw i32 %120, %121
%123 = sub nsw i32 %119, %122
%124 = sitofp i32 %123 to double
%125 = call i32 @sqrt(double %124)
%126 = load i32, i32* %14
%127 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i32 %117, i32 %125, i32 %126)
ret i32 0
}

LLVM IR (-O2):
@main.basepoint = internal constant <{ i32, [31 x i32] }> <{ i32 9, [31 x i32] zeroinitializer }>
@.str = [35 x i8] c"all 0: mean:%lu sd:%f skipped:%lu\0A\00"
@.str.1 = [35 x i8] c"all 1: mean:%lu sd:%f skipped:%lu\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [32 x i32]
%4 = alloca [32 x i32]
%5 = alloca [32 x i32]
%6 = alloca [32 x i32]
%7 = alloca [32 x i32]
%8 = bitcast [32 x i32]* %3 to i8*
%9 = bitcast [32 x i32]* %4 to i8*
%10 = bitcast [32 x i32]* %5 to i8*
%11 = bitcast [32 x i32]* %6 to i8*
%12 = bitcast [32 x i32]* %7 to i8*
%13 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 0
%14 = call i32 @memset(i32* %13, i32 42, i32 128)
%15 = load i32, i32* %13
%16 = and i32 %15, 248
store i32 %16, i32* %13
%17 = getelementptr inbounds [32 x i32], [32 x i32]* %3, i64 0, i64 31
%18 = load i32, i32* %17
%19 = and i32 %18, 63
%20 = or i32 %19, 64
store i32 %20, i32* %17
%21 = getelementptr inbounds [32 x i32], [32 x i32]* %4, i64 0, i64 0
%22 = call i32 @curve25519_donna(i32* %21, i32* %13, i32* getelementptr inbounds (<{ i32, [31 x i32] }>, <{ i32, [31 x i32] }>* @main.basepoint, i64 0, i32 0))
%23 = getelementptr inbounds [32 x i32], [32 x i32]* %5, i64 0, i64 0
%24 = call i32 @memset(i32* %23, i32 0, i32 128)
%25 = getelementptr inbounds [32 x i32], [32 x i32]* %6, i64 0, i64 0
%26 = call i32 @memset(i32* %25, i32 255, i32 128)
%27 = getelementptr inbounds [32 x i32], [32 x i32]* %7, i64 0, i64 0
br label %28
28: ; preds = %2, %28
%29 = phi i32 [ 0, %2 ], [ %45, %28 ]
%30 = phi i32 [ 0, %2 ], [ %44, %28 ]
%31 = phi i32 [ 0, %2 ], [ %42, %28 ]
%32 = phi i32 [ 0, %2 ], [ %40, %28 ]
%33 = call i32 (...) @tsc_read()
%34 = call i32 @curve25519_donna(i32* %27, i32* %23, i32* %21)
%35 = call i32 (...) @tsc_read()
%36 = sub nsw i32 %35, %33
%37 = icmp sgt i32 %36, 650000
%38 = mul nsw i32 %36, %36
%39 = zext i1 %37 to i32
%40 = add nuw nsw i32 %32, %39
%41 = select i1 %37, i32 0, i32 %38
%42 = add nuw nsw i32 %41, %31
%43 = select i1 %37, i32 0, i32 %36
%44 = add nsw i32 %43, %30
%45 = add nuw nsw i32 %29, 1
%46 = icmp eq i32 %45, 200000
br i1 %46, label %47, label %28
47: ; preds = %28
%48 = sdiv i32 %44, 200000
%49 = udiv i32 %42, 200000
%50 = mul nsw i32 %48, %48
%51 = sub nsw i32 %49, %50
%52 = sitofp i32 %51 to double
%53 = call i32 @sqrt(double %52)
%54 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %48, i32 %53, i32 %40)
br label %55
55: ; preds = %47, %55
%56 = phi i32 [ 0, %47 ], [ %72, %55 ]
%57 = phi i32 [ 0, %47 ], [ %71, %55 ]
%58 = phi i32 [ 0, %47 ], [ %69, %55 ]
%59 = phi i32 [ 0, %47 ], [ %67, %55 ]
%60 = call i32 (...) @tsc_read()
%61 = call i32 @curve25519_donna(i32* %27, i32* %25, i32* %21)
%62 = call i32 (...) @tsc_read()
%63 = sub nsw i32 %62, %60
%64 = icmp sgt i32 %63, 650000
%65 = mul nsw i32 %63, %63
%66 = zext i1 %64 to i32
%67 = add nuw nsw i32 %59, %66
%68 = select i1 %64, i32 0, i32 %65
%69 = add nuw nsw i32 %68, %58
%70 = select i1 %64, i32 0, i32 %63
%71 = add nsw i32 %70, %57
%72 = add nuw nsw i32 %56, 1
%73 = icmp eq i32 %72, 200000
br i1 %73, label %74, label %55
74: ; preds = %55
%75 = sdiv i32 %71, 200000
%76 = udiv i32 %69, 200000
%77 = mul nsw i32 %75, %75
%78 = sub nsw i32 %76, %77
%79 = sitofp i32 %78 to double
%80 = call i32 @sqrt(double %79)
%81 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i32 %75, i32 %80, i32 %67)
ret i32 0
}