main() {
  int i, j;
  pb('B'), pb('Z'), pb('h'), pb('9');
  p(0x314159, 24), p(0x265359, 24);
  p(0, 16), p(0, 16);
  p(0, 1);
  p(0, 24);
  for (i = 16 + 256 - 2; i--;)
    p(1, 1);
  p(0, 2);
  p(2, 3), p(355, 15);
  for (i = 355; i--;)
    p(0, 1);
  for (j = 2; j--;) {
    p(8, 5);
    for (i = 256; i--;)
      p(0, 1);
  }
  run((500000 / 2 + 0x80000000) & 0xffffffff);
  pb(2);
  pb(2);
  run((500000 / 2 + 0x80000000) & 0xffffffff);
  pb(2);
  run(500000);
  pb(2);
  pb(2);
  run(-500000 & 0xffffffff);
  pb(0xff);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x42,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x5a,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x68,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x39,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x314159,%edi
mov    $0x18,%esi
mov    $0x0,%al
call   1030 <p@plt>
mov    $0x265359,%edi
mov    $0x18,%esi
mov    $0x0,%al
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x18,%esi
mov    $0x0,%al
call   1030 <p@plt>
movl   $0x10e,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     11f7 <main+0xc7>
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1030 <p@plt>
jmp    11d0 <main+0xa0>
xor    %edi,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <p@plt>
mov    $0x2,%edi
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <p@plt>
mov    $0x163,%edi
mov    $0xf,%esi
mov    $0x0,%al
call   1030 <p@plt>
movl   $0x163,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     1255 <main+0x125>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <p@plt>
jmp    122e <main+0xfe>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     12b4 <main+0x184>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <p@plt>
movl   $0x100,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     12af <main+0x17f>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <p@plt>
jmp    1288 <main+0x158>
jmp    125c <main+0x12c>
mov    $0x8003d090,%edi
mov    $0x0,%al
call   1040 <run@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x8003d090,%edi
mov    $0x0,%al
call   1040 <run@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x7a120,%edi
mov    $0x0,%al
call   1040 <run@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1050 <pb@plt>
mov    $0xfff85ee0,%edi
mov    $0x0,%al
call   1040 <run@plt>
mov    $0xff,%edi
mov    $0x0,%al
call   1050 <pb@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x42,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x5a,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x68,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x39,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x314159,%edi
mov    $0x18,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0x265359,%edi
mov    $0x18,%esi
xor    %eax,%eax
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x10,%esi
xor    %eax,%eax
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x10,%esi
xor    %eax,%eax
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <p@plt>
xor    %edi,%edi
mov    $0x18,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0xfffffef2,%ebx
mov    $0x1,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <p@plt>
inc    %ebx
jne    11c0 <main+0x90>
xor    %edi,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0x2,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0x163,%edi
mov    $0xf,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0xfffffe9d,%ebx
nopw   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <p@plt>
inc    %ebx
jne    1210 <main+0xe0>
mov    $0x8,%edi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0xffffff00,%ebx
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <p@plt>
inc    %ebx
jne    1240 <main+0x110>
mov    $0x8,%edi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <p@plt>
mov    $0xffffff00,%ebx
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <p@plt>
inc    %ebx
jne    1270 <main+0x140>
mov    $0x8003d090,%edi
xor    %eax,%eax
call   1040 <run@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x8003d090,%edi
xor    %eax,%eax
call   1040 <run@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x7a120,%edi
xor    %eax,%eax
call   1040 <run@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <pb@plt>
mov    $0xfff85ee0,%edi
xor    %eax,%eax
call   1040 <run@plt>
mov    $0xff,%edi
xor    %eax,%eax
call   1050 <pb@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 66)
%5 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 90)
%6 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 104)
%7 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 57)
%8 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 3227993, i32 24)
%9 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 2511705, i32 24)
%10 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 16)
%11 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 16)
%12 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
%13 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 24)
store i32 270, i32* %2
br label %14
14: ; preds = %18, %0
%15 = load i32, i32* %2
%16 = add nsw i32 %15, -1
store i32 %16, i32* %2
%17 = icmp ne i32 %15, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 1, i32 1)
br label %14
20: ; preds = %14
%21 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 2)
%22 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 2, i32 3)
%23 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 355, i32 15)
store i32 355, i32* %2
br label %24
24: ; preds = %28, %20
%25 = load i32, i32* %2
%26 = add nsw i32 %25, -1
store i32 %26, i32* %2
%27 = icmp ne i32 %25, 0
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
br label %24
30: ; preds = %24
store i32 2, i32* %3
br label %31
31: ; preds = %43, %30
%32 = load i32, i32* %3
%33 = add nsw i32 %32, -1
store i32 %33, i32* %3
%34 = icmp ne i32 %32, 0
br i1 %34, label %35, label %44
35: ; preds = %31
%36 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 8, i32 5)
store i32 256, i32* %2
br label %37
37: ; preds = %41, %35
%38 = load i32, i32* %2
%39 = add nsw i32 %38, -1
store i32 %39, i32* %2
%40 = icmp ne i32 %38, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
br label %37
43: ; preds = %37
br label %31
44: ; preds = %31
%45 = call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -2147233648)
%46 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%47 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%48 = call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -2147233648)
%49 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%50 = call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 500000)
%51 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%52 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%53 = call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -500000)
%54 = call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 255)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 66)
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 90)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 104)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 57)
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 3227993, i32 24)
%6 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 2511705, i32 24)
%7 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 16)
%8 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 16)
%9 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
%10 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 24)
br label %11
11: ; preds = %0, %11
%12 = phi i32 [ 270, %0 ], [ %13, %11 ]
%13 = add nsw i32 %12, -1
%14 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 1, i32 1)
%15 = icmp eq i32 %13, 0
br i1 %15, label %16, label %11
16: ; preds = %11
%17 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 2)
%18 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 2, i32 3)
%19 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 355, i32 15)
br label %20
20: ; preds = %16, %20
%21 = phi i32 [ 355, %16 ], [ %22, %20 ]
%22 = add nsw i32 %21, -1
%23 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
%24 = icmp eq i32 %22, 0
br i1 %24, label %25, label %20
25: ; preds = %20
%26 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 8, i32 5)
br label %45
27: ; preds = %45
%28 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 8, i32 5)
br label %29
29: ; preds = %29, %27
%30 = phi i32 [ 256, %27 ], [ %31, %29 ]
%31 = add nsw i32 %30, -1
%32 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
%33 = icmp eq i32 %31, 0
br i1 %33, label %34, label %29
34: ; preds = %29
%35 = tail call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -2147233648)
%36 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%37 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%38 = tail call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -2147233648)
%39 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%40 = tail call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 500000)
%41 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%42 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 2)
%43 = tail call i32 (i32, ...) bitcast (i32 (...)* @run to i32 (i32, ...)*)(i32 -500000)
%44 = tail call i32 (i32, ...) bitcast (i32 (...)* @pb to i32 (i32, ...)*)(i32 255)
ret i32 0
45: ; preds = %25, %45
%46 = phi i32 [ 256, %25 ], [ %47, %45 ]
%47 = add nsw i32 %46, -1
%48 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @p to i32 (i32, i32, ...)*)(i32 0, i32 1)
%49 = icmp eq i32 %47, 0
br i1 %49, label %27, label %45
}