#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double foot = 0.0;
  double inch = 0.0;
  printf("请分别输入身高的英尺和英寸, 如输入\"5 7\"表示5英尺7英寸:");
  scanf("%lf %lf", &foot, &inch);
  double height = (foot + inch / 12) * 0.3048;
  printf("身高是%f米.\n", height);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xe95(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xe7d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xecd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0xed3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0xe98(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  0xe92(%rip),%xmm0
lea    0xee8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [77 x i8] c"\E8\AF\B7\E5\88\86\E5\88\AB\E8\BE\93\E5\85\A5\E8\BA\AB\E9\AB\98\E7\9A\84\E8\8B\B1\E5\B0\BA\E5\92\8C\E8\8B\B1\E5\AF\B8, \E5\A6\82\E8\BE\93\E5\85\A5\225 7\22\E8\A1\A8\E7\A4\BA5\E8\8B\B1\E5\B0\BA7\E8\8B\B1\E5\AF\B8:\00"
@.str.1 = [8 x i8] c"%lf %lf\00"
@.str.2 = [17 x i8] c"\E8\BA\AB\E9\AB\98\E6\98\AF%f\E7\B1\B3.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
store double 0.000000e+00, double* %3
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %2, double* %3)
%7 = load double, double* %2
%8 = load double, double* %3
%9 = fdiv double %8, 1.200000e+01
%10 = fadd double %7, %9
%11 = fmul double %10, 3.048000e-01
store double %11, double* %4
%12 = load double, double* %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [77 x i8] c"\E8\AF\B7\E5\88\86\E5\88\AB\E8\BE\93\E5\85\A5\E8\BA\AB\E9\AB\98\E7\9A\84\E8\8B\B1\E5\B0\BA\E5\92\8C\E8\8B\B1\E5\AF\B8, \E5\A6\82\E8\BE\93\E5\85\A5\225 7\22\E8\A1\A8\E7\A4\BA5\E8\8B\B1\E5\B0\BA7\E8\8B\B1\E5\AF\B8:\00"
@.str.1 = [8 x i8] c"%lf %lf\00"
@.str.2 = [17 x i8] c"\E8\BA\AB\E9\AB\98\E6\98\AF%f\E7\B1\B3.\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
store double 0.000000e+00, double* %1
%4 = bitcast double* %2 to i8*
store double 0.000000e+00, double* %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %1, double* %2)
%7 = load double, double* %1
%8 = load double, double* %2
%9 = fdiv double %8, 1.200000e+01
%10 = fadd double %7, %9
%11 = fmul double %10, 3.048000e-01
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), double %11)
ret i32 0
}