#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__ EOF;
double pow(double, double);
int /*<<< orphan*/ printf(char *, double);
scalar_t__ scanf(char *, double *, double *, double *, double *);
int main() {
  double x1, x2, y1, y2;
  while (scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2) != EOF) {
    printf("%.2lf\n", pow(pow(x1 - x2, 2.0) + pow(y1 - y2, 2.0), 1.0 / 2.0));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%r8
call   1040 <scanf@plt>
mov    0x2e86(%rip),%rcx
cmp    (%rcx),%rax
je     11c8 <main+0x98>
movsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  0xe8b(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  0xe6f(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe4e(%rip),%xmm1
call   1050 <pow@plt>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xec3(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1040 <scanf@plt>
mov    0x2e83(%rip),%r14
cmp    (%r14),%rax
je     11ee <main+0xbe>
lea    0xe93(%rip),%r15
lea    0x20(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0x18(%rsp),%rbx
lea    0x8(%rsp),%rbp
nopl   0x0(%rax)
movsd  0x20(%rsp),%xmm1
movhpd 0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm0
movhpd 0x8(%rsp),%xmm0
subpd  %xmm0,%xmm1
mulpd  %xmm1,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe3c(%rip),%xmm1
call   1050 <pow@plt>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
call   1040 <scanf@plt>
cmp    (%r14),%rax
jne    1190 <main+0x60>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"%lf %lf %lf %lf\00"
@EOF = global i64 0
@.str.1 = [7 x i8] c"%.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
br label %6
6: ; preds = %10, %0
%7 = call i64 @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double* %2, double* %4, double* %3, double* %5)
%8 = load i64, i64* @EOF
%9 = icmp ne i64 %7, %8
br i1 %9, label %10, label %22
10: ; preds = %6
%11 = load double, double* %2
%12 = load double, double* %3
%13 = fsub double %11, %12
%14 = call double @pow(double %13, double 2.000000e+00)
%15 = load double, double* %4
%16 = load double, double* %5
%17 = fsub double %15, %16
%18 = call double @pow(double %17, double 2.000000e+00)
%19 = fadd double %14, %18
%20 = call double @pow(double %19, double 5.000000e-01)
%21 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %20)
br label %6
22: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"%lf %lf %lf %lf\00"
@EOF = global i64 0
@.str.1 = [7 x i8] c"%.2lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = bitcast double* %1 to i8*
%6 = bitcast double* %2 to i8*
%7 = bitcast double* %3 to i8*
%8 = bitcast double* %4 to i8*
%9 = call i64 @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double* %1, double* %3, double* %2, double* %4)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %31, label %12
12: ; preds = %0, %12
%13 = load double, double* %1
%14 = load double, double* %2
%15 = load double, double* %3
%16 = load double, double* %4
%17 = insertelement <2 x double> poison, double %13, i64 0
%18 = insertelement <2 x double> %17, double %15, i64 1
%19 = insertelement <2 x double> poison, double %14, i64 0
%20 = insertelement <2 x double> %19, double %16, i64 1
%21 = fsub <2 x double> %18, %20
%22 = fmul <2 x double> %21, %21
%23 = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%24 = fadd <2 x double> %22, %23
%25 = extractelement <2 x double> %24, i64 0
%26 = call double @pow(double %25, double 5.000000e-01)
%27 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %26)
%28 = call i64 @scanf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double* %1, double* %3, double* %2, double* %4)
%29 = load i64, i64* @EOF
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %12
31: ; preds = %12, %0
ret i32 0
}