#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 log10(double);
double pow(int, int);
void KValues(double *K1, double *K2, double *KW, double *Ks, double TempK) {
  *K1 = pow(10, (3 - 356.3094 - 0.06091964 * TempK + 21834.37 / TempK +
                 126.8339 * log10(TempK) - 1684915 / (TempK * TempK)));
  *K2 = pow(10, (3 - 107.8871 - 0.03252849 * TempK + 5151.79 / TempK +
                 38.92561 * log10(TempK) - 563713.9 / (TempK * TempK)));
  *KW = pow(10, (6 - 4787.3 / TempK - 7.1321 * log10(TempK) - 0.010365 * TempK +
                 22.801));
  *Ks = pow(10, (6 + 9.2536 - 0.032449 * TempK - 2386.038 / TempK));
}


x86 assembly (clang, -O0):
<KValues>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xf36(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xf32(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xf16(%rip),%xmm1
divsd  -0x28(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <log10@plt>
movsd  -0x40(%rbp),%xmm1
movsd  0xee9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  -0x28(%rbp),%xmm2
movsd  0xec7(%rip),%xmm1
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x28(%rbp),%xmm0
movsd  0xe8c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe88(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe6c(%rip),%xmm1
divsd  -0x28(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <log10@plt>
movsd  -0x38(%rbp),%xmm1
movsd  0xe3f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  -0x28(%rbp),%xmm2
movsd  0xe1d(%rip),%xmm1
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xdef(%rip),%xmm1
divsd  -0x28(%rbp),%xmm1
movsd  0xdda(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <log10@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xdaf(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xd92(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd7a(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x28(%rbp),%xmm0
movsd  0xd43(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd3f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd23(%rip),%xmm1
divsd  -0x28(%rbp),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KValues>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
movsd  0xec7(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xec3(%rip),%xmm1
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movsd  0xeb7(%rip),%xmm2
divsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
call   1040 <log10@plt>
mulsd  0xea5(%rip),%xmm0
addsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  %xmm2,(%rsp)
movsd  0xe91(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
movsd  0xe7b(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm1
addsd  0xe71(%rip),%xmm1
movsd  %xmm0,(%rbx)
movsd  0xe6d(%rip),%xmm0
divsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movapd %xmm2,%xmm0
call   1040 <log10@plt>
mulsd  0xe56(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  0xe50(%rip),%xmm1
divsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%r12)
movsd  0xe33(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
divsd  %xmm0,%xmm1
addsd  0xe29(%rip),%xmm1
movsd  %xmm1,(%rsp)
call   1040 <log10@plt>
mulsd  0xe1f(%rip),%xmm0
addsd  (%rsp),%xmm0
movsd  0xe1a(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
addsd  0xe10(%rip),%xmm1
cvttsd2si %xmm1,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%r15)
movsd  0xdfd(%rip),%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
addsd  0xdf3(%rip),%xmm0
movsd  0xdf3(%rip),%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
movsd  %xmm0,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @KValues(double* %0, double* %1, double* %2, double* %3, double %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store double* %3, double** %9
store double %4, double* %10
%11 = load double, double* %10
%12 = call double @llvm.fmuladd.f64(double 0xBFAF30DBEAF7DB18, double %11, double 0xC07614F34D6A161E)
%13 = load double, double* %10
%14 = fdiv double 0x40D55297AE147AE1, %13
%15 = fadd double %12, %14
%16 = load double, double* %10
%17 = call double @log10(double %16)
%18 = call double @llvm.fmuladd.f64(double 0x405FB55E9E1B089A, double %17, double %15)
%19 = load double, double* %10
%20 = load double, double* %10
%21 = fmul double %19, %20
%22 = fdiv double 0x4139B5B300000000, %21
%23 = fsub double %18, %22
%24 = fptosi double %23 to i32
%25 = call double @pow(i32 10, i32 %24)
%26 = load double*, double** %6
store double %25, double* %26
%27 = load double, double* %10
%28 = call double @llvm.fmuladd.f64(double 0xBFA0A7930179FD9D, double %27, double 0xC05A38C63F141206)
%29 = load double, double* %10
%30 = fdiv double 5.151790e+03, %29
%31 = fadd double %28, %30
%32 = load double, double* %10
%33 = call double @log10(double %32)
%34 = call double @llvm.fmuladd.f64(double 0x4043767A63736CDF, double %33, double %31)
%35 = load double, double* %10
%36 = load double, double* %10
%37 = fmul double %35, %36
%38 = fdiv double 0x41213403CCCCCCCD, %37
%39 = fsub double %34, %38
%40 = fptosi double %39 to i32
%41 = call double @pow(i32 10, i32 %40)
%42 = load double*, double** %7
store double %41, double* %42
%43 = load double, double* %10
%44 = fdiv double 4.787300e+03, %43
%45 = fsub double 6.000000e+00, %44
%46 = load double, double* %10
%47 = call double @log10(double %46)
%48 = call double @llvm.fmuladd.f64(double -7.132100e+00, double %47, double %45)
%49 = load double, double* %10
%50 = call double @llvm.fmuladd.f64(double -1.036500e-02, double %49, double %48)
%51 = fadd double %50, 2.280100e+01
%52 = fptosi double %51 to i32
%53 = call double @pow(i32 10, i32 %52)
%54 = load double*, double** %8
store double %53, double* %54
%55 = load double, double* %10
%56 = call double @llvm.fmuladd.f64(double -3.244900e-02, double %55, double 1.525360e+01)
%57 = load double, double* %10
%58 = fdiv double 0x40A2A41374BC6A7F, %57
%59 = fsub double %56, %58
%60 = fptosi double %59 to i32
%61 = call double @pow(i32 10, i32 %60)
%62 = load double*, double** %9
store double %61, double* %62
ret void
}

LLVM IR (-O2):
define void @KValues(double* nocapture writeonly %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double %4) {
%6 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFAF30DBEAF7DB18, double 0xC07614F34D6A161E)
%7 = fdiv double 0x40D55297AE147AE1, %4
%8 = fadd double %6, %7
%9 = tail call double @log10(double %4)
%10 = tail call double @llvm.fmuladd.f64(double %9, double 0x405FB55E9E1B089A, double %8)
%11 = fmul double %4, %4
%12 = fdiv double 0x4139B5B300000000, %11
%13 = fsub double %10, %12
%14 = fptosi double %13 to i32
%15 = tail call double @pow(i32 10, i32 %14)
store double %15, double* %0
%16 = tail call double @llvm.fmuladd.f64(double %4, double 0xBFA0A7930179FD9D, double 0xC05A38C63F141206)
%17 = fdiv double 5.151790e+03, %4
%18 = fadd double %16, %17
%19 = tail call double @log10(double %4)
%20 = tail call double @llvm.fmuladd.f64(double %19, double 0x4043767A63736CDF, double %18)
%21 = fdiv double 0x41213403CCCCCCCD, %11
%22 = fsub double %20, %21
%23 = fptosi double %22 to i32
%24 = tail call double @pow(i32 10, i32 %23)
store double %24, double* %1
%25 = fdiv double 4.787300e+03, %4
%26 = fsub double 6.000000e+00, %25
%27 = tail call double @log10(double %4)
%28 = tail call double @llvm.fmuladd.f64(double %27, double -7.132100e+00, double %26)
%29 = tail call double @llvm.fmuladd.f64(double %4, double -1.036500e-02, double %28)
%30 = fadd double %29, 2.280100e+01
%31 = fptosi double %30 to i32
%32 = tail call double @pow(i32 10, i32 %31)
store double %32, double* %2
%33 = tail call double @llvm.fmuladd.f64(double %4, double -3.244900e-02, double 1.525360e+01)
%34 = fdiv double 0x40A2A41374BC6A7F, %4
%35 = fsub double %33, %34
%36 = fptosi double %35 to i32
%37 = tail call double @pow(i32 10, i32 %36)
store double %37, double* %3
ret void
}