#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*/ EXIT_FAILURE;
double atof(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int floor(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, int, ...);
int /*<<< orphan*/ stderr;
int timing_rom_byte(int, int);
int main(int argc, char **argv) {
  int count;
  int col;
  double clock;
  int horSyncTicks;
  int lineTicks;
  int fieldTicks;
  int frontporchTicks;
  int backporchTicks;
  if (argc != 2) {
    fprintf(stderr, "usage: %s timingclock\n", argv[0]);
    fprintf(stderr, "timingclock is specified in megahertz\n");
    exit(EXIT_FAILURE);
  }
  clock = atof(argv[1]);
  fieldTicks = floor(clock * 1000000.0 / 60 + 0.5);
  lineTicks = floor((double)fieldTicks / 262 + 0.5);
  horSyncTicks = floor(lineTicks * .08 + 0.5);
  frontporchTicks = lineTicks * .02;
  backporchTicks = lineTicks * .02;
  if (0)
    printf("clock = %f, fieldTicks = %d, lineTicks = %d, horSyncTicks = %d\n",
           clock, fieldTicks, lineTicks, horSyncTicks);
  printf("%d %d\n", lineTicks, 262);
  printf("%d %d\n", lineTicks - horSyncTicks, (262 - 15 - 3 - 3 * 2));
  printf("%d %d %d %d\n", backporchTicks, 0,
         lineTicks - horSyncTicks - frontporchTicks - backporchTicks,
         (262 - 15 - 3 - 3 * 2));
  for (count = 0; count < 3; count++)
    for (col = 0; col < lineTicks; col++) {
      int sync = (col < horSyncTicks ||
                  (col > lineTicks / 2 && col < lineTicks / 2 + horSyncTicks));
      int blank = 1;
      printf("%d ", timing_rom_byte(sync, blank));
    }
  for (count = 0; count < 3; count++)
    for (col = 0; col < lineTicks; col++) {
      int sync = (col < lineTicks / 2 - horSyncTicks ||
                  (col > lineTicks / 2 && col < 210));
      int blank = 1;
      printf("%d ", timing_rom_byte(sync, blank));
    }
  for (count = 0; count < 3; count++)
    for (col = 0; col < lineTicks; col++) {
      int sync = (col < horSyncTicks ||
                  (col > lineTicks / 2 && col < lineTicks / 2 + horSyncTicks));
      int blank = 1;
      printf("%d ", timing_rom_byte(sync, blank));
    }
  for (count = 0; count < 15; count++)
    for (col = 0; col < lineTicks; col++) {
      int sync = (col < horSyncTicks);
      int blank = 1;
      printf("%d ", timing_rom_byte(sync, blank));
    }
  for (count = 0; count < (262 - 15 - 3 - 3 * 2); count++)
    for (col = 0; col < lineTicks; col++) {
      int sync = (col < horSyncTicks);
      int blank = sync;
      printf("%d ", timing_rom_byte(sync, blank));
    }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11c3 <main+0x63>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe99(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
lea    0xe99(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xe4b(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xe36(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe1a(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x2c(%rbp)
cvtsi2sdl -0x2c(%rbp),%xmm0
movsd  0xe05(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xdf1(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x28(%rbp)
cvtsi2sdl -0x28(%rbp),%xmm0
movsd  0xdcc(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdc8(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,-0x24(%rbp)
cvtsi2sdl -0x28(%rbp),%xmm0
movsd  0xd9b(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x30(%rbp)
cvtsi2sdl -0x28(%rbp),%xmm0
movsd  0xd83(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%esi
lea    0xde2(%rip),%rdi
mov    $0x106,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%esi
sub    -0x24(%rbp),%esi
lea    0xdc9(%rip),%rdi
mov    $0xee,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x34(%rbp),%esi
mov    -0x28(%rbp),%ecx
sub    -0x24(%rbp),%ecx
sub    -0x30(%rbp),%ecx
sub    -0x34(%rbp),%ecx
lea    0xda1(%rip),%rdi
xor    %edx,%edx
mov    $0xee,%r8d
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    13a3 <main+0x243>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1390 <main+0x230>
mov    -0x18(%rbp),%ecx
mov    $0x1,%al
cmp    -0x24(%rbp),%ecx
mov    %al,-0x5d(%rbp)
jl     1355 <main+0x1f5>
mov    -0x18(%rbp),%ecx
mov    -0x28(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x5e(%rbp)
jle    134f <main+0x1ef>
mov    -0x18(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x64(%rbp),%eax
add    -0x24(%rbp),%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x5e(%rbp)
mov    -0x5e(%rbp),%al
mov    %al,-0x5d(%rbp)
mov    -0x5d(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1040 <timing_rom_byte@plt>
mov    %eax,%esi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12f4 <main+0x194>
jmp    1395 <main+0x235>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e3 <main+0x183>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    1465 <main+0x305>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1452 <main+0x2f2>
mov    -0x18(%rbp),%ecx
mov    -0x28(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
sub    -0x24(%rbp),%edx
mov    $0x1,%al
cmp    %edx,%ecx
mov    %al,-0x65(%rbp)
jl     1417 <main+0x2b7>
mov    -0x18(%rbp),%ecx
mov    -0x28(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x66(%rbp)
jle    1411 <main+0x2b1>
cmpl   $0xd2,-0x18(%rbp)
setl   %al
mov    %al,-0x66(%rbp)
mov    -0x66(%rbp),%al
mov    %al,-0x65(%rbp)
mov    -0x65(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x44(%rbp),%esi
call   1040 <timing_rom_byte@plt>
mov    %eax,%esi
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13bb <main+0x25b>
jmp    1457 <main+0x2f7>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13aa <main+0x24a>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    152c <main+0x3cc>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1519 <main+0x3b9>
mov    -0x18(%rbp),%ecx
mov    $0x1,%al
cmp    -0x24(%rbp),%ecx
mov    %al,-0x67(%rbp)
jl     14de <main+0x37e>
mov    -0x18(%rbp),%ecx
mov    -0x28(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x68(%rbp)
jle    14d8 <main+0x378>
mov    -0x18(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x28(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
add    -0x24(%rbp),%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x68(%rbp)
mov    -0x68(%rbp),%al
mov    %al,-0x67(%rbp)
mov    -0x67(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x48(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1040 <timing_rom_byte@plt>
mov    %eax,%esi
lea    0xb77(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    147d <main+0x31d>
jmp    151e <main+0x3be>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    146c <main+0x30c>
movl   $0x0,-0x14(%rbp)
cmpl   $0xf,-0x14(%rbp)
jge    15a4 <main+0x444>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1591 <main+0x431>
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x50(%rbp)
movl   $0x1,-0x54(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1040 <timing_rom_byte@plt>
mov    %eax,%esi
lea    0xaff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1544 <main+0x3e4>
jmp    1596 <main+0x436>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1533 <main+0x3d3>
movl   $0x0,-0x14(%rbp)
cmpl   $0xee,-0x14(%rbp)
jge    161e <main+0x4be>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    160b <main+0x4ab>
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x5c(%rbp),%esi
call   1040 <timing_rom_byte@plt>
mov    %eax,%esi
lea    0xa85(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15bf <main+0x45f>
jmp    1610 <main+0x4b0>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    15ab <main+0x44b>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1617 <main+0x4b7>
mov    0x8(%rsi),%rdi
call   1030 <atof@plt>
mulsd  0xe7b(%rip),%xmm0
divsd  0xe7b(%rip),%xmm0
addsd  0xe7b(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe6b(%rip),%xmm0
addsd  0xe5b(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,%r13d
cvtsi2sd %eax,%xmm1
movsd  %xmm1,(%rsp)
movsd  0xe4e(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe32(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1080 <floor@plt>
mov    %eax,%r14d
movsd  (%rsp),%xmm0
mulsd  0xe31(%rip),%xmm0
cvttsd2si %xmm0,%r12d
lea    0xe71(%rip),%r15
mov    %r15,%rdi
mov    %r13d,%esi
mov    $0x106,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13d,%ebx
sub    %r14d,%ebx
mov    %r15,%rdi
mov    %ebx,%esi
mov    $0xee,%edx
xor    %eax,%eax
call   1050 <printf@plt>
sub    %r12d,%ebx
sub    %r12d,%ebx
lea    0xe35(%rip),%rdi
mov    %r12d,%esi
xor    %edx,%edx
mov    %ebx,%ecx
mov    $0xee,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
mov    %r13d,%r15d
shr    $0x1f,%r15d
add    %r13d,%r15d
sar    %r15d
lea    (%r15,%r14,1),%r12d
lea    0xe0d(%rip),%rbx
xor    %ebp,%ebp
jmp    12a1 <main+0x141>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     12b8 <main+0x158>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     1280 <main+0x120>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    1280 <main+0x120>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
lea    0xdb3(%rip),%rbx
xor    %ebp,%ebp
jmp    12f1 <main+0x191>
nopl   0x0(%rax)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     1308 <main+0x1a8>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     12d0 <main+0x170>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    12d0 <main+0x170>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
lea    0xd63(%rip),%rbx
xor    %ebp,%ebp
jmp    1341 <main+0x1e1>
nopl   0x0(%rax)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     1358 <main+0x1f8>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     1320 <main+0x1c0>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    1320 <main+0x1c0>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
mov    %r15d,%ebx
sub    %r14d,%ebx
xor    %ebp,%ebp
jmp    1395 <main+0x235>
nopl   0x0(%rax,%rax,1)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
lea    0xcf7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     13ae <main+0x24e>
mov    $0x1,%al
cmp    %ebx,%ebp
jl     1370 <main+0x210>
cmp    %r15d,%ebp
setg   %cl
cmp    $0xd2,%ebp
setb   %al
and    %cl,%al
jmp    1370 <main+0x210>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
xor    %ebp,%ebp
jmp    13e5 <main+0x285>
nopl   0x0(%rax,%rax,1)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
lea    0xca7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     13fe <main+0x29e>
mov    $0x1,%al
cmp    %ebx,%ebp
jl     13c0 <main+0x260>
cmp    %r15d,%ebp
setg   %cl
cmp    $0xd2,%ebp
setb   %al
and    %cl,%al
jmp    13c0 <main+0x260>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
xor    %ebp,%ebp
jmp    1435 <main+0x2d5>
nopl   0x0(%rax,%rax,1)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
lea    0xc57(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     144e <main+0x2ee>
mov    $0x1,%al
cmp    %ebx,%ebp
jl     1410 <main+0x2b0>
cmp    %r15d,%ebp
setg   %cl
cmp    $0xd2,%ebp
setb   %al
and    %cl,%al
jmp    1410 <main+0x2b0>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
lea    0xc1d(%rip),%rbx
xor    %ebp,%ebp
jmp    1491 <main+0x331>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     14a8 <main+0x348>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     1470 <main+0x310>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    1470 <main+0x310>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
lea    0xbc3(%rip),%rbx
xor    %ebp,%ebp
jmp    14e1 <main+0x381>
nopl   0x0(%rax)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     14f8 <main+0x398>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     14c0 <main+0x360>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    14c0 <main+0x360>
test   %r13d,%r13d
jle    1548 <main+0x3e8>
lea    0xb77(%rip),%rbx
xor    %ebp,%ebp
jmp    1531 <main+0x3d1>
nopl   0x0(%rax,%rax,1)
movzbl %al,%edi
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
je     1548 <main+0x3e8>
mov    $0x1,%al
cmp    %r14d,%ebp
jl     1510 <main+0x3b0>
cmp    %r15d,%ebp
setg   %cl
cmp    %r12d,%ebp
setl   %al
and    %cl,%al
jmp    1510 <main+0x3b0>
lea    0xb2c(%rip),%rbx
xor    %r15d,%r15d
jmp    156a <main+0x40a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r15d
cmp    $0xf,%r15d
je     15a9 <main+0x449>
test   %r13d,%r13d
jle    1560 <main+0x400>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
cmp    %r14d,%ebp
setl   %dil
mov    $0x1,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1580 <main+0x420>
jmp    1560 <main+0x400>
lea    0xacb(%rip),%rbx
xor    %r15d,%r15d
jmp    15cd <main+0x46d>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r15d
cmp    $0xee,%r15d
je     1606 <main+0x4a6>
test   %r13d,%r13d
jle    15c0 <main+0x460>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %edi,%edi
cmp    %r14d,%ebp
setl   %dil
mov    %edi,%esi
call   1040 <timing_rom_byte@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    15e0 <main+0x480>
jmp    15c0 <main+0x460>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x29c2(%rip),%rbx
mov    (%rbx),%edi
mov    (%rsi),%rdx
lea    0xa06(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xa0d(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2990(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"usage: %s timingclock\0A\00"
@.str.1 = [39 x i8] c"timingclock is specified in megahertz\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [7 x i8] c"%d %d\0A\00"
@.str.3 = [13 x i8] c"%d %d %d %d\0A\00"
@.str.4 = [4 x i8] c"%d \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %12, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @EXIT_FAILURE
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call double @atof(i8* %14)
%16 = fmul double %15, 1.000000e+06
%17 = fdiv double %16, 6.000000e+01
%18 = fadd double %17, 5.000000e-01
%19 = fptosi double %18 to i32
%20 = tail call i32 @floor(i32 %19)
%21 = sitofp i32 %20 to double
%22 = fdiv double %21, 2.620000e+02
%23 = fadd double %22, 5.000000e-01
%24 = fptosi double %23 to i32
%25 = tail call i32 @floor(i32 %24)
%26 = sitofp i32 %25 to double
%27 = tail call double @llvm.fmuladd.f64(double %26, double 8.000000e-02, double 5.000000e-01)
%28 = fptosi double %27 to i32
%29 = tail call i32 @floor(i32 %28)
%30 = fmul double %26, 2.000000e-02
%31 = fptosi double %30 to i32
%32 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %25, i32 262)
%33 = sub nsw i32 %25, %29
%34 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %33, i32 238)
%35 = mul i32 %31, -2
%36 = add i32 %35, %33
%37 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %31, i32 0, i32 %36, i32 238)
%38 = icmp sgt i32 %25, 0
%39 = sdiv i32 %25, 2
%40 = add nsw i32 %39, %29
br i1 %38, label %41, label %176
41: ; preds = %12, %48
%42 = phi i32 [ %53, %48 ], [ 0, %12 ]
%43 = icmp slt i32 %42, %29
br i1 %43, label %48, label %44
44: ; preds = %41
%45 = icmp sgt i32 %42, %39
%46 = icmp slt i32 %42, %40
%47 = select i1 %45, i1 %46, i1 false
br label %48
48: ; preds = %44, %41
%49 = phi i1 [ true, %41 ], [ %47, %44 ]
%50 = zext i1 %49 to i32
%51 = tail call i32 @timing_rom_byte(i32 %50, i32 1)
%52 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %51)
%53 = add nuw nsw i32 %42, 1
%54 = icmp eq i32 %53, %25
br i1 %54, label %55, label %41
55: ; preds = %48
br i1 %38, label %56, label %176
56: ; preds = %55, %63
%57 = phi i32 [ %68, %63 ], [ 0, %55 ]
%58 = icmp slt i32 %57, %29
br i1 %58, label %63, label %59
59: ; preds = %56
%60 = icmp sgt i32 %57, %39
%61 = icmp slt i32 %57, %40
%62 = select i1 %60, i1 %61, i1 false
br label %63
63: ; preds = %59, %56
%64 = phi i1 [ true, %56 ], [ %62, %59 ]
%65 = zext i1 %64 to i32
%66 = tail call i32 @timing_rom_byte(i32 %65, i32 1)
%67 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %66)
%68 = add nuw nsw i32 %57, 1
%69 = icmp eq i32 %68, %25
br i1 %69, label %70, label %56
70: ; preds = %63
br i1 %38, label %71, label %176
71: ; preds = %70, %78
%72 = phi i32 [ %83, %78 ], [ 0, %70 ]
%73 = icmp slt i32 %72, %29
br i1 %73, label %78, label %74
74: ; preds = %71
%75 = icmp sgt i32 %72, %39
%76 = icmp slt i32 %72, %40
%77 = select i1 %75, i1 %76, i1 false
br label %78
78: ; preds = %74, %71
%79 = phi i1 [ true, %71 ], [ %77, %74 ]
%80 = zext i1 %79 to i32
%81 = tail call i32 @timing_rom_byte(i32 %80, i32 1)
%82 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %81)
%83 = add nuw nsw i32 %72, 1
%84 = icmp eq i32 %83, %25
br i1 %84, label %85, label %71
85: ; preds = %78
%86 = sub nsw i32 %39, %29
br i1 %38, label %87, label %176
87: ; preds = %85, %94
%88 = phi i32 [ %99, %94 ], [ 0, %85 ]
%89 = icmp slt i32 %88, %86
br i1 %89, label %94, label %90
90: ; preds = %87
%91 = icmp sgt i32 %88, %39
%92 = icmp ult i32 %88, 210
%93 = and i1 %91, %92
br label %94
94: ; preds = %90, %87
%95 = phi i1 [ true, %87 ], [ %93, %90 ]
%96 = zext i1 %95 to i32
%97 = tail call i32 @timing_rom_byte(i32 %96, i32 1)
%98 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %97)
%99 = add nuw nsw i32 %88, 1
%100 = icmp eq i32 %99, %25
br i1 %100, label %101, label %87
101: ; preds = %94
br i1 %38, label %102, label %176
102: ; preds = %101, %109
%103 = phi i32 [ %114, %109 ], [ 0, %101 ]
%104 = icmp slt i32 %103, %86
br i1 %104, label %109, label %105
105: ; preds = %102
%106 = icmp sgt i32 %103, %39
%107 = icmp ult i32 %103, 210
%108 = and i1 %106, %107
br label %109
109: ; preds = %105, %102
%110 = phi i1 [ true, %102 ], [ %108, %105 ]
%111 = zext i1 %110 to i32
%112 = tail call i32 @timing_rom_byte(i32 %111, i32 1)
%113 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %112)
%114 = add nuw nsw i32 %103, 1
%115 = icmp eq i32 %114, %25
br i1 %115, label %116, label %102
116: ; preds = %109
br i1 %38, label %117, label %176
117: ; preds = %116, %124
%118 = phi i32 [ %129, %124 ], [ 0, %116 ]
%119 = icmp slt i32 %118, %86
br i1 %119, label %124, label %120
120: ; preds = %117
%121 = icmp sgt i32 %118, %39
%122 = icmp ult i32 %118, 210
%123 = and i1 %121, %122
br label %124
124: ; preds = %120, %117
%125 = phi i1 [ true, %117 ], [ %123, %120 ]
%126 = zext i1 %125 to i32
%127 = tail call i32 @timing_rom_byte(i32 %126, i32 1)
%128 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %127)
%129 = add nuw nsw i32 %118, 1
%130 = icmp eq i32 %129, %25
br i1 %130, label %131, label %117
131: ; preds = %124
br i1 %38, label %132, label %176
132: ; preds = %131, %139
%133 = phi i32 [ %144, %139 ], [ 0, %131 ]
%134 = icmp slt i32 %133, %29
br i1 %134, label %139, label %135
135: ; preds = %132
%136 = icmp sgt i32 %133, %39
%137 = icmp slt i32 %133, %40
%138 = select i1 %136, i1 %137, i1 false
br label %139
139: ; preds = %135, %132
%140 = phi i1 [ true, %132 ], [ %138, %135 ]
%141 = zext i1 %140 to i32
%142 = tail call i32 @timing_rom_byte(i32 %141, i32 1)
%143 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %142)
%144 = add nuw nsw i32 %133, 1
%145 = icmp eq i32 %144, %25
br i1 %145, label %146, label %132
146: ; preds = %139
br i1 %38, label %147, label %176
147: ; preds = %146, %154
%148 = phi i32 [ %159, %154 ], [ 0, %146 ]
%149 = icmp slt i32 %148, %29
br i1 %149, label %154, label %150
150: ; preds = %147
%151 = icmp sgt i32 %148, %39
%152 = icmp slt i32 %148, %40
%153 = select i1 %151, i1 %152, i1 false
br label %154
154: ; preds = %150, %147
%155 = phi i1 [ true, %147 ], [ %153, %150 ]
%156 = zext i1 %155 to i32
%157 = tail call i32 @timing_rom_byte(i32 %156, i32 1)
%158 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %157)
%159 = add nuw nsw i32 %148, 1
%160 = icmp eq i32 %159, %25
br i1 %160, label %161, label %147
161: ; preds = %154
br i1 %38, label %162, label %176
162: ; preds = %161, %169
%163 = phi i32 [ %174, %169 ], [ 0, %161 ]
%164 = icmp slt i32 %163, %29
br i1 %164, label %169, label %165
165: ; preds = %162
%166 = icmp sgt i32 %163, %39
%167 = icmp slt i32 %163, %40
%168 = select i1 %166, i1 %167, i1 false
br label %169
169: ; preds = %165, %162
%170 = phi i1 [ true, %162 ], [ %168, %165 ]
%171 = zext i1 %170 to i32
%172 = tail call i32 @timing_rom_byte(i32 %171, i32 1)
%173 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %172)
%174 = add nuw nsw i32 %163, 1
%175 = icmp eq i32 %174, %25
br i1 %175, label %176, label %162
176: ; preds = %169, %12, %55, %70, %85, %101, %116, %131, %146, %161
br label %177
177: ; preds = %176, %187
%178 = phi i32 [ %188, %187 ], [ 0, %176 ]
br i1 %38, label %179, label %187
179: ; preds = %177, %179
%180 = phi i32 [ %185, %179 ], [ 0, %177 ]
%181 = icmp slt i32 %180, %29
%182 = zext i1 %181 to i32
%183 = tail call i32 @timing_rom_byte(i32 %182, i32 1)
%184 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %183)
%185 = add nuw nsw i32 %180, 1
%186 = icmp eq i32 %185, %25
br i1 %186, label %187, label %179
187: ; preds = %179, %177
%188 = add nuw nsw i32 %178, 1
%189 = icmp eq i32 %188, 15
br i1 %189, label %190, label %177
190: ; preds = %187, %200
%191 = phi i32 [ %201, %200 ], [ 0, %187 ]
br i1 %38, label %192, label %200
192: ; preds = %190, %192
%193 = phi i32 [ %198, %192 ], [ 0, %190 ]
%194 = icmp slt i32 %193, %29
%195 = zext i1 %194 to i32
%196 = tail call i32 @timing_rom_byte(i32 %195, i32 %195)
%197 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %196)
%198 = add nuw nsw i32 %193, 1
%199 = icmp eq i32 %198, %25
br i1 %199, label %200, label %192
200: ; preds = %192, %190
%201 = add nuw nsw i32 %191, 1
%202 = icmp eq i32 %201, 238
br i1 %202, label %203, label %190
203: ; preds = %200
ret i32 0
}