int OutputCode(b)
char b;
{
  static int col, lin, ac = 0, last = -1;
  if (b == 0) {
    col = ((int)((double)(0) * 300 / 25.4));
    lin = ((int)((double)(272) * 300 / 25.4));
    last = -1;
    ac = 0;
    return 0;
  }
  if (last == -1) {
    last = b;
    ac = 1;
  } else {
    if (last == b && b != 1)
      ac++;
    else {
      if (last == '1')
        VLine(col, lin, lin + 151, ac * 3);
      col += (ac * 3);
      last = b;
      ac = 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<OutputCode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x0,%eax
jne    115f <OutputCode+0x4f>
movl   $0x0,0x2efb(%rip)
movl   $0xc8c,0x2ef5(%rip)
movl   $0xffffffff,0x2edf(%rip)
ff ff ff
movl   $0x0,0x2ee5(%rip)
movl   $0x0,-0x4(%rbp)
jmp    121e <OutputCode+0x10e>
cmpl   $0xffffffff,0x2ec2(%rip)
jne    1185 <OutputCode+0x75>
movsbl -0x5(%rbp),%eax
mov    %eax,0x2eb2(%rip)
movl   $0x1,0x2eb8(%rip)
jmp    1217 <OutputCode+0x107>
mov    0x2e9d(%rip),%eax
movsbl -0x5(%rbp),%ecx
cmp    %ecx,%eax
jne    11b8 <OutputCode+0xa8>
movsbl -0x5(%rbp),%eax
cmp    $0x1,%eax
je     11b8 <OutputCode+0xa8>
mov    0x2e8e(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e85(%rip)
jmp    1212 <OutputCode+0x102>
cmpl   $0x31,0x2e69(%rip)
jne    11eb <OutputCode+0xdb>
mov    0x2e65(%rip),%edi
mov    0x2e63(%rip),%esi
mov    0x2e5d(%rip),%edx
add    $0x97,%edx
imul   $0x3,0x2e54(%rip),%ecx
mov    $0x0,%al
call   1030 <VLine@plt>
imul   $0x3,0x2e46(%rip),%eax
add    0x2e38(%rip),%eax
mov    %eax,0x2e32(%rip)
movsbl -0x5(%rbp),%eax
mov    %eax,0x2e20(%rip)
movl   $0x1,0x2e26(%rip)
jmp    1217 <OutputCode+0x107>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OutputCode>:
push   %rbx
mov    %edi,%ecx
shl    $0x18,%ecx
je     113e <OutputCode+0x2e>
movsbl %dil,%ebx
mov    0x2f06(%rip),%eax
cmp    $0xffffffff,%eax
je     119e <OutputCode+0x8e>
cmp    $0x1000000,%ecx
je     115d <OutputCode+0x4d>
cmp    %ebx,%eax
jne    115d <OutputCode+0x4d>
mov    0x2eff(%rip),%eax
add    $0x1,%eax
jmp    11a9 <OutputCode+0x99>
movl   $0x0,0x2ee8(%rip)
movb   $0x1,0x2ee5(%rip)
movl   $0xffffffff,0x2ecf(%rip)
ff ff ff
xor    %eax,%eax
jmp    11a9 <OutputCode+0x99>
cmp    $0x31,%eax
jne    118f <OutputCode+0x7f>
xor    %eax,%eax
cmpb   $0x0,0x2ec9(%rip)
mov    $0xc8c,%esi
cmove  %eax,%esi
mov    0x2eb7(%rip),%edi
lea    0x97(%rsi),%edx
mov    0x2eb3(%rip),%eax
lea    (%rax,%rax,2),%ecx
xor    %eax,%eax
call   1030 <VLine@plt>
mov    0x2ea3(%rip),%eax
lea    (%rax,%rax,2),%eax
add    %eax,0x2e92(%rip)
mov    %ebx,0x2e84(%rip)
mov    $0x1,%eax
mov    %eax,0x2e89(%rip)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@OutputCode.col = internal global i32 0
@OutputCode.lin = internal global i32 0
@OutputCode.ac = internal global i32 0
@OutputCode.last = internal global i32 -1
define i32 @OutputCode(i32 %0) {
%2 = alloca i32
%3 = alloca i8
%4 = trunc i32 %0 to i8
store i8 %4, i8* %3
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, i32* @OutputCode.col
store i32 3212, i32* @OutputCode.lin
store i32 -1, i32* @OutputCode.last
store i32 0, i32* @OutputCode.ac
store i32 0, i32* %2
br label %47
9: ; preds = %1
%10 = load i32, i32* @OutputCode.last
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
store i32 %14, i32* @OutputCode.last
store i32 1, i32* @OutputCode.ac
br label %46
15: ; preds = %9
%16 = load i32, i32* @OutputCode.last
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %16, %18
br i1 %19, label %20, label %27
20: ; preds = %15
%21 = load i8, i8* %3
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 1
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, i32* @OutputCode.ac
%26 = add nsw i32 %25, 1
store i32 %26, i32* @OutputCode.ac
br label %45
27: ; preds = %20, %15
%28 = load i32, i32* @OutputCode.last
%29 = icmp eq i32 %28, 49
br i1 %29, label %30, label %38
30: ; preds = %27
%31 = load i32, i32* @OutputCode.col
%32 = load i32, i32* @OutputCode.lin
%33 = load i32, i32* @OutputCode.lin
%34 = add nsw i32 %33, 151
%35 = load i32, i32* @OutputCode.ac
%36 = mul nsw i32 %35, 3
%37 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @VLine to i32 (i32, i32, i32, i32, ...)*)(i32 %31, i32 %32, i32 %34, i32 %36)
br label %38
38: ; preds = %30, %27
%39 = load i32, i32* @OutputCode.ac
%40 = mul nsw i32 %39, 3
%41 = load i32, i32* @OutputCode.col
%42 = add nsw i32 %41, %40
store i32 %42, i32* @OutputCode.col
%43 = load i8, i8* %3
%44 = sext i8 %43 to i32
store i32 %44, i32* @OutputCode.last
store i32 1, i32* @OutputCode.ac
br label %45
45: ; preds = %38, %24
br label %46
46: ; preds = %45, %12
store i32 0, i32* %2
br label %47
47: ; preds = %46, %8
%48 = load i32, i32* %2
ret i32 %48
}

LLVM IR (-O2):
@OutputCode.col = internal unnamed_addr global i32 0
@OutputCode.lin = internal unnamed_addr global i1 false
@OutputCode.ac = internal unnamed_addr global i32 0
@OutputCode.last = internal unnamed_addr global i32 -1
define i32 @OutputCode(i32 %0) {
%2 = shl i32 %0, 24
%3 = ashr exact i32 %2, 24
%4 = icmp eq i32 %2, 0
br i1 %4, label %5, label %6
5: ; preds = %1
store i32 0, i32* @OutputCode.col
store i1 true, i1* @OutputCode.lin
store i32 -1, i32* @OutputCode.last
br label %32
6: ; preds = %1
%7 = load i32, i32* @OutputCode.last
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 %3, i32* @OutputCode.last
br label %32
10: ; preds = %6
%11 = icmp eq i32 %7, %3
%12 = icmp ne i32 %2, 16777216
%13 = and i1 %12, %11
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, i32* @OutputCode.ac
%16 = add nsw i32 %15, 1
br label %32
17: ; preds = %10
%18 = icmp eq i32 %7, 49
br i1 %18, label %19, label %27
19: ; preds = %17
%20 = load i32, i32* @OutputCode.col
%21 = load i1, i1* @OutputCode.lin
%22 = select i1 %21, i32 3212, i32 0
%23 = add nuw nsw i32 %22, 151
%24 = load i32, i32* @OutputCode.ac
%25 = mul nsw i32 %24, 3
%26 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @VLine to i32 (i32, i32, i32, i32, ...)*)(i32 %20, i32 %22, i32 %23, i32 %25)
br label %27
27: ; preds = %19, %17
%28 = load i32, i32* @OutputCode.ac
%29 = mul nsw i32 %28, 3
%30 = load i32, i32* @OutputCode.col
%31 = add nsw i32 %30, %29
store i32 %31, i32* @OutputCode.col
store i32 %3, i32* @OutputCode.last
br label %32
32: ; preds = %9, %27, %14, %5
%33 = phi i32 [ 1, %9 ], [ 1, %27 ], [ %16, %14 ], [ 0, %5 ]
store i32 %33, i32* @OutputCode.ac
ret i32 0
}