#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, double, double, double, double, double,
                          double, double);
void prnout(int move, double ekin, double epot, double tscale, double vir,
            double vel, double count, int npart, double den) {
  double ek, etot, temp, pres, rp;
  ek = 24.0 * ekin;
  epot *= 4.0;
  etot = ek + epot;
  temp = tscale * ekin;
  pres = den * 16.0 * (ekin - vir) / (double)npart;
  vel /= (double)npart;
  rp = (count / (double)npart) * 100.0;
  printf(" %6d%12.4f%12.4f%12.4f%10.4f%10.4f%10.4f%6.1f\n", move, ek, epot,
         etot, temp, pres, vel, rp);
}


x86 assembly (clang, -O0):
<prnout>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
mov    %esi,-0x3c(%rbp)
movsd  %xmm6,-0x48(%rbp)
movsd  0xecf(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xeb5(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x50(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe7d(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
subsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x3c(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
cvtsi2sdl -0x3c(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x3c(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe2b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x4(%rbp),%esi
movsd  -0x50(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
movsd  -0x70(%rbp),%xmm6
lea    0xe15(%rip),%rdi
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prnout>:
movapd %xmm5,%xmm7
movapd %xmm4,%xmm8
movapd %xmm2,%xmm5
movapd %xmm0,%xmm4
mov    %edi,%eax
movsd  0xed5(%rip),%xmm0
mulsd  %xmm4,%xmm0
mulsd  0xed1(%rip),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm5
mulsd  0xec5(%rip),%xmm6
subsd  %xmm3,%xmm4
mulsd  %xmm6,%xmm4
xorps  %xmm3,%xmm3
cvtsi2sd %esi,%xmm3
divsd  %xmm3,%xmm4
divsd  %xmm3,%xmm8
divsd  %xmm3,%xmm7
mulsd  0xea9(%rip),%xmm7
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
movapd %xmm5,%xmm3
movapd %xmm8,%xmm5
movapd %xmm7,%xmm6
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [47 x i8] c" %6d%12.4f%12.4f%12.4f%10.4f%10.4f%10.4f%6.1f\0A\00"
define void @prnout(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double %8) {
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
store i32 %0, i32* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store i32 %7, i32* %17
store double %8, double* %18
%24 = load double, double* %11
%25 = fmul double 2.400000e+01, %24
store double %25, double* %19
%26 = load double, double* %12
%27 = fmul double %26, 4.000000e+00
store double %27, double* %12
%28 = load double, double* %19
%29 = load double, double* %12
%30 = fadd double %28, %29
store double %30, double* %20
%31 = load double, double* %13
%32 = load double, double* %11
%33 = fmul double %31, %32
store double %33, double* %21
%34 = load double, double* %18
%35 = fmul double %34, 1.600000e+01
%36 = load double, double* %11
%37 = load double, double* %14
%38 = fsub double %36, %37
%39 = fmul double %35, %38
%40 = load i32, i32* %17
%41 = sitofp i32 %40 to double
%42 = fdiv double %39, %41
store double %42, double* %22
%43 = load i32, i32* %17
%44 = sitofp i32 %43 to double
%45 = load double, double* %15
%46 = fdiv double %45, %44
store double %46, double* %15
%47 = load double, double* %16
%48 = load i32, i32* %17
%49 = sitofp i32 %48 to double
%50 = fdiv double %47, %49
%51 = fmul double %50, 1.000000e+02
store double %51, double* %23
%52 = load i32, i32* %10
%53 = load double, double* %19
%54 = load double, double* %12
%55 = load double, double* %20
%56 = load double, double* %21
%57 = load double, double* %22
%58 = load double, double* %15
%59 = load double, double* %23
%60 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %52, double %53, double %54, double %55, double %56, double %57, double %58, double %59)
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c" %6d%12.4f%12.4f%12.4f%10.4f%10.4f%10.4f%6.1f\0A\00"
define void @prnout(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, i32 %7, double %8) {
%10 = fmul double %1, 2.400000e+01
%11 = fmul double %2, 4.000000e+00
%12 = fadd double %10, %11
%13 = fmul double %1, %3
%14 = fmul double %8, 1.600000e+01
%15 = fsub double %1, %4
%16 = fmul double %15, %14
%17 = sitofp i32 %7 to double
%18 = fdiv double %16, %17
%19 = fdiv double %5, %17
%20 = fdiv double %6, %17
%21 = fmul double %20, 1.000000e+02
%22 = tail call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %0, double %10, double %11, double %12, double %13, double %18, double %19, double %21)
ret void
}