#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*/ font7_generate(char, int **);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int strlen(char *);
void mark_time_label(double font_size, int xr, int yr, double font_color[3],
                     double background_color[3], double start_time,
                     double time_interval, int timestep, int max_len_step,
                     double *image) {
  int i, j, m;
  int start_ys, start_xs, scale, len_step;
  double vv;
  char buf[128], buf1[128], buf2[128], buf3[128];
  int output7[7][7], tmp1, tmp2;
  font_size = 2.5;
  scale = (int)font_size;
  start_xs = 30;
  start_ys = yr - 25;
  vv = start_time + (double)timestep * time_interval;
  tmp1 = (int)vv;
  tmp2 = (int)((vv - (double)tmp1) * 100.0);
  sprintf(buf1, "%d", tmp1);
  len_step = strlen(buf1);
  if (len_step < max_len_step) {
    for (i = 0; i < max_len_step - len_step; i++)
      buf2[i] = ' ';
    for (i = max_len_step - len_step; i < max_len_step; i++)
      buf2[i] = buf1[i - (max_len_step - len_step)];
    buf2[max_len_step] = '\0';
  } else {
    sprintf(buf2, "%s", buf1);
  }
  sprintf(buf3, "%d", tmp2);
  if (strlen(buf3) < 2) {
    buf3[2] = '\0';
    buf3[1] = buf3[0];
    buf3[0] = '0';
  }
  sprintf(buf, "%s%s.%s%s", "T=", buf2, buf3, "s");
  for (m = 0; m < max_len_step + 6; m++) {
    font7_generate(buf[max_len_step + 5 - m], output7);
    for (j = 0; j < 7 * scale; j++)
      for (i = 0; i < 7 * scale; i++) {
        if (output7[6 - (int)(j / scale)][(int)(i / scale)] == 1) {
          image[((start_ys + j) * xr + start_xs - i) * 3] = font_color[0];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 1] = font_color[1];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 2] = font_color[2];
        } else {
          image[((start_ys + j) * xr + start_xs - i) * 3] = background_color[0];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 1] =
              background_color[1];
          image[((start_ys + j) * xr + start_xs - i) * 3 + 2] =
              background_color[2];
        }
      }
    start_xs += 7 * scale;
  }
  return;
}


x86 assembly (clang, -O0):
<mark_time_label>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
movsd  0xe9c(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
cvttsd2si -0x8(%rbp),%eax
mov    %eax,-0x50(%rbp)
movl   $0x1e,-0x4c(%rbp)
mov    -0x10(%rbp),%eax
sub    $0x19,%eax
mov    %eax,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
cvttsd2si -0x60(%rbp),%eax
mov    %eax,-0x334(%rbp)
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0x334(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  0xe37(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x338(%rbp)
lea    -0x160(%rbp),%rdi
mov    -0x334(%rbp),%edx
lea    0xe25(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x160(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1292 <mark_time_label+0x162>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    -0x54(%rbp),%ecx
cmp    %ecx,%eax
jge    123f <mark_time_label+0x10f>
movslq -0x3c(%rbp),%rax
movb   $0x20,-0x1e0(%rbp,%rax,1)
20
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1214 <mark_time_label+0xe4>
mov    -0x38(%rbp),%eax
sub    -0x54(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1281 <mark_time_label+0x151>
mov    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    -0x54(%rbp),%ecx
sub    %ecx,%eax
cltq
mov    -0x160(%rbp,%rax,1),%cl
movslq -0x3c(%rbp),%rax
mov    %cl,-0x1e0(%rbp,%rax,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1248 <mark_time_label+0x118>
movslq -0x38(%rbp),%rax
movb   $0x0,-0x1e0(%rbp,%rax,1)
jmp    12ae <mark_time_label+0x17e>
lea    -0x1e0(%rbp),%rdi
lea    -0x160(%rbp),%rdx
lea    0xd73(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x260(%rbp),%rdi
mov    -0x338(%rbp),%edx
lea    0xd4e(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x260(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x2,%eax
jge    12f8 <mark_time_label+0x1c8>
movb   $0x0,-0x25e(%rbp)
mov    -0x260(%rbp),%al
mov    %al,-0x25f(%rbp)
movb   $0x30,-0x260(%rbp)
lea    -0xe0(%rbp),%rdi
lea    -0x1e0(%rbp),%rcx
lea    -0x260(%rbp),%r8
lea    0xcff(%rip),%rsi
lea    0xd02(%rip),%rdx
lea    0xcf9(%rip),%r9
mov    $0x0,%al
call   1050 <sprintf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x6,%ecx
cmp    %ecx,%eax
jge    1510 <mark_time_label+0x3e0>
mov    -0x38(%rbp),%eax
add    $0x5,%eax
sub    -0x44(%rbp),%eax
cltq
mov    -0xe0(%rbp,%rax,1),%al
lea    -0x330(%rbp),%rsi
movsbl %al,%edi
call   1040 <font7_generate@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
imul   $0x7,-0x50(%rbp),%ecx
cmp    %ecx,%eax
jge    14f8 <mark_time_label+0x3c8>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
imul   $0x7,-0x50(%rbp),%ecx
cmp    %ecx,%eax
jge    14e5 <mark_time_label+0x3b5>
mov    -0x40(%rbp),%eax
cltd
idivl  -0x50(%rbp)
mov    %eax,%ecx
mov    $0x6,%eax
sub    %ecx,%eax
movslq %eax,%rcx
lea    -0x330(%rbp),%rax
imul   $0x1c,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x340(%rbp)
mov    -0x3c(%rbp),%eax
cltd
idivl  -0x50(%rbp)
mov    %eax,%ecx
mov    -0x340(%rbp),%rax
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1455 <mark_time_label+0x325>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    14d2 <mark_time_label+0x3a2>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x4c(%rbp),%ecx
sub    -0x3c(%rbp),%ecx
imul   $0x3,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    14d7 <mark_time_label+0x3a7>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    137f <mark_time_label+0x24f>
jmp    14ea <mark_time_label+0x3ba>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1369 <mark_time_label+0x239>
imul   $0x7,-0x50(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1330 <mark_time_label+0x200>
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mark_time_label>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2e8,%rsp
cvtsi2sd %r8d,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
cvttpd2dq %xmm0,%xmm1
mov    %r9d,%r14d
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,0x8(%rsp)
mov    %rdi,0x18(%rsp)
cvtdq2pd %xmm1,%xmm1
subsd  %xmm1,%xmm0
mulsd  0xe57(%rip),%xmm0
cvttsd2si %xmm0,%r13d
lea    0xe53(%rip),%rsi
lea    0x120(%rsp),%rbp
mov    %rbp,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
cmp    %r14d,%eax
jge    1241 <mark_time_label+0xe1>
mov    %eax,%ebx
mov    %r14d,%ebp
sub    %eax,%ebp
test   %ebp,%ebp
jle    11fe <mark_time_label+0x9e>
mov    %ebx,%edx
not    %edx
add    %r14d,%edx
add    $0x1,%rdx
lea    0xa0(%rsp),%rdi
mov    $0x20,%esi
call   1050 <memset@plt>
test   %ebx,%ebx
jle    1234 <mark_time_label+0xd4>
movslq %ebp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0xa0,%rdi
add    $0x1,%ebp
cmp    %ebp,%r14d
cmovg  %r14d,%ebp
add    %ebp,%ebx
mov    %r14d,%edx
not    %edx
add    %ebx,%edx
add    $0x1,%rdx
lea    0x120(%rsp),%rsi
call   1060 <memcpy@plt>
movslq %r14d,%rax
movb   $0x0,0xa0(%rsp,%rax,1)
jmp    1256 <mark_time_label+0xf6>
lea    0xa0(%rsp),%rdi
lea    0x120(%rsp),%rsi
call   1030 <strcpy@plt>
mov    %r13d,%edx
lea    0xda8(%rip),%rsi
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
cmp    $0x1,%eax
jg     128e <mark_time_label+0x12e>
movb   $0x0,0x22(%rsp)
mov    0x20(%rsp),%al
mov    %al,0x21(%rsp)
movb   $0x30,0x20(%rsp)
lea    0xd76(%rip),%rsi
lea    0xd79(%rip),%rdx
lea    0xd70(%rip),%r9
lea    0x1a0(%rsp),%rdi
lea    0xa0(%rsp),%rcx
lea    0x20(%rsp),%r8
xor    %eax,%eax
call   1080 <sprintf@plt>
cmp    $0xfffffffb,%r14d
jl     13d4 <mark_time_label+0x274>
mov    %r14,%rax
mov    0x320(%rsp),%rbp
mov    0x8(%rsp),%rcx
add    $0xffffffe7,%ecx
lea    0x5(%r14),%edx
mov    %edx,0x14(%rsp)
add    $0x6,%eax
mov    %rax,0x8(%rsp)
mov    0x18(%rsp),%rax
imul   %eax,%ecx
lea    (%rcx,%rcx,2),%r9d
add    $0x5a,%r9d
lea    (%rax,%rax,2),%r14d
xor    %r13d,%r13d
jmp    1323 <mark_time_label+0x1c3>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13
add    $0x2a,%r9d
cmp    0x8(%rsp),%r13
je     13d4 <mark_time_label+0x274>
mov    0x14(%rsp),%eax
sub    %r13d,%eax
cltq
movsbl 0x1a0(%rsp,%rax,1),%edi
lea    0x220(%rsp),%rsi
mov    %r9d,%ebx
call   1070 <font7_generate@plt>
mov    %ebx,%r9d
mov    %ebx,%r8d
xor    %ecx,%ecx
jmp    135b <mark_time_label+0x1fb>
xchg   %ax,%ax
add    $0x1,%ecx
add    %r14d,%r8d
cmp    $0xe,%ecx
je     1310 <mark_time_label+0x1b0>
mov    %ecx,%esi
shr    %esi
mov    $0x6,%edx
sub    %esi,%edx
mov    %r8d,%esi
xor    %eax,%eax
jmp    13ac <mark_time_label+0x24c>
nopl   (%rax)
movsd  (%rbx),%xmm0
movslq %esi,%rsi
movsd  %xmm0,0x0(%rbp,%rsi,8)
movsd  0x8(%rbx),%xmm0
lea    0x1(%rsi),%edi
movslq %edi,%rdi
movsd  %xmm0,0x0(%rbp,%rdi,8)
movsd  0x10(%rbx),%xmm0
lea    0x2(%rsi),%edi
movslq %edi,%rdi
movsd  %xmm0,0x0(%rbp,%rdi,8)
add    $0x1,%rax
add    $0xfffffffd,%esi
cmp    $0xe,%rax
je     1350 <mark_time_label+0x1f0>
lea    (%rdx,%rdx,8),%rbx
lea    (%rbx,%rbx,2),%rbx
add    %rdx,%rbx
add    %rsp,%rbx
add    $0x220,%rbx
mov    %eax,%edi
and    $0xfffffffe,%edi
cmpl   $0x1,(%rbx,%rdi,2)
mov    %r12,%rbx
je     1370 <mark_time_label+0x210>
mov    %r15,%rbx
jmp    1370 <mark_time_label+0x210>
add    $0x2e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [10 x i8] c"%s%s.%s%s\00"
@.str.3 = [3 x i8] c"T=\00"
@.str.4 = [2 x i8] c"s\00"
define void @mark_time_label(double %0, i32 %1, i32 %2, double* %3, double* %4, double %5, double %6, i32 %7, i32 %8, double* %9) {
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca double
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca double
%29 = alloca [128 x i8]
%30 = alloca [128 x i8]
%31 = alloca [128 x i8]
%32 = alloca [128 x i8]
%33 = alloca [7 x [7 x i32]]
%34 = alloca i32
%35 = alloca i32
store double %0, double* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store double* %3, double** %14
store double* %4, double** %15
store double %5, double* %16
store double %6, double* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
store double* %9, double** %20
store double 2.500000e+00, double* %11
%36 = load double, double* %11
%37 = fptosi double %36 to i32
store i32 %37, i32* %26
store i32 30, i32* %25
%38 = load i32, i32* %13
%39 = sub nsw i32 %38, 25
store i32 %39, i32* %24
%40 = load double, double* %16
%41 = load i32, i32* %18
%42 = sitofp i32 %41 to double
%43 = load double, double* %17
%44 = call double @llvm.fmuladd.f64(double %42, double %43, double %40)
store double %44, double* %28
%45 = load double, double* %28
%46 = fptosi double %45 to i32
store i32 %46, i32* %34
%47 = load double, double* %28
%48 = load i32, i32* %34
%49 = sitofp i32 %48 to double
%50 = fsub double %47, %49
%51 = fmul double %50, 1.000000e+02
%52 = fptosi double %51 to i32
store i32 %52, i32* %35
%53 = getelementptr inbounds [128 x i8], [128 x i8]* %30, i64 0, i64 0
%54 = load i32, i32* %34
%55 = call i32 (i8*, i8*, ...) @sprintf(i8* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [128 x i8], [128 x i8]* %30, i64 0, i64 0
%57 = call i32 @strlen(i8* %56)
store i32 %57, i32* %27
%58 = load i32, i32* %27
%59 = load i32, i32* %19
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %102
61: ; preds = %10
store i32 0, i32* %21
br label %62
62: ; preds = %72, %61
%63 = load i32, i32* %21
%64 = load i32, i32* %19
%65 = load i32, i32* %27
%66 = sub nsw i32 %64, %65
%67 = icmp slt i32 %63, %66
br i1 %67, label %68, label %75
68: ; preds = %62
%69 = load i32, i32* %21
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [128 x i8], [128 x i8]* %31, i64 0, i64 %70
store i8 32, i8* %71
br label %72
72: ; preds = %68
%73 = load i32, i32* %21
%74 = add nsw i32 %73, 1
store i32 %74, i32* %21
br label %62
75: ; preds = %62
%76 = load i32, i32* %19
%77 = load i32, i32* %27
%78 = sub nsw i32 %76, %77
store i32 %78, i32* %21
br label %79
79: ; preds = %95, %75
%80 = load i32, i32* %21
%81 = load i32, i32* %19
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %98
83: ; preds = %79
%84 = load i32, i32* %21
%85 = load i32, i32* %19
%86 = load i32, i32* %27
%87 = sub nsw i32 %85, %86
%88 = sub nsw i32 %84, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [128 x i8], [128 x i8]* %30, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = load i32, i32* %21
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [128 x i8], [128 x i8]* %31, i64 0, i64 %93
store i8 %91, i8* %94
br label %95
95: ; preds = %83
%96 = load i32, i32* %21
%97 = add nsw i32 %96, 1
store i32 %97, i32* %21
br label %79
98: ; preds = %79
%99 = load i32, i32* %19
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [128 x i8], [128 x i8]* %31, i64 0, i64 %100
store i8 0, i8* %101
br label %106
102: ; preds = %10
%103 = getelementptr inbounds [128 x i8], [128 x i8]* %31, i64 0, i64 0
%104 = getelementptr inbounds [128 x i8], [128 x i8]* %30, i64 0, i64 0
%105 = call i32 (i8*, i8*, ...) @sprintf(i8* %103, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %104)
br label %106
106: ; preds = %102, %98
%107 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 0
%108 = load i32, i32* %35
%109 = call i32 (i8*, i8*, ...) @sprintf(i8* %107, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %108)
%110 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 0
%111 = call i32 @strlen(i8* %110)
%112 = icmp slt i32 %111, 2
br i1 %112, label %113, label %119
113: ; preds = %106
%114 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 2
store i8 0, i8* %114
%115 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 0
%116 = load i8, i8* %115
%117 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 1
store i8 %116, i8* %117
%118 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 0
store i8 48, i8* %118
br label %119
119: ; preds = %113, %106
%120 = getelementptr inbounds [128 x i8], [128 x i8]* %29, i64 0, i64 0
%121 = getelementptr inbounds [128 x i8], [128 x i8]* %31, i64 0, i64 0
%122 = getelementptr inbounds [128 x i8], [128 x i8]* %32, i64 0, i64 0
%123 = call i32 (i8*, i8*, ...) @sprintf(i8* %120, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %121, i8* %122, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %23
br label %124
124: ; preds = %280, %119
%125 = load i32, i32* %23
%126 = load i32, i32* %19
%127 = add nsw i32 %126, 6
%128 = icmp slt i32 %125, %127
br i1 %128, label %129, label %283
129: ; preds = %124
%130 = load i32, i32* %19
%131 = add nsw i32 %130, 5
%132 = load i32, i32* %23
%133 = sub nsw i32 %131, %132
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [128 x i8], [128 x i8]* %29, i64 0, i64 %134
%136 = load i8, i8* %135
%137 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %33, i64 0, i64 0
%138 = bitcast [7 x i32]* %137 to i32**
%139 = call i32 @font7_generate(i8 signext %136, i32** %138)
store i32 0, i32* %22
br label %140
140: ; preds = %272, %129
%141 = load i32, i32* %22
%142 = load i32, i32* %26
%143 = mul nsw i32 7, %142
%144 = icmp slt i32 %141, %143
br i1 %144, label %145, label %275
145: ; preds = %140
store i32 0, i32* %21
br label %146
146: ; preds = %268, %145
%147 = load i32, i32* %21
%148 = load i32, i32* %26
%149 = mul nsw i32 7, %148
%150 = icmp slt i32 %147, %149
br i1 %150, label %151, label %271
151: ; preds = %146
%152 = load i32, i32* %22
%153 = load i32, i32* %26
%154 = sdiv i32 %152, %153
%155 = sub nsw i32 6, %154
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %33, i64 0, i64 %156
%158 = load i32, i32* %21
%159 = load i32, i32* %26
%160 = sdiv i32 %158, %159
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [7 x i32], [7 x i32]* %157, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = icmp eq i32 %163, 1
br i1 %164, label %165, label %216
165: ; preds = %151
%166 = load double*, double** %14
%167 = getelementptr inbounds double, double* %166, i64 0
%168 = load double, double* %167
%169 = load double*, double** %20
%170 = load i32, i32* %24
%171 = load i32, i32* %22
%172 = add nsw i32 %170, %171
%173 = load i32, i32* %12
%174 = mul nsw i32 %172, %173
%175 = load i32, i32* %25
%176 = add nsw i32 %174, %175
%177 = load i32, i32* %21
%178 = sub nsw i32 %176, %177
%179 = mul nsw i32 %178, 3
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, double* %169, i64 %180
store double %168, double* %181
%182 = load double*, double** %14
%183 = getelementptr inbounds double, double* %182, i64 1
%184 = load double, double* %183
%185 = load double*, double** %20
%186 = load i32, i32* %24
%187 = load i32, i32* %22
%188 = add nsw i32 %186, %187
%189 = load i32, i32* %12
%190 = mul nsw i32 %188, %189
%191 = load i32, i32* %25
%192 = add nsw i32 %190, %191
%193 = load i32, i32* %21
%194 = sub nsw i32 %192, %193
%195 = mul nsw i32 %194, 3
%196 = add nsw i32 %195, 1
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, double* %185, i64 %197
store double %184, double* %198
%199 = load double*, double** %14
%200 = getelementptr inbounds double, double* %199, i64 2
%201 = load double, double* %200
%202 = load double*, double** %20
%203 = load i32, i32* %24
%204 = load i32, i32* %22
%205 = add nsw i32 %203, %204
%206 = load i32, i32* %12
%207 = mul nsw i32 %205, %206
%208 = load i32, i32* %25
%209 = add nsw i32 %207, %208
%210 = load i32, i32* %21
%211 = sub nsw i32 %209, %210
%212 = mul nsw i32 %211, 3
%213 = add nsw i32 %212, 2
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, double* %202, i64 %214
store double %201, double* %215
br label %267
216: ; preds = %151
%217 = load double*, double** %15
%218 = getelementptr inbounds double, double* %217, i64 0
%219 = load double, double* %218
%220 = load double*, double** %20
%221 = load i32, i32* %24
%222 = load i32, i32* %22
%223 = add nsw i32 %221, %222
%224 = load i32, i32* %12
%225 = mul nsw i32 %223, %224
%226 = load i32, i32* %25
%227 = add nsw i32 %225, %226
%228 = load i32, i32* %21
%229 = sub nsw i32 %227, %228
%230 = mul nsw i32 %229, 3
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double, double* %220, i64 %231
store double %219, double* %232
%233 = load double*, double** %15
%234 = getelementptr inbounds double, double* %233, i64 1
%235 = load double, double* %234
%236 = load double*, double** %20
%237 = load i32, i32* %24
%238 = load i32, i32* %22
%239 = add nsw i32 %237, %238
%240 = load i32, i32* %12
%241 = mul nsw i32 %239, %240
%242 = load i32, i32* %25
%243 = add nsw i32 %241, %242
%244 = load i32, i32* %21
%245 = sub nsw i32 %243, %244
%246 = mul nsw i32 %245, 3
%247 = add nsw i32 %246, 1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double, double* %236, i64 %248
store double %235, double* %249
%250 = load double*, double** %15
%251 = getelementptr inbounds double, double* %250, i64 2
%252 = load double, double* %251
%253 = load double*, double** %20
%254 = load i32, i32* %24
%255 = load i32, i32* %22
%256 = add nsw i32 %254, %255
%257 = load i32, i32* %12
%258 = mul nsw i32 %256, %257
%259 = load i32, i32* %25
%260 = add nsw i32 %258, %259
%261 = load i32, i32* %21
%262 = sub nsw i32 %260, %261
%263 = mul nsw i32 %262, 3
%264 = add nsw i32 %263, 2
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, double* %253, i64 %265
store double %252, double* %266
br label %267
267: ; preds = %216, %165
br label %268
268: ; preds = %267
%269 = load i32, i32* %21
%270 = add nsw i32 %269, 1
store i32 %270, i32* %21
br label %146
271: ; preds = %146
br label %272
272: ; preds = %271
%273 = load i32, i32* %22
%274 = add nsw i32 %273, 1
store i32 %274, i32* %22
br label %140
275: ; preds = %140
%276 = load i32, i32* %26
%277 = mul nsw i32 7, %276
%278 = load i32, i32* %25
%279 = add nsw i32 %278, %277
store i32 %279, i32* %25
br label %280
280: ; preds = %275
%281 = load i32, i32* %23
%282 = add nsw i32 %281, 1
store i32 %282, i32* %23
br label %124
283: ; preds = %124
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"%s%s.%s%s\00"
@.str.3 = [3 x i8] c"T=\00"
@.str.4 = [2 x i8] c"s\00"
define void @mark_time_label(double %0, i32 %1, i32 %2, double* nocapture %3, double* nocapture %4, double %5, double %6, i32 %7, i32 %8, double* nocapture writeonly %9) {
%11 = alloca [128 x i8]
%12 = alloca [128 x i8]
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%14 = alloca [128 x i8]
%15 = getelementptr inbounds [128 x i8], [128 x i8]* %14, i64 0, i64 0
%16 = alloca [128 x i8]
%17 = alloca [7 x [7 x i32]]
%18 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%19 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%20 = getelementptr inbounds [128 x i8], [128 x i8]* %14, i64 0, i64 0
%21 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%22 = bitcast [7 x [7 x i32]]* %17 to i8*
%23 = add nsw i32 %2, -25
%24 = sitofp i32 %7 to double
%25 = tail call double @llvm.fmuladd.f64(double %24, double %6, double %5)
%26 = fptosi double %25 to i32
%27 = sitofp i32 %26 to double
%28 = fsub double %25, %27
%29 = fmul double %28, 1.000000e+02
%30 = fptosi double %29 to i32
%31 = call i32 (i8*, i8*, ...) @sprintf(i8* %19, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %26)
%32 = call i32 @strlen(i8* %19)
%33 = icmp slt i32 %32, %8
br i1 %33, label %34, label %58
34: ; preds = %10
%35 = sub i32 %8, %32
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = xor i32 %32, -1
%39 = add i32 %38, %8
%40 = zext i32 %39 to i64
%41 = add nuw nsw i64 %40, 1
br label %42
42: ; preds = %37, %34
%43 = icmp sgt i32 %32, 0
br i1 %43, label %44, label %55
44: ; preds = %42
%45 = sext i32 %35 to i64
%46 = getelementptr [128 x i8], [128 x i8]* %14, i64 0, i64 %45
%47 = add i32 %8, 1
%48 = sub i32 %47, %32
%49 = call i32 @llvm.smax.i32(i32 %8, i32 %48)
%50 = add i32 %32, %49
%51 = xor i32 %8, -1
%52 = add i32 %50, %51
%53 = zext i32 %52 to i64
%54 = add nuw nsw i64 %53, 1
br label %55
55: ; preds = %44, %42
%56 = sext i32 %8 to i64
%57 = getelementptr inbounds [128 x i8], [128 x i8]* %14, i64 0, i64 %56
store i8 0, i8* %57
br label %60
58: ; preds = %10
%59 = call i8* @strcpy(i8* %20, i8* %19)
br label %60
60: ; preds = %58, %55
%61 = call i32 (i8*, i8*, ...) @sprintf(i8* %21, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %30)
%62 = call i32 @strlen(i8* %21)
%63 = icmp slt i32 %62, 2
br i1 %63, label %64, label %68
64: ; preds = %60
%65 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 2
store i8 0, i8* %65
%66 = load i8, i8* %21
%67 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 1
store i8 %66, i8* %67
store i8 48, i8* %21
br label %68
68: ; preds = %64, %60
%69 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %20, i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%70 = icmp sgt i32 %8, -6
br i1 %70, label %71, label %130
71: ; preds = %68
%72 = add nsw i32 %8, 5
%73 = bitcast [7 x [7 x i32]]* %17 to i32**
%74 = add i32 %8, 6
%75 = zext i32 %74 to i64
br label %76
76: ; preds = %71, %126
%77 = phi i64 [ 0, %71 ], [ %128, %126 ]
%78 = phi i32 [ 30, %71 ], [ %127, %126 ]
%79 = trunc i64 %77 to i32
%80 = sub i32 %72, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 %81
%83 = load i8, i8* %82
%84 = call i32 @font7_generate(i8 signext %83, i32** %73)
br label %85
85: ; preds = %76, %123
%86 = phi i32 [ 0, %76 ], [ %124, %123 ]
%87 = lshr i32 %86, 1
%88 = sub nsw i32 6, %87
%89 = zext i32 %88 to i64
%90 = add nsw i32 %86, %23
%91 = mul nsw i32 %90, %1
%92 = add nsw i32 %91, %78
br label %93
93: ; preds = %85, %93
%94 = phi i64 [ 0, %85 ], [ %120, %93 ]
%95 = phi i64 [ 0, %85 ], [ %121, %93 ]
%96 = lshr i64 %94, 1
%97 = and i64 %96, 2147483647
%98 = getelementptr inbounds [7 x [7 x i32]], [7 x [7 x i32]]* %17, i64 0, i64 %89, i64 %97
%99 = load i32, i32* %98
%100 = icmp eq i32 %99, 1
%101 = select i1 %100, double* %3, double* %4
%102 = select i1 %100, double* %3, double* %4
%103 = getelementptr inbounds double, double* %102, i64 1
%104 = select i1 %100, double* %3, double* %4
%105 = getelementptr inbounds double, double* %104, i64 2
%106 = load double, double* %101
%107 = trunc i64 %95 to i32
%108 = add i32 %92, %107
%109 = mul nsw i32 %108, 3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %9, i64 %110
store double %106, double* %111
%112 = load double, double* %103
%113 = add nsw i32 %109, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %9, i64 %114
store double %112, double* %115
%116 = load double, double* %105
%117 = add nsw i32 %109, 2
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %9, i64 %118
store double %116, double* %119
%120 = add nuw nsw i64 %94, 1
%121 = add nsw i64 %95, -1
%122 = icmp eq i64 %120, 14
br i1 %122, label %123, label %93
123: ; preds = %93
%124 = add nuw nsw i32 %86, 1
%125 = icmp eq i32 %124, 14
br i1 %125, label %126, label %85
126: ; preds = %123
%127 = add nuw nsw i32 %78, 14
%128 = add nuw nsw i64 %77, 1
%129 = icmp eq i64 %128, %75
br i1 %129, label %130, label %76
130: ; preds = %126, %68
ret void
}