#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*/ output_char(long);
int /*<<< orphan*/ output_q(long);
void output_readable_char(long c) {
  if (c > 32) {
    if (c == (long)'\\') {
      output_char('\\');
    }
    output_char(c);
  } else {
    output_char((long)'\\');
    if (c < 10) {
      output_char((long)'0');
    }
    output_q(c);
  }
  return;
}


x86 assembly (clang, -O0):
<output_readable_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x20,-0x8(%rbp)
jle    115a <output_readable_char+0x3a>
cmpq   $0x5c,-0x8(%rbp)
jne    114c <output_readable_char+0x2c>
mov    $0x5c,%edi
call   1040 <output_char@plt>
mov    -0x8(%rbp),%rdi
call   1040 <output_char@plt>
jmp    1182 <output_readable_char+0x62>
mov    $0x5c,%edi
call   1040 <output_char@plt>
cmpq   $0xa,-0x8(%rbp)
jge    1179 <output_readable_char+0x59>
mov    $0x30,%edi
call   1040 <output_char@plt>
mov    -0x8(%rbp),%rdi
call   1030 <output_q@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_readable_char>:
push   %rbx
mov    %rdi,%rbx
cmp    $0x21,%rdi
jl     1143 <output_readable_char+0x23>
cmp    $0x5c,%rbx
jne    113a <output_readable_char+0x1a>
mov    $0x5c,%edi
call   1040 <output_char@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <output_char@plt>
mov    $0x5c,%edi
call   1040 <output_char@plt>
cmp    $0x9,%rbx
jg     115d <output_readable_char+0x3d>
mov    $0x30,%edi
call   1040 <output_char@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <output_q@plt>

LLVM IR (-O0):
define void @output_readable_char(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp sgt i64 %3, 32
br i1 %4, label %5, label %13
5: ; preds = %1
%6 = load i64, i64* %2
%7 = icmp eq i64 %6, 92
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @output_char(i64 92)
br label %10
10: ; preds = %8, %5
%11 = load i64, i64* %2
%12 = call i32 @output_char(i64 %11)
br label %22
13: ; preds = %1
%14 = call i32 @output_char(i64 92)
%15 = load i64, i64* %2
%16 = icmp slt i64 %15, 10
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @output_char(i64 48)
br label %19
19: ; preds = %17, %13
%20 = load i64, i64* %2
%21 = call i32 @output_q(i64 %20)
br label %22
22: ; preds = %19, %10
ret void
}

LLVM IR (-O2):
define void @output_readable_char(i64 %0) {
%2 = icmp sgt i64 %0, 32
br i1 %2, label %3, label %9
3: ; preds = %1
%4 = icmp eq i64 %0, 92
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @output_char(i64 92)
br label %7
7: ; preds = %5, %3
%8 = tail call i32 @output_char(i64 %0)
br label %16
9: ; preds = %1
%10 = tail call i32 @output_char(i64 92)
%11 = icmp slt i64 %0, 10
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 @output_char(i64 48)
br label %14
14: ; preds = %12, %9
%15 = tail call i32 @output_q(i64 %0)
br label %16
16: ; preds = %14, %7
ret void
}