#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*/ dobldobl_interactive_Laurent_input_output();
int /*<<< orphan*/ quaddobl_interactive_Laurent_input_output();
int /*<<< orphan*/ standard_interactive_Laurent_input_output();
int interactive_Laurent_input_output(int precision) {
  if (precision == 0)
    standard_interactive_Laurent_input_output();
  else if (precision == 1)
    dobldobl_interactive_Laurent_input_output();
  else if (precision == 2)
    quaddobl_interactive_Laurent_input_output();
}


x86 assembly (clang, -O0):
<interactive_Laurent_input_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1151 <interactive_Laurent_input_output+0x21>
mov    $0x0,%al
call   1040 <standard_interactive_Laurent_input_output@plt>
jmp    1182 <interactive_Laurent_input_output+0x52>
cmpl   $0x1,-0x8(%rbp)
jne    1167 <interactive_Laurent_input_output+0x37>
mov    $0x0,%al
call   1050 <dobldobl_interactive_Laurent_input_output@plt>
jmp    117d <interactive_Laurent_input_output+0x4d>
cmpl   $0x2,-0x8(%rbp)
jne    1178 <interactive_Laurent_input_output+0x48>
mov    $0x0,%al
call   1030 <quaddobl_interactive_Laurent_input_output@plt>
jmp    117d <interactive_Laurent_input_output+0x4d>
jmp    1182 <interactive_Laurent_input_output+0x52>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interactive_Laurent_input_output>:
push   %rax
cmp    $0x2,%edi
je     1148 <interactive_Laurent_input_output+0x18>
cmp    $0x1,%edi
je     1151 <interactive_Laurent_input_output+0x21>
test   %edi,%edi
jne    114f <interactive_Laurent_input_output+0x1f>
xor    %eax,%eax
call   1040 <standard_interactive_Laurent_input_output@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <quaddobl_interactive_Laurent_input_output@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1050 <dobldobl_interactive_Laurent_input_output@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @interactive_Laurent_input_output(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @standard_interactive_Laurent_input_output()
br label %20
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (...) @dobldobl_interactive_Laurent_input_output()
br label %19
13: ; preds = %8
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @quaddobl_interactive_Laurent_input_output()
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18, %11
br label %20
20: ; preds = %19, %6
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @interactive_Laurent_input_output(i32 %0) {
switch i32 %0, label %8 [
i32 0, label %2
i32 1, label %4
i32 2, label %6
]
2: ; preds = %1
%3 = tail call i32 (...) @standard_interactive_Laurent_input_output()
br label %8
4: ; preds = %1
%5 = tail call i32 (...) @dobldobl_interactive_Laurent_input_output()
br label %8
6: ; preds = %1
%7 = tail call i32 (...) @quaddobl_interactive_Laurent_input_output()
br label %8
8: ; preds = %1, %4, %6, %2
ret i32 undef
}