#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 measure_plaquette_sf_iwasaki(int, double, double, double);
double measure_rectangle_sf_iwasaki(int, double, double, double, double);
double measure_iwasaki_action_sf(int t, double beta, double cs, double ct,
                                 double c0, double c1, double c1_ss,
                                 double c1_tss, double c1_tts) {
  double plaquette;
  double rectangle;
  double iwasaki;
  plaquette = measure_plaquette_sf_iwasaki(t, cs, ct, c0);
  rectangle = measure_rectangle_sf_iwasaki(t, c1, c1_ss, c1_tss, c1_tts);
  iwasaki = -(beta / (2. * 3.)) * (plaquette + rectangle);
  return iwasaki;
}


x86 assembly (clang, -O0):
<measure_iwasaki_action_sf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%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)
movsd  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
mov    -0x4(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
call   1040 <measure_plaquette_sf_iwasaki@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x4(%rbp),%edi
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
call   1030 <measure_rectangle_sf_iwasaki@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe63(%rip),%xmm1
divsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x50(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<measure_iwasaki_action_sf>:
push   %rbx
sub    $0x30,%rsp
movsd  %xmm7,0x28(%rsp)
movsd  %xmm6,0x20(%rsp)
movsd  %xmm5,0x10(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %edi,%ebx
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
movaps %xmm3,%xmm2
call   1040 <measure_plaquette_sf_iwasaki@plt>
movsd  %xmm0,(%rsp)
mov    %ebx,%edi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   1030 <measure_rectangle_sf_iwasaki@plt>
movsd  0x18(%rsp),%xmm1
divsd  0xe7b(%rip),%xmm1
addsd  (%rsp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @measure_iwasaki_action_sf(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %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 double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = 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 double %7, double* %17
store double %8, double* %18
%22 = load i32, i32* %10
%23 = load double, double* %12
%24 = load double, double* %13
%25 = load double, double* %14
%26 = call double @measure_plaquette_sf_iwasaki(i32 %22, double %23, double %24, double %25)
store double %26, double* %19
%27 = load i32, i32* %10
%28 = load double, double* %15
%29 = load double, double* %16
%30 = load double, double* %17
%31 = load double, double* %18
%32 = call double @measure_rectangle_sf_iwasaki(i32 %27, double %28, double %29, double %30, double %31)
store double %32, double* %20
%33 = load double, double* %11
%34 = fdiv double %33, 6.000000e+00
%35 = fneg double %34
%36 = load double, double* %19
%37 = load double, double* %20
%38 = fadd double %36, %37
%39 = fmul double %35, %38
store double %39, double* %21
%40 = load double, double* %21
ret double %40
}

LLVM IR (-O2):
define double @measure_iwasaki_action_sf(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = tail call double @measure_plaquette_sf_iwasaki(i32 %0, double %2, double %3, double %4)
%11 = tail call double @measure_rectangle_sf_iwasaki(i32 %0, double %5, double %6, double %7, double %8)
%12 = fdiv double %1, -6.000000e+00
%13 = fadd double %10, %11
%14 = fmul double %12, %13
ret double %14
}