#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*/ skipSpace(char **);
void comment(char **s) {
  skipSpace(s);
  if (**s == ';')
    for (; **s != '\n' && **s != '\0'; (*s)++)
      ;
}


x86 assembly (clang, -O0):
<comment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <skipSpace@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
jne    1195 <comment+0x85>
jmp    113d <comment+0x2d>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x9(%rbp)
je     1168 <comment+0x58>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1178 <comment+0x68>
jmp    1190 <comment+0x80>
jmp    117d <comment+0x6d>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    113d <comment+0x2d>
jmp    1195 <comment+0x85>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<comment>:
push   %rbx
mov    %rdi,%rbx
call   1030 <skipSpace@plt>
mov    (%rbx),%rax
cmpb   $0x3b,(%rax)
jne    1143 <comment+0x33>
add    $0x1,%rax
mov    $0x3b,%cl
test   %cl,%cl
je     1143 <comment+0x33>
nopl   0x0(%rax,%rax,1)
cmp    $0xa,%cl
je     1143 <comment+0x33>
mov    %rax,(%rbx)
movzbl (%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1130 <comment+0x20>
pop    %rbx
ret

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

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