#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*/ putchar(char);
void outstr(char *s) {
  int c;
  if (!*s)
    return;
  if (*s != ' ' && *s != '\t')
    putchar('\t');
  while (*s) {
    c = *s++;
    switch (c) {
    default:
      putchar(c);
      continue;
    case ' ':
      putchar('\t');
      continue;
    case ';':
      putchar('\n');
      continue;
    case '`':
      putchar(' ');
      continue;
    }
  }
  --s;
  if (*s != ';' && *s != '\n')
    putchar('\n');
}


x86 assembly (clang, -O0):
<outstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
jne    112e <outstr+0x1e>
jmp    1228 <outstr+0x118>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1158 <outstr+0x48>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1158 <outstr+0x48>
mov    $0x9,%edi
call   1030 <putchar@plt>
jmp    115d <outstr+0x4d>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     11f2 <outstr+0xe2>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x20,%eax
je     11c5 <outstr+0xb5>
jmp    1193 <outstr+0x83>
mov    -0x10(%rbp),%eax
sub    $0x3b,%eax
je     11d4 <outstr+0xc4>
jmp    11a4 <outstr+0x94>
mov    -0x10(%rbp),%eax
sub    $0x60,%eax
je     11e3 <outstr+0xd3>
jmp    11b5 <outstr+0xa5>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
jmp    115d <outstr+0x4d>
mov    $0x9,%edi
call   1030 <putchar@plt>
jmp    115d <outstr+0x4d>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    115d <outstr+0x4d>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    115d <outstr+0x4d>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     1228 <outstr+0x118>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     1228 <outstr+0x118>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outstr>:
push   %r14
push   %rbx
push   %rax
mov    (%rdi),%al
test   %al,%al
je     1144 <outstr+0x34>
mov    %rdi,%r14
cmp    $0x9,%al
je     116a <outstr+0x5a>
cmp    $0x20,%al
je     116a <outstr+0x5a>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    (%r14),%al
test   %al,%al
jne    116a <outstr+0x5a>
mov    %r14,%rbx
mov    -0x1(%rbx),%al
cmp    $0xa,%al
je     1144 <outstr+0x34>
cmp    $0x3b,%al
jne    1184 <outstr+0x74>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
nopl   0x0(%rax)
mov    $0xa,%al
lea    0x1(%r14),%rbx
movsbl %al,%edi
call   1030 <putchar@plt>
movzbl 0x1(%r14),%eax
mov    %rbx,%r14
test   %al,%al
je     1139 <outstr+0x29>
movsbl %al,%ecx
cmp    $0x20,%ecx
je     1180 <outstr+0x70>
cmp    $0x3b,%ecx
je     1150 <outstr+0x40>
cmp    $0x60,%ecx
jne    1152 <outstr+0x42>
mov    $0x20,%al
jmp    1152 <outstr+0x42>
mov    $0x9,%al
jmp    1152 <outstr+0x42>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @outstr(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = icmp ne i8 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
br label %55
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 32
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 9
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 @putchar(i8 signext 9)
br label %20
20: ; preds = %18, %13, %8
br label %21
21: ; preds = %39, %37, %35, %31, %20
%22 = load i8*, i8** %2
%23 = load i8, i8* %22
%24 = icmp ne i8 %23, 0
br i1 %24, label %25, label %41
25: ; preds = %21
%26 = load i8*, i8** %2
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %2
%28 = load i8, i8* %26
%29 = sext i8 %28 to i32
store i32 %29, i32* %3
%30 = load i32, i32* %3
switch i32 %30, label %31 [
i32 32, label %35
i32 59, label %37
i32 96, label %39
]
31: ; preds = %25
%32 = load i32, i32* %3
%33 = trunc i32 %32 to i8
%34 = call i32 @putchar(i8 signext %33)
br label %21
35: ; preds = %25
%36 = call i32 @putchar(i8 signext 9)
br label %21
37: ; preds = %25
%38 = call i32 @putchar(i8 signext 10)
br label %21
39: ; preds = %25
%40 = call i32 @putchar(i8 signext 32)
br label %21
41: ; preds = %21
%42 = load i8*, i8** %2
%43 = getelementptr inbounds i8, i8* %42, i32 -1
store i8* %43, i8** %2
%44 = load i8*, i8** %2
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 59
br i1 %47, label %48, label %55
48: ; preds = %41
%49 = load i8*, i8** %2
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 10
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 @putchar(i8 signext 10)
br label %55
55: ; preds = %7, %53, %48, %41
ret void
}

LLVM IR (-O2):
define void @outstr(i8* nocapture %0) {
%2 = load i8, i8* %0
switch i8 %2, label %3 [
i8 0, label %28
i8 32, label %7
i8 9, label %7
]
3: ; preds = %1
%4 = tail call i32 @putchar(i8 signext 9)
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 0
br i1 %6, label %22, label %7
7: ; preds = %1, %1, %3
%8 = phi i8 [ %2, %1 ], [ %2, %1 ], [ %5, %3 ]
br label %9
9: ; preds = %7, %15
%10 = phi i8 [ %18, %15 ], [ %8, %7 ]
%11 = phi i8* [ %12, %15 ], [ %0, %7 ]
%12 = getelementptr inbounds i8, i8* %11, i64 1
%13 = sext i8 %10 to i32
switch i32 %13, label %14 [
i32 32, label %15
i32 59, label %20
i32 96, label %21
]
14: ; preds = %9
br label %15
15: ; preds = %9, %14, %20, %21
%16 = phi i8 [ %10, %14 ], [ 10, %20 ], [ 32, %21 ], [ 9, %9 ]
%17 = tail call i32 @putchar(i8 signext %16)
%18 = load i8, i8* %12
%19 = icmp eq i8 %18, 0
br i1 %19, label %22, label %9
20: ; preds = %9
br label %15
21: ; preds = %9
br label %15
22: ; preds = %15, %3
%23 = phi i8* [ %0, %3 ], [ %12, %15 ]
%24 = getelementptr inbounds i8, i8* %23, i64 -1
%25 = load i8, i8* %24
switch i8 %25, label %26 [
i8 59, label %28
i8 10, label %28
]
26: ; preds = %22
%27 = tail call i32 @putchar(i8 signext 10)
br label %28
28: ; preds = %26, %22, %22, %1
ret void
}