#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*/ fputc(char, int /*<<< orphan*/);
scalar_t__ isspace(char);
int /*<<< orphan*/ stdout;
void outputdeps(char *deps) {
  char *pch = deps;
  while (1) {
    while (isspace(*pch))
      pch++;
    if (!*pch)
      break;
    while (*pch && *pch != '(' && *pch != '|' && *pch != ',' &&
           !isspace(*pch)) {
      fputc(*pch++, stdout);
    }
    fputc('\n', stdout);
    while (*pch && *pch++ != ',')
      (void)NULL;
  }
}


x86 assembly (clang, -O0):
<outputdeps>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1139 <outputdeps+0x19>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1160 <outputdeps+0x40>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1139 <outputdeps+0x19>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1172 <outputdeps+0x52>
jmp    1277 <outputdeps+0x157>
jmp    1177 <outputdeps+0x57>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     11e3 <outputdeps+0xc3>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x28,%ecx
mov    %al,-0x11(%rbp)
je     11e3 <outputdeps+0xc3>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x7c,%ecx
mov    %al,-0x11(%rbp)
je     11e3 <outputdeps+0xc3>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x11(%rbp)
je     11e3 <outputdeps+0xc3>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    11f3 <outputdeps+0xd3>
jmp    121a <outputdeps+0xfa>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    0x2dd5(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1177 <outputdeps+0x57>
mov    0x2dbf(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1040 <fputc@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x12(%rbp)
je     125d <outputdeps+0x13d>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
test   $0x1,%al
jne    126d <outputdeps+0x14d>
jmp    1272 <outputdeps+0x152>
jmp    122d <outputdeps+0x10d>
jmp    1134 <outputdeps+0x14>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outputdeps>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2eae(%rip),%r14
movabs $0x110000000001,%r15
nopl   0x0(%rax)
mov    %rbx,%r12
movsbl (%rbx),%edi
call   1030 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1140 <outputdeps+0x20>
mov    (%r12),%al
test   %al,%al
je     11c4 <outputdeps+0xa4>
nopl   0x0(%rax)
mov    %r12,%rbx
cmp    $0x2c,%al
ja     1170 <outputdeps+0x50>
movzbl %al,%ecx
bt     %rcx,%r15
jb     11a0 <outputdeps+0x80>
cmp    $0x7c,%al
je     11a0 <outputdeps+0x80>
movsbl %al,%edi
call   1030 <isspace@plt>
test   %rax,%rax
jne    11a0 <outputdeps+0x80>
lea    0x1(%rbx),%r12
movsbl (%rbx),%edi
mov    (%r14),%esi
call   1040 <fputc@plt>
movzbl 0x1(%rbx),%eax
jmp    1160 <outputdeps+0x40>
cs nopw 0x0(%rax,%rax,1)
mov    (%r14),%esi
mov    $0xa,%edi
call   1040 <fputc@plt>
nopl   (%rax)
movzbl (%rbx),%eax
test   %al,%al
je     1140 <outputdeps+0x20>
add    $0x1,%rbx
cmp    $0x2c,%al
jne    11b0 <outputdeps+0x90>
jmp    1140 <outputdeps+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdout = global i32 0
define void @outputdeps(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
store i8* %4, i8** %3
br label %5
5: ; preds = %1, %71
br label %6
6: ; preds = %11, %5
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = call i64 @isspace(i8 signext %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %3
br label %6
14: ; preds = %6
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = icmp ne i8 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
br label %72
19: ; preds = %14
br label %20
20: ; preds = %48, %19
%21 = load i8*, i8** %3
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %46
25: ; preds = %20
%26 = load i8*, i8** %3
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 40
br i1 %29, label %30, label %46
30: ; preds = %25
%31 = load i8*, i8** %3
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 124
br i1 %34, label %35, label %46
35: ; preds = %30
%36 = load i8*, i8** %3
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 44
br i1 %39, label %40, label %46
40: ; preds = %35
%41 = load i8*, i8** %3
%42 = load i8, i8* %41
%43 = call i64 @isspace(i8 signext %42)
%44 = icmp ne i64 %43, 0
%45 = xor i1 %44, true
br label %46
46: ; preds = %40, %35, %30, %25, %20
%47 = phi i1 [ false, %35 ], [ false, %30 ], [ false, %25 ], [ false, %20 ], [ %45, %40 ]
br i1 %47, label %48, label %54
48: ; preds = %46
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %3
%51 = load i8, i8* %49
%52 = load i32, i32* @stdout
%53 = call i32 @fputc(i8 signext %51, i32 %52)
br label %20
54: ; preds = %46
%55 = load i32, i32* @stdout
%56 = call i32 @fputc(i8 signext 10, i32 %55)
br label %57
57: ; preds = %70, %54
%58 = load i8*, i8** %3
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %3
%65 = load i8, i8* %63
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 44
br label %68
68: ; preds = %62, %57
%69 = phi i1 [ false, %57 ], [ %67, %62 ]
br i1 %69, label %70, label %71
70: ; preds = %68
br label %57
71: ; preds = %68
br label %5
72: ; preds = %18
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @outputdeps(i8* nocapture %0) {
br label %2
2: ; preds = %8, %1
%3 = phi i8* [ %0, %1 ], [ %9, %8 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isspace(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %10, label %8
8: ; preds = %32, %28, %2
%9 = phi i8* [ %7, %2 ], [ %29, %28 ], [ %33, %32 ]
br label %2
10: ; preds = %2
%11 = load i8, i8* %3
%12 = icmp eq i8 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %10, %19
%14 = phi i8 [ %24, %19 ], [ %11, %10 ]
%15 = phi i8* [ %20, %19 ], [ %3, %10 ]
switch i8 %14, label %16 [
i8 0, label %25
i8 40, label %25
i8 124, label %25
i8 44, label %25
]
16: ; preds = %13
%17 = tail call i64 @isspace(i8 signext %14)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %16
%20 = getelementptr inbounds i8, i8* %15, i64 1
%21 = load i8, i8* %15
%22 = load i32, i32* @stdout
%23 = tail call i32 @fputc(i8 signext %21, i32 %22)
%24 = load i8, i8* %20
br label %13
25: ; preds = %13, %13, %13, %13, %16
%26 = load i32, i32* @stdout
%27 = tail call i32 @fputc(i8 signext 10, i32 %26)
br label %28
28: ; preds = %32, %25
%29 = phi i8* [ %15, %25 ], [ %33, %32 ]
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 0
br i1 %31, label %8, label %32
32: ; preds = %28
%33 = getelementptr inbounds i8, i8* %29, i64 1
%34 = icmp eq i8 %30, 44
br i1 %34, label %8, label %28
35: ; preds = %10
ret void
}