#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__ binarySearchSolution(int, int, int, int, int, int, double *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *, int *, int *, int *, int *, int *);
int main(void) {
  int p, q, r, s, t, u;
  double solution;
  while (scanf("%d %d %d %d %d %d", &p, &q, &r, &s, &t, &u) > 0) {
    if (binarySearchSolution(p, q, r, s, t, u, &solution))
      printf("%.4lf\n", solution);
    else
      printf("No solution\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1050 <scanf@plt>
cmp    $0x0,%rax
jle    11c7 <main+0x97>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
lea    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <binarySearchSolution@plt>
cmp    $0x0,%rax
je     11b4 <main+0x84>
movsd  -0x28(%rbp),%xmm0
lea    0xe6a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    11c2 <main+0x92>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
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    0x8(%rsp),%rax
mov    %rax,(%rsp)
lea    0xea2(%rip),%rdi
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
call   1060 <scanf@plt>
test   %rax,%rax
jle    1224 <main+0xe4>
lea    0xe74(%rip),%r15
lea    0x1c(%rsp),%r12
lea    0x18(%rsp),%r13
lea    0x14(%rsp),%rbx
lea    0x10(%rsp),%rbp
lea    0xc(%rsp),%r14
jmp    11e1 <main+0xa1>
nopw   0x0(%rax,%rax,1)
lea    0xe62(%rip),%rdi
call   1030 <puts@plt>
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %r14,%r9
call   1060 <scanf@plt>
test   %rax,%rax
jle    1224 <main+0xe4>
mov    0x1c(%rsp),%edi
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%r8d
mov    0x8(%rsp),%r9d
lea    0x20(%rsp),%rax
mov    %rax,(%rsp)
call   1050 <binarySearchSolution@plt>
test   %rax,%rax
je     11b0 <main+0x70>
movsd  0x20(%rsp),%xmm0
lea    0xdf7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    11bc <main+0x7c>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.1 = [7 x i8] c"%.4lf\0A\00"
@str = [12 x i8] c"No solution\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = bitcast i32* %1 to i8*
%9 = bitcast i32* %2 to i8*
%10 = bitcast i32* %3 to i8*
%11 = bitcast i32* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
%14 = bitcast double* %7 to i8*
%15 = call i64 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%16 = icmp sgt i64 %15, 0
br i1 %16, label %17, label %34
17: ; preds = %0, %31
%18 = load i32, i32* %1
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = call i64 @binarySearchSolution(i32 %18, i32 %19, i32 %20, i32 %21, i32 %22, i32 %23, double* %7)
%25 = icmp eq i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %17
%27 = load double, double* %7
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %27)
br label %31
29: ; preds = %17
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = call i64 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%33 = icmp sgt i64 %32, 0
br i1 %33, label %17, label %34
34: ; preds = %31, %0
ret i32 0
}