#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 floor(double);
void septime(double t, double *t1, double *t2, double *t3) {
  *t1 = floor(t / 10000.0);
  t -= *t1 * 10000.0;
  *t2 = floor(t / 100.0);
  *t3 = t - *t2 * 100.0;
}


x86 assembly (clang, -O0):
<septime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed2(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <floor@plt>
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe95(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe73(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <floor@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x8(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe36(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<septime>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movsd  %xmm0,0x8(%rsp)
divsd  0xed0(%rip),%xmm0
call   1030 <floor@plt>
movsd  %xmm0,(%rbx)
mulsd  0xebf(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
divsd  0xeab(%rip),%xmm0
call   1030 <floor@plt>
movsd  %xmm0,(%r15)
mulsd  0xe99(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @septime(double %0, double* %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
store double %0, double* %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%9 = load double, double* %5
%10 = fdiv double %9, 1.000000e+04
%11 = call double @llvm.floor.f64(double %10)
%12 = load double*, double** %6
store double %11, double* %12
%13 = load double*, double** %6
%14 = load double, double* %13
%15 = load double, double* %5
%16 = fneg double %14
%17 = call double @llvm.fmuladd.f64(double %16, double 1.000000e+04, double %15)
store double %17, double* %5
%18 = load double, double* %5
%19 = fdiv double %18, 1.000000e+02
%20 = call double @llvm.floor.f64(double %19)
%21 = load double*, double** %7
store double %20, double* %21
%22 = load double, double* %5
%23 = load double*, double** %7
%24 = load double, double* %23
%25 = fneg double %24
%26 = call double @llvm.fmuladd.f64(double %25, double 1.000000e+02, double %22)
%27 = load double*, double** %8
store double %26, double* %27
ret void
}

LLVM IR (-O2):
define void @septime(double %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = fdiv double %0, 1.000000e+04
%6 = tail call double @llvm.floor.f64(double %5)
store double %6, double* %1
%7 = fneg double %6
%8 = tail call double @llvm.fmuladd.f64(double %7, double 1.000000e+04, double %0)
%9 = fdiv double %8, 1.000000e+02
%10 = tail call double @llvm.floor.f64(double %9)
store double %10, double* %2
%11 = fneg double %10
%12 = tail call double @llvm.fmuladd.f64(double %11, double 1.000000e+02, double %8)
store double %12, double* %3
ret void
}