#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*/ assert(int /*<<< orphan*/);
scalar_t__ isspace(int);
void skip_Comma(char **pp) {
  register char *p;
  assert(pp != NULL);
  assert(*pp != NULL);
  p = *pp;
  while (isspace((int)*p))
    ++p;
  if (*p == ',')
    ++p;
  while (isspace((int)*p))
    ++p;
  *pp = p;
}


x86 assembly (clang, -O0):
<skip_Comma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1185 <skip_Comma+0x65>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    115e <skip_Comma+0x3e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
jne    11a1 <skip_Comma+0x81>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11a6 <skip_Comma+0x86>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     11cd <skip_Comma+0xad>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11a6 <skip_Comma+0x86>
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_Comma>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
xor    %edi,%edi
test   %r14,%r14
setne  %dil
call   1040 <assert@plt>
xor    %edi,%edi
cmpq   $0x0,(%r14)
setne  %dil
call   1040 <assert@plt>
mov    (%r14),%rbx
add    $0xfffffffffffffffe,%rbx
nopl   0x0(%rax)
movsbl 0x2(%rbx),%edi
call   1030 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1150 <skip_Comma+0x30>
xor    %r15d,%r15d
cmpb   $0x2c,0x1(%rbx)
sete   %r15b
nopl   (%rax)
movsbl 0x1(%rbx,%r15,1),%edi
call   1030 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1170 <skip_Comma+0x50>
add    %r15,%rbx
mov    %rbx,(%r14)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @skip_Comma(i8** %0) {
%2 = alloca i8**
%3 = alloca i8*
store i8** %0, i8*** %2
%4 = load i8**, i8*** %2
%5 = icmp ne i8** %4, null
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i8**, i8*** %2
%9 = load i8*, i8** %8
%10 = icmp ne i8* %9, null
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i8**, i8*** %2
%14 = load i8*, i8** %13
store i8* %14, i8** %3
br label %15
15: ; preds = %21, %1
%16 = load i8*, i8** %3
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = call i64 @isspace(i32 %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %3
br label %15
24: ; preds = %15
%25 = load i8*, i8** %3
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 44
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = load i8*, i8** %3
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %3
br label %32
32: ; preds = %29, %24
br label %33
33: ; preds = %39, %32
%34 = load i8*, i8** %3
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = call i64 @isspace(i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = getelementptr inbounds i8, i8* %40, i32 1
store i8* %41, i8** %3
br label %33
42: ; preds = %33
%43 = load i8*, i8** %3
%44 = load i8**, i8*** %2
store i8* %43, i8** %44
ret void
}

LLVM IR (-O2):
define void @skip_Comma(i8** %0) {
%2 = icmp ne i8** %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = load i8*, i8** %0
%6 = icmp ne i8* %5, null
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = load i8*, i8** %0
br label %10
10: ; preds = %10, %1
%11 = phi i8* [ %9, %1 ], [ %16, %10 ]
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = tail call i64 @isspace(i32 %13)
%15 = icmp eq i64 %14, 0
%16 = getelementptr inbounds i8, i8* %11, i64 1
br i1 %15, label %17, label %10
17: ; preds = %10
%18 = load i8, i8* %11
%19 = icmp eq i8 %18, 44
%20 = zext i1 %19 to i64
%21 = getelementptr i8, i8* %11, i64 %20
br label %22
22: ; preds = %22, %17
%23 = phi i8* [ %21, %17 ], [ %28, %22 ]
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = tail call i64 @isspace(i32 %25)
%27 = icmp eq i64 %26, 0
%28 = getelementptr inbounds i8, i8* %23, i64 1
br i1 %27, label %29, label %22
29: ; preds = %22
store i8* %23, i8** %0
ret void
}