#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 */
void skipNextComma(char **p_cur) {
  if (*p_cur == NULL)
    return;
  while (**p_cur != '\0' && **p_cur != ',') {
    (*p_cur)++;
  }
  if (**p_cur == ',') {
    (*p_cur)++;
  }
}


x86 assembly (clang, -O0):
<skipNextComma>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jne    111b <skipNextComma+0x1b>
jmp    118f <skipNextComma+0x8f>
jmp    1120 <skipNextComma+0x20>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     114b <skipNextComma+0x4b>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    115b <skipNextComma+0x5b>
jmp    116e <skipNextComma+0x6e>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    1120 <skipNextComma+0x20>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
jne    118f <skipNextComma+0x8f>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipNextComma>:
mov    (%rdi),%rax
test   %rax,%rax
je     1129 <skipNextComma+0x29>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
test   %cl,%cl
je     1129 <skipNextComma+0x29>
cmp    $0x2c,%cl
je     1126 <skipNextComma+0x26>
mov    %rax,(%rdi)
jmp    1110 <skipNextComma+0x10>
mov    %rax,(%rdi)
ret

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

LLVM IR (-O2):
define void @skipNextComma(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %11, label %4
4: ; preds = %1, %7
%5 = phi i8* [ %8, %7 ], [ %2, %1 ]
%6 = load i8, i8* %5
switch i8 %6, label %7 [
i8 44, label %9
i8 0, label %11
]
7: ; preds = %4
%8 = getelementptr inbounds i8, i8* %5, i64 1
store i8* %8, i8** %0
br label %4
9: ; preds = %4
%10 = getelementptr inbounds i8, i8* %5, i64 1
store i8* %10, i8** %0
br label %11
11: ; preds = %4, %1, %9
ret void
}