#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 */
double fang(double);
double fun1(int, int);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int m, n;
  scanf("%d%d", &m, &n);
  printf("·½³Ì2*x*x*x-4*x*x+3*x-6=0µÄ½âÊÇx=%f", fun1(m, n));
  printf("\n%f\n", fang(fun1(m, n)));
  getchar();
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1060 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <fun1@plt>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <fun1@plt>
call   1070 <fang@plt>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1060 <scanf@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
call   1050 <fun1@plt>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
call   1050 <fun1@plt>
call   1070 <fang@plt>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [46 x i8] c"\C2\B7\C2\BD\C2\B3\C3\8C2*x*x*x-4*x*x+3*x-6=0\C2\B5\C3\84\C2\BD\C3\A2\C3\8A\C3\87x=%f\00"
@.str.2 = [5 x i8] c"\0A%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call double @fun1(i32 %5, i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), double %7)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = call double @fun1(i32 %9, i32 %10)
%12 = call double @fang(double %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %12)
%14 = call i32 (...) @getchar()
%15 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [46 x i8] c"\C2\B7\C2\BD\C2\B3\C3\8C2*x*x*x-4*x*x+3*x-6=0\C2\B5\C3\84\C2\BD\C3\A2\C3\8A\C3\87x=%f\00"
@.str.2 = [5 x i8] c"\0A%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = call double @fun1(i32 %6, i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), double %8)
%10 = load i32, i32* %1
%11 = load i32, i32* %2
%12 = call double @fun1(i32 %10, i32 %11)
%13 = call double @fang(double %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %13)
%15 = call i32 (...) @getchar()
%16 = call i32 (...) @getchar()
ret i32 0
}