void squeeze(target) char *target;
{
  int state;
  char *src;
  for (state = 0, src = target;; target++, src++) {
    switch (*target = *src) {
    case '\n':
      if (state == 1)
        target -= 2;
      state = 2;
      continue;
    case '\\':
      state = 1;
      continue;
    case ' ':
    case '\t':
      if (state == 2) {
        target--;
        continue;
      }
    default:
      state = 0;
      continue;
    case '\0':;
    }
    break;
  }
}


x86 assembly (clang, -O0):
<squeeze>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    %al,%dl
mov    -0x8(%rbp),%rcx
mov    %dl,(%rcx)
test   %eax,%eax
je     11d4 <squeeze+0xd4>
jmp    1136 <squeeze+0x36>
mov    -0x1c(%rbp),%eax
sub    $0x9,%eax
je     11a8 <squeeze+0xa8>
jmp    1147 <squeeze+0x47>
mov    -0x1c(%rbp),%eax
sub    $0xa,%eax
je     117a <squeeze+0x7a>
jmp    1158 <squeeze+0x58>
mov    -0x1c(%rbp),%eax
sub    $0x20,%eax
je     11a8 <squeeze+0xa8>
jmp    1169 <squeeze+0x69>
mov    -0x1c(%rbp),%eax
sub    $0x5c,%eax
je     119c <squeeze+0x9c>
jmp    11c8 <squeeze+0xc8>
cmpl   $0x1,-0xc(%rbp)
jne    1190 <squeeze+0x90>
mov    -0x8(%rbp),%rax
add    $0xfffffffffffffffe,%rax
mov    %rax,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
jmp    11de <squeeze+0xde>
movl   $0x1,-0xc(%rbp)
jmp    11de <squeeze+0xde>
cmpl   $0x2,-0xc(%rbp)
jne    11c3 <squeeze+0xc3>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
jmp    11de <squeeze+0xde>
jmp    11c8 <squeeze+0xc8>
movl   $0x0,-0xc(%rbp)
jmp    11de <squeeze+0xde>
jmp    11d9 <squeeze+0xd9>
jmp    11fb <squeeze+0xfb>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1117 <squeeze+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<squeeze>:
xor    %edx,%edx
lea    0xef7(%rip),%rax
mov    %rdi,%rcx
jmp    111a <squeeze+0x1a>
xchg   %ax,%ax
xor    %edx,%edx
add    $0x1,%rdi
add    $0x1,%rcx
movsbl (%rcx),%esi
mov    %sil,(%rdi)
cmp    $0x20,%esi
ja     1140 <squeeze+0x40>
movslq (%rax,%rsi,4),%rsi
add    %rax,%rsi
jmp    *%rsi
cmp    $0x2,%edx
jne    1110 <squeeze+0x10>
add    $0xffffffffffffffff,%rdi
jmp    1161 <squeeze+0x61>
nopl   0x0(%rax)
mov    $0x1,%edx
cmp    $0x5c,%esi
jne    1110 <squeeze+0x10>
jmp    1112 <squeeze+0x12>
nopl   0x0(%rax)
xor    %esi,%esi
cmp    $0x1,%edx
setne  %sil
lea    (%rdi,%rsi,2),%rdi
add    $0xfffffffffffffffe,%rdi
mov    $0x2,%edx
jmp    1112 <squeeze+0x12>
ret

LLVM IR (-O0):
define void @squeeze(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
store i32 0, i32* %3
%5 = load i8*, i8** %2
store i8* %5, i8** %4
br label %6
6: ; preds = %29, %1
%7 = load i8*, i8** %4
%8 = load i8, i8* %7
%9 = load i8*, i8** %2
store i8 %8, i8* %9
%10 = sext i8 %8 to i32
switch i32 %10, label %26 [
i32 10, label %11
i32 92, label %18
i32 32, label %19
i32 9, label %19
i32 0, label %27
]
11: ; preds = %6
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i8*, i8** %2
%16 = getelementptr inbounds i8, i8* %15, i64 -2
store i8* %16, i8** %2
br label %17
17: ; preds = %14, %11
store i32 2, i32* %3
br label %29
18: ; preds = %6
store i32 1, i32* %3
br label %29
19: ; preds = %6, %6
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i8*, i8** %2
%24 = getelementptr inbounds i8, i8* %23, i32 -1
store i8* %24, i8** %2
br label %29
25: ; preds = %19
br label %26
26: ; preds = %6, %25
store i32 0, i32* %3
br label %29
27: ; preds = %6
br label %28
28: ; preds = %27
br label %34
29: ; preds = %26, %22, %18, %17
%30 = load i8*, i8** %2
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %2
%32 = load i8*, i8** %4
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %4
br label %6
34: ; preds = %28
ret void
}

LLVM IR (-O2):
define void @squeeze(i8* nocapture %0) {
br label %2
2: ; preds = %17, %1
%3 = phi i8* [ %0, %1 ], [ %20, %17 ]
%4 = phi i32 [ 0, %1 ], [ %19, %17 ]
%5 = phi i8* [ %0, %1 ], [ %21, %17 ]
%6 = load i8, i8* %5
store i8 %6, i8* %3
%7 = sext i8 %6 to i32
switch i32 %7, label %16 [
i32 10, label %8
i32 92, label %17
i32 32, label %12
i32 9, label %12
i32 0, label %22
]
8: ; preds = %2
%9 = icmp eq i32 %4, 1
%10 = select i1 %9, i64 -2, i64 0
%11 = getelementptr i8, i8* %3, i64 %10
br label %17
12: ; preds = %2, %2
%13 = icmp eq i32 %4, 2
br i1 %13, label %14, label %16
14: ; preds = %12
%15 = getelementptr inbounds i8, i8* %3, i64 -1
br label %17
16: ; preds = %12, %2
br label %17
17: ; preds = %2, %16, %14, %8
%18 = phi i8* [ %3, %16 ], [ %15, %14 ], [ %11, %8 ], [ %3, %2 ]
%19 = phi i32 [ 0, %16 ], [ 2, %14 ], [ 2, %8 ], [ 1, %2 ]
%20 = getelementptr inbounds i8, i8* %18, i64 1
%21 = getelementptr inbounds i8, i8* %5, i64 1
br label %2
22: ; preds = %2
ret void
}