#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*/ scanf(char *, double *, double *, double *);
int main() {
  double x[3], y[3], r[3];
  int i;
  for (i = 0; i < 3; i++)
    scanf("%lf%lf%lf", &x[i], &y[i], &r[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x3,-0x64(%rbp)
jge    1177 <main+0x67>
movslq -0x64(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x64(%rbp),%rax
lea    -0x40(%rbp),%rdx
shl    $0x3,%rax
add    %rax,%rdx
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rcx
shl    $0x3,%rax
add    %rax,%rcx
lea    0xe9c(%rip),%rdi
call   1030 <scanf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x60,%rsp
lea    0xee4(%rip),%rbx
lea    0x40(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
call   1030 <scanf@plt>
lea    0x48(%rsp),%rsi
lea    0x28(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
call   1030 <scanf@plt>
lea    0x50(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    %rbx,%rdi
call   1030 <scanf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%lf%lf%lf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x double]
%3 = alloca [3 x double]
%4 = alloca [3 x double]
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load i32, i32* %5
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %11
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 %14
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 %17
%19 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %12, double* %15, double* %18)
br label %20
20: ; preds = %9
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %6
23: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%lf%lf%lf\00"
define i32 @main() {
%1 = alloca [3 x double]
%2 = alloca [3 x double]
%3 = alloca [3 x double]
%4 = bitcast [3 x double]* %1 to i8*
%5 = bitcast [3 x double]* %2 to i8*
%6 = bitcast [3 x double]* %3 to i8*
%7 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%8 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%9 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %7, double* %8, double* %9)
%11 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
%12 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 1
%13 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 1
%14 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %11, double* %12, double* %13)
%15 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 2
%16 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 2
%17 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 2
%18 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %15, double* %16, double* %17)
ret i32 0
}