#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*/ l_quote_data(char *);
int /*<<< orphan*/ printf(char *, ...);
char *quote_char(char *, char);
void l_quote(char *str) {
  char buf[6];
  if (*str != 4) {
    printf("'");
    for (; (*str) != '\0'; str++)
      printf("%s", quote_char(buf, *str));
    printf("'");
  } else {
    printf("<p>");
    str++;
    do {
      while (*str != -1)
        str += l_quote_data(str);
      str++;
      printf("<tpCOMMAND>");
      switch (*str) {
      case 18:
        printf("<opNOT>");
        break;
      case 12:
        printf("<opLT>");
        break;
      case 13:
        printf("<opLE>");
        break;
      case 14:
        printf("<opGT>");
        break;
      case 15:
        printf("<opGE>");
        break;
      case 16:
        printf("<opEQ>");
        break;
      case 17:
        printf("<opNE>");
        break;
      case 19:
        printf("<opAND>");
        break;
      case 20:
        printf("<opXOR>");
        break;
      case 21:
        printf("<opOR>");
        break;
      case 11:
        printf("<opISDEF>");
        break;
      case 10:
        printf("<opCAT>");
        break;
      case 30:
        printf("<cmIF>");
        break;
      case 31:
        printf("<cmELSE>");
        break;
      case 36:
        printf("<cmLOOP>");
        break;
      case 33:
        printf("<cmWLOOP>");
        break;
      case 34:
        printf("<cmOUTLINE>");
        break;
      case 35:
        printf("<cmMACRO>'%s", quote_char(buf, *++str));
        printf("%s'", quote_char(buf, *++str));
        break;
      case 43:
        printf("<cmPROC>'%s", quote_char(buf, *++str));
        printf("%s'", quote_char(buf, *++str));
        break;
      case 37:
        printf("<cmOFFLS>");
        break;
      case 38:
        printf("<cmONLS>");
        break;
      case 41:
        printf("<cmOFFTS>");
        break;
      case 42:
        printf("<cmONTS>");
        break;
      case 39:
        printf("<cmOFFBL>");
        break;
      case 40:
        printf("<cmONBL>");
        break;
      case 44:
        printf("<cmOFFOUT>");
        break;
      case 45:
        printf("<cmONOUT>");
        break;
      }
    } while (*++str);
  }
}


x86 assembly (clang, -O0):
<l_quote>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x4,%eax
je     11af <l_quote+0x7f>
lea    0xfe6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     119c <l_quote+0x6c>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rax
movsbl (%rax),%esi
call   1040 <quote_char@plt>
mov    %rax,%rsi
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    115a <l_quote+0x2a>
lea    0xf96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14fa <l_quote+0x3ca>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    11ce <l_quote+0x9e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xffffffff,%eax
je     11fc <l_quote+0xcc>
mov    -0x8(%rbp),%rdi
call   1050 <l_quote_data@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
jmp    11ce <l_quote+0x9e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
lea    0xe85(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
add    $0xfffffff6,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x23,%eax
ja     14d7 <l_quote+0x3a7>
mov    -0x18(%rbp),%rax
lea    0xdc6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl 0x1(%rax),%esi
call   1040 <quote_char@plt>
mov    %rax,%rsi
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl 0x1(%rax),%esi
call   1040 <quote_char@plt>
mov    %rax,%rsi
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl 0x1(%rax),%esi
call   1040 <quote_char@plt>
mov    %rax,%rsi
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl 0x1(%rax),%esi
call   1040 <quote_char@plt>
mov    %rax,%rsi
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xcd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xccd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d7 <l_quote+0x3a7>
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14dc <l_quote+0x3ac>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
cmpb   $0x0,0x1(%rax)
jne    11c9 <l_quote+0x99>
jmp    14fa <l_quote+0x3ca>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<l_quote>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
cmpb   $0x4,(%rdi)
jne    1375 <l_quote+0x235>
lea    0xf35(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1(%r12),%al
add    $0x1,%r12
lea    0xf22(%rip),%r14
lea    0xe87(%rip),%r15
jmp    11a8 <l_quote+0x68>
lea    0x1009(%rip),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1(%r12),%al
add    $0x1,%r12
test   %al,%al
je     13cf <l_quote+0x28f>
cmp    $0xff,%al
je     11d0 <l_quote+0x90>
nopl   0x0(%rax)
mov    %r12,%rdi
call   1060 <l_quote_data@plt>
cltq
lea    (%r12,%rax,1),%rbx
cmpb   $0xff,(%r12,%rax,1)
mov    %rbx,%r12
jne    11b0 <l_quote+0x70>
jmp    11d3 <l_quote+0x93>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rbx
lea    0x1(%rbx),%r12
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x1(%rbx),%eax
add    $0xfffffff6,%eax
cmp    $0x23,%eax
ja     1197 <l_quote+0x57>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
lea    0xef6(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xee3(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe99(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe94(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe8f(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe8a(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe85(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe80(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe49(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe6f(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe6b(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe67(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe74(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe6f(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe75(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe73(%rip),%rdi
jmp    1190 <l_quote+0x50>
movsbl 0x2(%rbx),%esi
lea    0x2(%rsp),%r12
mov    %r12,%rdi
call   1050 <quote_char@plt>
lea    0xe62(%rip),%rdi
jmp    1336 <l_quote+0x1f6>
lea    0xe3a(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe6a(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe68(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe78(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe76(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe4d(%rip),%rdi
jmp    1190 <l_quote+0x50>
lea    0xe4b(%rip),%rdi
jmp    1190 <l_quote+0x50>
movsbl 0x2(%rbx),%esi
lea    0x2(%rsp),%r12
mov    %r12,%rdi
call   1050 <quote_char@plt>
lea    0xe05(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x3(%rbx),%esi
add    $0x3,%rbx
mov    %r12,%rdi
call   1050 <quote_char@plt>
lea    0xde0(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%r12
jmp    1197 <l_quote+0x57>
lea    0xe10(%rip),%rdi
jmp    1190 <l_quote+0x50>
mov    $0x27,%edi
call   1030 <putchar@plt>
mov    (%r12),%al
test   %al,%al
je     13c5 <l_quote+0x285>
add    $0x1,%r12
lea    0x2(%rsp),%r14
lea    0xdad(%rip),%r15
nopw   0x0(%rax,%rax,1)
movsbl %al,%esi
mov    %r14,%rdi
call   1050 <quote_char@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%r12),%eax
add    $0x1,%r12
test   %al,%al
jne    13a0 <l_quote+0x260>
mov    $0x27,%edi
call   1030 <putchar@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"'\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [4 x i8] c"<p>\00"
@.str.3 = [12 x i8] c"<tpCOMMAND>\00"
@.str.4 = [8 x i8] c"<opNOT>\00"
@.str.5 = [7 x i8] c"<opLT>\00"
@.str.6 = [7 x i8] c"<opLE>\00"
@.str.7 = [7 x i8] c"<opGT>\00"
@.str.8 = [7 x i8] c"<opGE>\00"
@.str.9 = [7 x i8] c"<opEQ>\00"
@.str.10 = [7 x i8] c"<opNE>\00"
@.str.11 = [8 x i8] c"<opAND>\00"
@.str.12 = [8 x i8] c"<opXOR>\00"
@.str.13 = [7 x i8] c"<opOR>\00"
@.str.14 = [10 x i8] c"<opISDEF>\00"
@.str.15 = [8 x i8] c"<opCAT>\00"
@.str.16 = [7 x i8] c"<cmIF>\00"
@.str.17 = [9 x i8] c"<cmELSE>\00"
@.str.18 = [9 x i8] c"<cmLOOP>\00"
@.str.19 = [10 x i8] c"<cmWLOOP>\00"
@.str.20 = [12 x i8] c"<cmOUTLINE>\00"
@.str.21 = [13 x i8] c"<cmMACRO>'%s\00"
@.str.22 = [4 x i8] c"%s'\00"
@.str.23 = [12 x i8] c"<cmPROC>'%s\00"
@.str.24 = [10 x i8] c"<cmOFFLS>\00"
@.str.25 = [9 x i8] c"<cmONLS>\00"
@.str.26 = [10 x i8] c"<cmOFFTS>\00"
@.str.27 = [9 x i8] c"<cmONTS>\00"
@.str.28 = [10 x i8] c"<cmOFFBL>\00"
@.str.29 = [9 x i8] c"<cmONBL>\00"
@.str.30 = [11 x i8] c"<cmOFFOUT>\00"
@.str.31 = [10 x i8] c"<cmONOUT>\00"
define void @l_quote(i8* %0) {
%2 = alloca i8*
%3 = alloca [6 x i8]
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 4
br i1 %7, label %8, label %26
8: ; preds = %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %21, %8
%11 = load i8*, i8** %2
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %10
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%17 = load i8*, i8** %2
%18 = load i8, i8* %17
%19 = call i8* @quote_char(i8* %16, i8 signext %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %19)
br label %21
21: ; preds = %15
%22 = load i8*, i8** %2
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %2
br label %10
24: ; preds = %10
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %132
26: ; preds = %1
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%28 = load i8*, i8** %2
%29 = getelementptr inbounds i8, i8* %28, i32 1
store i8* %29, i8** %2
br label %30
30: ; preds = %126, %26
br label %31
31: ; preds = %36, %30
%32 = load i8*, i8** %2
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, -1
br i1 %35, label %36, label %42
36: ; preds = %31
%37 = load i8*, i8** %2
%38 = call i32 @l_quote_data(i8* %37)
%39 = load i8*, i8** %2
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, i8* %39, i64 %40
store i8* %41, i8** %2
br label %31
42: ; preds = %31
%43 = load i8*, i8** %2
%44 = getelementptr inbounds i8, i8* %43, i32 1
store i8* %44, i8** %2
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%46 = load i8*, i8** %2
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
switch i32 %48, label %125 [
i32 18, label %49
i32 12, label %51
i32 13, label %53
i32 14, label %55
i32 15, label %57
i32 16, label %59
i32 17, label %61
i32 19, label %63
i32 20, label %65
i32 21, label %67
i32 11, label %69
i32 10, label %71
i32 30, label %73
i32 31, label %75
i32 36, label %77
i32 33, label %79
i32 34, label %81
i32 35, label %83
i32 43, label %96
i32 37, label %109
i32 38, label %111
i32 41, label %113
i32 42, label %115
i32 39, label %117
i32 40, label %119
i32 44, label %121
i32 45, label %123
]
49: ; preds = %42
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %125
51: ; preds = %42
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %125
53: ; preds = %42
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %125
55: ; preds = %42
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %125
57: ; preds = %42
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %125
59: ; preds = %42
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %125
61: ; preds = %42
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %125
63: ; preds = %42
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %125
65: ; preds = %42
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %125
67: ; preds = %42
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
br label %125
69: ; preds = %42
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %125
71: ; preds = %42
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %125
73: ; preds = %42
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %125
75: ; preds = %42
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
br label %125
77: ; preds = %42
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
br label %125
79: ; preds = %42
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
br label %125
81: ; preds = %42
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0))
br label %125
83: ; preds = %42
%84 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%85 = load i8*, i8** %2
%86 = getelementptr inbounds i8, i8* %85, i32 1
store i8* %86, i8** %2
%87 = load i8, i8* %86
%88 = call i8* @quote_char(i8* %84, i8 signext %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i8* %88)
%90 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%91 = load i8*, i8** %2
%92 = getelementptr inbounds i8, i8* %91, i32 1
store i8* %92, i8** %2
%93 = load i8, i8* %92
%94 = call i8* @quote_char(i8* %90, i8 signext %93)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* %94)
br label %125
96: ; preds = %42
%97 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%98 = load i8*, i8** %2
%99 = getelementptr inbounds i8, i8* %98, i32 1
store i8* %99, i8** %2
%100 = load i8, i8* %99
%101 = call i8* @quote_char(i8* %97, i8 signext %100)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8* %101)
%103 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%104 = load i8*, i8** %2
%105 = getelementptr inbounds i8, i8* %104, i32 1
store i8* %105, i8** %2
%106 = load i8, i8* %105
%107 = call i8* @quote_char(i8* %103, i8 signext %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* %107)
br label %125
109: ; preds = %42
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
br label %125
111: ; preds = %42
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
br label %125
113: ; preds = %42
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0))
br label %125
115: ; preds = %42
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
br label %125
117: ; preds = %42
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0))
br label %125
119: ; preds = %42
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0))
br label %125
121: ; preds = %42
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.30, i64 0, i64 0))
br label %125
123: ; preds = %42
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i64 0, i64 0))
br label %125
125: ; preds = %42, %123, %121, %119, %117, %115, %113, %111, %109, %96, %83, %81, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49
br label %126
126: ; preds = %125
%127 = load i8*, i8** %2
%128 = getelementptr inbounds i8, i8* %127, i32 1
store i8* %128, i8** %2
%129 = load i8, i8* %128
%130 = icmp ne i8 %129, 0
br i1 %130, label %30, label %131
131: ; preds = %126
br label %132
132: ; preds = %131, %24
ret void
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [4 x i8] c"<p>\00"
@.str.3 = [12 x i8] c"<tpCOMMAND>\00"
@.str.4 = [8 x i8] c"<opNOT>\00"
@.str.5 = [7 x i8] c"<opLT>\00"
@.str.6 = [7 x i8] c"<opLE>\00"
@.str.7 = [7 x i8] c"<opGT>\00"
@.str.8 = [7 x i8] c"<opGE>\00"
@.str.9 = [7 x i8] c"<opEQ>\00"
@.str.10 = [7 x i8] c"<opNE>\00"
@.str.11 = [8 x i8] c"<opAND>\00"
@.str.12 = [8 x i8] c"<opXOR>\00"
@.str.13 = [7 x i8] c"<opOR>\00"
@.str.14 = [10 x i8] c"<opISDEF>\00"
@.str.15 = [8 x i8] c"<opCAT>\00"
@.str.16 = [7 x i8] c"<cmIF>\00"
@.str.17 = [9 x i8] c"<cmELSE>\00"
@.str.18 = [9 x i8] c"<cmLOOP>\00"
@.str.19 = [10 x i8] c"<cmWLOOP>\00"
@.str.20 = [12 x i8] c"<cmOUTLINE>\00"
@.str.21 = [13 x i8] c"<cmMACRO>'%s\00"
@.str.22 = [4 x i8] c"%s'\00"
@.str.23 = [12 x i8] c"<cmPROC>'%s\00"
@.str.24 = [10 x i8] c"<cmOFFLS>\00"
@.str.25 = [9 x i8] c"<cmONLS>\00"
@.str.26 = [10 x i8] c"<cmOFFTS>\00"
@.str.27 = [9 x i8] c"<cmONTS>\00"
@.str.28 = [10 x i8] c"<cmOFFBL>\00"
@.str.29 = [9 x i8] c"<cmONBL>\00"
@.str.30 = [11 x i8] c"<cmOFFOUT>\00"
@.str.31 = [10 x i8] c"<cmONOUT>\00"
define void @l_quote(i8* %0) {
%2 = alloca [6 x i8]
%3 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 4
br i1 %5, label %20, label %6
6: ; preds = %1
%7 = tail call i32 @putchar(i32 39)
%8 = load i8, i8* %0
%9 = icmp eq i8 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %6, %10
%11 = phi i8 [ %16, %10 ], [ %8, %6 ]
%12 = phi i8* [ %15, %10 ], [ %0, %6 ]
%13 = call i8* @quote_char(i8* %3, i8 signext %11)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds i8, i8* %12, i64 1
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 0
br i1 %17, label %18, label %10
18: ; preds = %10, %6
%19 = call i32 @putchar(i32 39)
br label %114
20: ; preds = %1
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%22 = getelementptr inbounds i8, i8* %0, i64 1
%23 = load i8, i8* %22
br label %24
24: ; preds = %109, %20
%25 = phi i8 [ %23, %20 ], [ %112, %109 ]
%26 = phi i8* [ %22, %20 ], [ %111, %109 ]
%27 = icmp eq i8 %25, -1
br i1 %27, label %35, label %28
28: ; preds = %24, %28
%29 = phi i8* [ %32, %28 ], [ %26, %24 ]
%30 = call i32 @l_quote_data(i8* %29)
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %29, i64 %31
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, -1
br i1 %34, label %35, label %28
35: ; preds = %28, %24
%36 = phi i8* [ %26, %24 ], [ %32, %28 ]
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%39 = load i8, i8* %37
%40 = sext i8 %39 to i32
switch i32 %40, label %109 [
i32 18, label %41
i32 12, label %43
i32 13, label %45
i32 14, label %47
i32 15, label %49
i32 16, label %51
i32 17, label %53
i32 19, label %55
i32 20, label %57
i32 21, label %59
i32 11, label %61
i32 10, label %63
i32 30, label %65
i32 31, label %67
i32 36, label %69
i32 33, label %71
i32 34, label %73
i32 35, label %75
i32 43, label %84
i32 37, label %93
i32 38, label %95
i32 41, label %97
i32 42, label %99
i32 39, label %101
i32 40, label %103
i32 44, label %105
i32 45, label %107
]
41: ; preds = %35
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %109
43: ; preds = %35
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %109
45: ; preds = %35
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %109
47: ; preds = %35
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %109
49: ; preds = %35
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %109
51: ; preds = %35
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %109
53: ; preds = %35
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %109
55: ; preds = %35
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %109
57: ; preds = %35
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %109
59: ; preds = %35
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
br label %109
61: ; preds = %35
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %109
63: ; preds = %35
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %109
65: ; preds = %35
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %109
67: ; preds = %35
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
br label %109
69: ; preds = %35
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
br label %109
71: ; preds = %35
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
br label %109
73: ; preds = %35
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0))
br label %109
75: ; preds = %35
%76 = getelementptr inbounds i8, i8* %36, i64 2
%77 = load i8, i8* %76
%78 = call i8* @quote_char(i8* %3, i8 signext %77)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i8* %78)
%80 = getelementptr inbounds i8, i8* %36, i64 3
%81 = load i8, i8* %80
%82 = call i8* @quote_char(i8* %3, i8 signext %81)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* %82)
br label %109
84: ; preds = %35
%85 = getelementptr inbounds i8, i8* %36, i64 2
%86 = load i8, i8* %85
%87 = call i8* @quote_char(i8* %3, i8 signext %86)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8* %87)
%89 = getelementptr inbounds i8, i8* %36, i64 3
%90 = load i8, i8* %89
%91 = call i8* @quote_char(i8* %3, i8 signext %90)
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8* %91)
br label %109
93: ; preds = %35
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
br label %109
95: ; preds = %35
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
br label %109
97: ; preds = %35
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0))
br label %109
99: ; preds = %35
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
br label %109
101: ; preds = %35
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0))
br label %109
103: ; preds = %35
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0))
br label %109
105: ; preds = %35
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.30, i64 0, i64 0))
br label %109
107: ; preds = %35
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i64 0, i64 0))
br label %109
109: ; preds = %41, %43, %45, %47, %49, %51, %53, %55, %57, %59, %61, %63, %65, %67, %69, %71, %73, %75, %84, %93, %95, %97, %99, %101, %103, %105, %107, %35
%110 = phi i8* [ %37, %35 ], [ %37, %107 ], [ %37, %105 ], [ %37, %103 ], [ %37, %101 ], [ %37, %99 ], [ %37, %97 ], [ %37, %95 ], [ %37, %93 ], [ %89, %84 ], [ %80, %75 ], [ %37, %73 ], [ %37, %71 ], [ %37, %69 ], [ %37, %67 ], [ %37, %65 ], [ %37, %63 ], [ %37, %61 ], [ %37, %59 ], [ %37, %57 ], [ %37, %55 ], [ %37, %53 ], [ %37, %51 ], [ %37, %49 ], [ %37, %47 ], [ %37, %45 ], [ %37, %43 ], [ %37, %41 ]
%111 = getelementptr inbounds i8, i8* %110, i64 1
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 0
br i1 %113, label %114, label %24
114: ; preds = %109, %18
ret void
}