#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 *, int *);
int main() {
  float water_quark_unit = 3.0 * 10e-23;
  printf("请输入需要计算的夸克数");
  int water_quark_count;
  scanf("%d", &water_quark_count);
  int water_g = water_quark_count * 950;
  long long water_count = water_g / water_quark_unit;
  printf("%d个夸克大约包含%lld个水分子", water_quark_count, water_count);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xec9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
imul   $0x3b6,-0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
divss  -0x8(%rbp),%xmm0
cvttss2si %xmm0,%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
imul   $0x3b6,%esi,%eax
cvtsi2ss %eax,%xmm0
divss  0xeaa(%rip),%xmm0
cvttss2si %xmm0,%rdx
lea    0xec7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E9\9C\80\E8\A6\81\E8\AE\A1\E7\AE\97\E7\9A\84\E5\A4\B8\E5\85\8B\E6\95\B0\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [40 x i8] c"%d\E4\B8\AA\E5\A4\B8\E5\85\8B\E5\A4\A7\E7\BA\A6\E5\8C\85\E5\90\AB%lld\E4\B8\AA\E6\B0\B4\E5\88\86\E5\AD\90\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
store i32 0, i32* %1
store float 0x3B76AAD800000000, float* %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %3
%9 = mul nsw i32 %8, 950
store i32 %9, i32* %4
%10 = load i32, i32* %4
%11 = sitofp i32 %10 to float
%12 = load float, float* %2
%13 = fdiv float %11, %12
%14 = fptosi float %13 to i64
store i64 %14, i64* %5
%15 = load i32, i32* %3
%16 = load i64, i64* %5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %15, i64 %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [34 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E9\9C\80\E8\A6\81\E8\AE\A1\E7\AE\97\E7\9A\84\E5\A4\B8\E5\85\8B\E6\95\B0\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [40 x i8] c"%d\E4\B8\AA\E5\A4\B8\E5\85\8B\E5\A4\A7\E7\BA\A6\E5\8C\85\E5\90\AB%lld\E4\B8\AA\E6\B0\B4\E5\88\86\E5\AD\90\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = bitcast i32* %1 to i8*
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = mul nsw i32 %5, 950
%7 = sitofp i32 %6 to float
%8 = fdiv float %7, 0x3B76AAD800000000
%9 = fptosi float %8 to i64
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %5, i64 %9)
ret i32 0
}