#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*/ d();
int gr(int, int);
int /*<<< orphan*/ gw(int, int, int);
int /*<<< orphan*/ printf(char *, long long);
int td(int, int);
int tm(int, int);
int main(void) {
  long long t0;
  d();
  gw(0, 0, 48);
  gw(0, 1, 48);
  gw(0, 2, 48);
  gw(0, 3, 48);
  gw(0, 4, 48);
  gw(0, 5, 48);
  gw(1, 6, 60);
  gw(2, 6, 6);
  gw(0, 6, 360);
  gw(4, 6, 1000);
_1:
  t0 = gr(4, 6);
  if ((gr(4, 6)) != 0)
    goto _6;
  else
    goto _2;
_2:
  gw(6, 6, gr(0, 6) - 1);
  t0 = gr(tm(gr(6, 6), gr(1, 6)), td(gr(6, 6), gr(1, 6))) - 48;
_3:
  if ((gr(6, 6)) != 0)
    goto _4;
  else
    goto _5;
_4:
  gw(6, 6, gr(6, 6) - 1);
  t0 += gr(tm(gr(6, 6), gr(1, 6)), td(gr(6, 6), gr(1, 6))) - 48;
  goto _3;
_5:
  printf("%lld ", t0);
  return 0;
_6:
  t0--;
  gw(4, 6, t0);
  gw(6, 6, gr(0, 6) - 1);
  gw(7, 6, 0);
_7:
  if ((gr(6, 6)) != 0)
    goto _8;
  else
    goto _1;
_8:
  t0 = (((gr(tm(gr(6, 6), gr(1, 6)), td(gr(6, 6), gr(1, 6))) - 48) * 2) +
        gr(7, 6)) /
       10;
  gw(tm(gr(6, 6), gr(1, 6)), td(gr(6, 6), gr(1, 6)),
     ((((gr(tm(gr(6, 6), gr(1, 6)), td(gr(6, 6), gr(1, 6))) - 48) * 2) +
       gr(7, 6)) %
      10) +
         48);
  gw(7, 6, t0);
  gw(6, 6, gr(6, 6) - 1);
  goto _7;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <d@plt>
xor    %esi,%esi
mov    $0x30,%edx
mov    %esi,%edi
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x2,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x3,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x5,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
mov    $0x1,%edi
mov    $0x6,%esi
mov    $0x3c,%edx
call   1040 <gw@plt>
mov    $0x2,%edi
mov    $0x6,%edx
mov    %edx,%esi
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x6,%esi
mov    $0x168,%edx
call   1040 <gw@plt>
mov    $0x4,%edi
mov    $0x6,%esi
mov    $0x3e8,%edx
call   1040 <gw@plt>
mov    $0x4,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    $0x4,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
cmp    $0x0,%eax
je     1255 <main+0xf5>
jmp    13a0 <main+0x240>
jmp    125a <main+0xfa>
xor    %edi,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%edx
sub    $0x1,%edx
mov    $0x6,%esi
mov    %esi,%edi
call   1040 <gw@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,-0x14(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x18(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x18(%rbp),%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1070 <gr@plt>
sub    $0x30,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
cmp    $0x0,%eax
je     12f7 <main+0x197>
jmp    12fc <main+0x19c>
jmp    1388 <main+0x228>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,%edx
sub    $0x1,%edx
mov    $0x6,%esi
mov    %esi,%edi
call   1040 <gw@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x28(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,-0x20(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x24(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x24(%rbp),%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%esi
call   1070 <gr@plt>
sub    $0x30,%eax
cltq
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    12dd <main+0x17d>
mov    -0x10(%rbp),%rsi
lea    0xc6d(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%edx
mov    $0x4,%edi
mov    $0x6,%esi
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%edx
sub    $0x1,%edx
mov    $0x6,%esi
mov    %esi,%edi
call   1040 <gw@plt>
mov    $0x7,%edi
mov    $0x6,%esi
xor    %edx,%edx
call   1040 <gw@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
cmp    $0x0,%eax
je     1409 <main+0x2a9>
jmp    140e <main+0x2ae>
jmp    1223 <main+0xc3>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x58(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x58(%rbp),%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,-0x50(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x54(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x54(%rbp),%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%esi
call   1070 <gr@plt>
sub    $0x30,%eax
shl    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    $0x7,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
add    %ecx,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cltq
mov    %rax,-0x10(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x48(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x48(%rbp),%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,-0x34(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x44(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %eax,-0x30(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x40(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,-0x38(%rbp)
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%esi
call   1070 <gr@plt>
sub    $0x30,%eax
shl    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    $0x7,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
add    %ecx,%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
call   1040 <gw@plt>
mov    -0x10(%rbp),%rax
mov    %eax,%edx
mov    $0x7,%edi
mov    $0x6,%esi
call   1040 <gw@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1070 <gr@plt>
mov    %eax,%edx
sub    $0x1,%edx
mov    $0x6,%esi
mov    %esi,%edi
call   1040 <gw@plt>
jmp    13ef <main+0x28f>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
xor    %eax,%eax
call   1030 <d@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x2,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x3,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x5,%esi
mov    $0x30,%edx
call   1040 <gw@plt>
mov    $0x1,%edi
mov    $0x6,%esi
mov    $0x3c,%edx
call   1040 <gw@plt>
mov    $0x2,%edi
mov    $0x6,%esi
mov    $0x6,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x6,%esi
mov    $0x168,%edx
call   1040 <gw@plt>
mov    $0x4,%edi
mov    $0x6,%esi
mov    $0x3e8,%edx
call   1040 <gw@plt>
nop
mov    $0x4,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebx
mov    $0x4,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
test   %eax,%eax
je     1462 <main+0x302>
add    $0xffffffff,%ebx
mov    $0x4,%edi
mov    $0x6,%esi
mov    %ebx,%edx
call   1040 <gw@plt>
xor    %edi,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    -0x1(%rax),%edx
mov    $0x6,%edi
mov    $0x6,%esi
call   1040 <gw@plt>
mov    $0x7,%edi
mov    $0x6,%esi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
call   1040 <gw@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
test   %eax,%eax
je     1220 <main+0xc0>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebx
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,%ebx
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1070 <gr@plt>
mov    %eax,%ebx
mov    $0x7,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    (%rax,%rbx,2),%eax
add    $0xffffffa0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,%r14d
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %eax,%r15d
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,%r12d
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x7,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    (%rax,%rbp,2),%eax
add    $0xffffffa0,%eax
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%edx
add    $0x30,%edx
mov    %r14d,%edi
mov    %r15d,%esi
call   1040 <gw@plt>
mov    $0x7,%edi
mov    $0x6,%esi
mov    %ebx,%edx
call   1040 <gw@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    -0x1(%rax),%edx
mov    $0x6,%edi
mov    $0x6,%esi
jmp    1290 <main+0x130>
xor    %edi,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    -0x1(%rax),%edx
mov    $0x6,%edi
mov    $0x6,%esi
call   1040 <gw@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebx
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,%ebx
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1070 <gr@plt>
add    $0xffffffd0,%eax
movslq %eax,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
test   %eax,%eax
je     1595 <main+0x435>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
lea    -0x1(%rax),%edx
mov    $0x6,%edi
mov    $0x6,%esi
call   1040 <gw@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1060 <tm@plt>
mov    %eax,%r14d
mov    $0x6,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x6,%esi
call   1070 <gr@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1080 <td@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1070 <gr@plt>
cltq
add    %rax,%rbx
add    $0xffffffffffffffd0,%rbx
jmp    14f0 <main+0x390>
lea    0xa64(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%lld \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
%3 = call i32 (...) @d()
%4 = call i32 @gw(i32 0, i32 0, i32 48)
%5 = call i32 @gw(i32 0, i32 1, i32 48)
%6 = call i32 @gw(i32 0, i32 2, i32 48)
%7 = call i32 @gw(i32 0, i32 3, i32 48)
%8 = call i32 @gw(i32 0, i32 4, i32 48)
%9 = call i32 @gw(i32 0, i32 5, i32 48)
%10 = call i32 @gw(i32 1, i32 6, i32 60)
%11 = call i32 @gw(i32 2, i32 6, i32 6)
%12 = call i32 @gw(i32 0, i32 6, i32 360)
%13 = call i32 @gw(i32 4, i32 6, i32 1000)
br label %14
14: ; preds = %71, %0
%15 = call i32 @gr(i32 4, i32 6)
%16 = sext i32 %15 to i64
store i64 %16, i64* %2
%17 = call i32 @gr(i32 4, i32 6)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
br label %57
20: ; preds = %14
br label %21
21: ; preds = %20
%22 = call i32 @gr(i32 0, i32 6)
%23 = sub nsw i32 %22, 1
%24 = call i32 @gw(i32 6, i32 6, i32 %23)
%25 = call i32 @gr(i32 6, i32 6)
%26 = call i32 @gr(i32 1, i32 6)
%27 = call i32 @tm(i32 %25, i32 %26)
%28 = call i32 @gr(i32 6, i32 6)
%29 = call i32 @gr(i32 1, i32 6)
%30 = call i32 @td(i32 %28, i32 %29)
%31 = call i32 @gr(i32 %27, i32 %30)
%32 = sub nsw i32 %31, 48
%33 = sext i32 %32 to i64
store i64 %33, i64* %2
br label %34
34: ; preds = %39, %21
%35 = call i32 @gr(i32 6, i32 6)
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
br label %39
38: ; preds = %34
br label %54
39: ; preds = %37
%40 = call i32 @gr(i32 6, i32 6)
%41 = sub nsw i32 %40, 1
%42 = call i32 @gw(i32 6, i32 6, i32 %41)
%43 = call i32 @gr(i32 6, i32 6)
%44 = call i32 @gr(i32 1, i32 6)
%45 = call i32 @tm(i32 %43, i32 %44)
%46 = call i32 @gr(i32 6, i32 6)
%47 = call i32 @gr(i32 1, i32 6)
%48 = call i32 @td(i32 %46, i32 %47)
%49 = call i32 @gr(i32 %45, i32 %48)
%50 = sub nsw i32 %49, 48
%51 = sext i32 %50 to i64
%52 = load i64, i64* %2
%53 = add nsw i64 %52, %51
store i64 %53, i64* %2
br label %34
54: ; preds = %38
%55 = load i64, i64* %2
%56 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %55)
ret i32 0
57: ; preds = %19
%58 = load i64, i64* %2
%59 = add nsw i64 %58, -1
store i64 %59, i64* %2
%60 = load i64, i64* %2
%61 = trunc i64 %60 to i32
%62 = call i32 @gw(i32 4, i32 6, i32 %61)
%63 = call i32 @gr(i32 0, i32 6)
%64 = sub nsw i32 %63, 1
%65 = call i32 @gw(i32 6, i32 6, i32 %64)
%66 = call i32 @gw(i32 7, i32 6, i32 0)
br label %67
67: ; preds = %72, %57
%68 = call i32 @gr(i32 6, i32 6)
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %67
br label %72
71: ; preds = %67
br label %14
72: ; preds = %70
%73 = call i32 @gr(i32 6, i32 6)
%74 = call i32 @gr(i32 1, i32 6)
%75 = call i32 @tm(i32 %73, i32 %74)
%76 = call i32 @gr(i32 6, i32 6)
%77 = call i32 @gr(i32 1, i32 6)
%78 = call i32 @td(i32 %76, i32 %77)
%79 = call i32 @gr(i32 %75, i32 %78)
%80 = sub nsw i32 %79, 48
%81 = mul nsw i32 %80, 2
%82 = call i32 @gr(i32 7, i32 6)
%83 = add nsw i32 %81, %82
%84 = sdiv i32 %83, 10
%85 = sext i32 %84 to i64
store i64 %85, i64* %2
%86 = call i32 @gr(i32 6, i32 6)
%87 = call i32 @gr(i32 1, i32 6)
%88 = call i32 @tm(i32 %86, i32 %87)
%89 = call i32 @gr(i32 6, i32 6)
%90 = call i32 @gr(i32 1, i32 6)
%91 = call i32 @td(i32 %89, i32 %90)
%92 = call i32 @gr(i32 6, i32 6)
%93 = call i32 @gr(i32 1, i32 6)
%94 = call i32 @tm(i32 %92, i32 %93)
%95 = call i32 @gr(i32 6, i32 6)
%96 = call i32 @gr(i32 1, i32 6)
%97 = call i32 @td(i32 %95, i32 %96)
%98 = call i32 @gr(i32 %94, i32 %97)
%99 = sub nsw i32 %98, 48
%100 = mul nsw i32 %99, 2
%101 = call i32 @gr(i32 7, i32 6)
%102 = add nsw i32 %100, %101
%103 = srem i32 %102, 10
%104 = add nsw i32 %103, 48
%105 = call i32 @gw(i32 %88, i32 %91, i32 %104)
%106 = load i64, i64* %2
%107 = trunc i64 %106 to i32
%108 = call i32 @gw(i32 7, i32 6, i32 %107)
%109 = call i32 @gr(i32 6, i32 6)
%110 = sub nsw i32 %109, 1
%111 = call i32 @gw(i32 6, i32 6, i32 %110)
br label %67
}

LLVM IR (-O2):
@.str = [6 x i8] c"%lld \00"
define i32 @main() {
%1 = tail call i32 (...) @d()
%2 = tail call i32 @gw(i32 0, i32 0, i32 48)
%3 = tail call i32 @gw(i32 0, i32 1, i32 48)
%4 = tail call i32 @gw(i32 0, i32 2, i32 48)
%5 = tail call i32 @gw(i32 0, i32 3, i32 48)
%6 = tail call i32 @gw(i32 0, i32 4, i32 48)
%7 = tail call i32 @gw(i32 0, i32 5, i32 48)
%8 = tail call i32 @gw(i32 1, i32 6, i32 60)
%9 = tail call i32 @gw(i32 2, i32 6, i32 6)
%10 = tail call i32 @gw(i32 0, i32 6, i32 360)
%11 = tail call i32 @gw(i32 4, i32 6, i32 1000)
%12 = tail call i32 @gr(i32 4, i32 6)
%13 = tail call i32 @gr(i32 4, i32 6)
%14 = icmp eq i32 %13, 0
br i1 %14, label %19, label %54
15: ; preds = %64, %54
%16 = tail call i32 @gr(i32 4, i32 6)
%17 = tail call i32 @gr(i32 4, i32 6)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %54
19: ; preds = %15, %0
%20 = tail call i32 @gr(i32 0, i32 6)
%21 = add nsw i32 %20, -1
%22 = tail call i32 @gw(i32 6, i32 6, i32 %21)
%23 = tail call i32 @gr(i32 6, i32 6)
%24 = tail call i32 @gr(i32 1, i32 6)
%25 = tail call i32 @tm(i32 %23, i32 %24)
%26 = tail call i32 @gr(i32 6, i32 6)
%27 = tail call i32 @gr(i32 1, i32 6)
%28 = tail call i32 @td(i32 %26, i32 %27)
%29 = tail call i32 @gr(i32 %25, i32 %28)
%30 = add nsw i32 %29, -48
%31 = sext i32 %30 to i64
%32 = tail call i32 @gr(i32 6, i32 6)
%33 = icmp eq i32 %32, 0
br i1 %33, label %51, label %34
34: ; preds = %19, %34
%35 = phi i64 [ %48, %34 ], [ %31, %19 ]
%36 = tail call i32 @gr(i32 6, i32 6)
%37 = add nsw i32 %36, -1
%38 = tail call i32 @gw(i32 6, i32 6, i32 %37)
%39 = tail call i32 @gr(i32 6, i32 6)
%40 = tail call i32 @gr(i32 1, i32 6)
%41 = tail call i32 @tm(i32 %39, i32 %40)
%42 = tail call i32 @gr(i32 6, i32 6)
%43 = tail call i32 @gr(i32 1, i32 6)
%44 = tail call i32 @td(i32 %42, i32 %43)
%45 = tail call i32 @gr(i32 %41, i32 %44)
%46 = add nsw i32 %45, -48
%47 = sext i32 %46 to i64
%48 = add nsw i64 %35, %47
%49 = tail call i32 @gr(i32 6, i32 6)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %34
51: ; preds = %34, %19
%52 = phi i64 [ %31, %19 ], [ %48, %34 ]
%53 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %52)
ret i32 0
54: ; preds = %0, %15
%55 = phi i32 [ %16, %15 ], [ %12, %0 ]
%56 = add i32 %55, -1
%57 = tail call i32 @gw(i32 4, i32 6, i32 %56)
%58 = tail call i32 @gr(i32 0, i32 6)
%59 = add nsw i32 %58, -1
%60 = tail call i32 @gw(i32 6, i32 6, i32 %59)
%61 = tail call i32 @gw(i32 7, i32 6, i32 0)
%62 = tail call i32 @gr(i32 6, i32 6)
%63 = icmp eq i32 %62, 0
br i1 %63, label %15, label %64
64: ; preds = %54, %64
%65 = tail call i32 @gr(i32 6, i32 6)
%66 = tail call i32 @gr(i32 1, i32 6)
%67 = tail call i32 @tm(i32 %65, i32 %66)
%68 = tail call i32 @gr(i32 6, i32 6)
%69 = tail call i32 @gr(i32 1, i32 6)
%70 = tail call i32 @td(i32 %68, i32 %69)
%71 = tail call i32 @gr(i32 %67, i32 %70)
%72 = shl i32 %71, 1
%73 = add i32 %72, -96
%74 = tail call i32 @gr(i32 7, i32 6)
%75 = add nsw i32 %73, %74
%76 = sdiv i32 %75, 10
%77 = tail call i32 @gr(i32 6, i32 6)
%78 = tail call i32 @gr(i32 1, i32 6)
%79 = tail call i32 @tm(i32 %77, i32 %78)
%80 = tail call i32 @gr(i32 6, i32 6)
%81 = tail call i32 @gr(i32 1, i32 6)
%82 = tail call i32 @td(i32 %80, i32 %81)
%83 = tail call i32 @gr(i32 6, i32 6)
%84 = tail call i32 @gr(i32 1, i32 6)
%85 = tail call i32 @tm(i32 %83, i32 %84)
%86 = tail call i32 @gr(i32 6, i32 6)
%87 = tail call i32 @gr(i32 1, i32 6)
%88 = tail call i32 @td(i32 %86, i32 %87)
%89 = tail call i32 @gr(i32 %85, i32 %88)
%90 = shl i32 %89, 1
%91 = add i32 %90, -96
%92 = tail call i32 @gr(i32 7, i32 6)
%93 = add nsw i32 %91, %92
%94 = srem i32 %93, 10
%95 = add nsw i32 %94, 48
%96 = tail call i32 @gw(i32 %79, i32 %82, i32 %95)
%97 = tail call i32 @gw(i32 7, i32 6, i32 %76)
%98 = tail call i32 @gr(i32 6, i32 6)
%99 = add nsw i32 %98, -1
%100 = tail call i32 @gw(i32 6, i32 6, i32 %99)
%101 = tail call i32 @gr(i32 6, i32 6)
%102 = icmp eq i32 %101, 0
br i1 %102, label %15, label %64
}