#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 atoi(char *);
scalar_t__ isspace(unsigned char);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ syntax(char *, char *);
char *parse_extra(char *p, char **p_name, char **p_middle, char **p_lines,
                  char **p_scale, char **p_octave, char **p_microscale) {
  for (;;) {
    if (strncmp(p, "clef=", 5) == 0 || strncmp(p, "bass", 4) == 0 ||
        strncmp(p, "treble", 6) == 0 || strncmp(p, "alto", 4) == 0 ||
        strncmp(p, "tenor", 5) == 0 || strncmp(p, "perc", 4) == 0) {
      if (*p_name)
        syntax("Double clef name", p);
      *p_name = p;
    } else if (strncmp(p, "microscale=", 11) == 0) {
      int i;
      if (*p_microscale)
        syntax("Double microscale=", p);
      i = atoi(p + 11);
      if (i < 4 || i > 255)
        syntax("Invalid value in microscale=", p);
      else
        *p_microscale = p + 11;
    } else if (strncmp(p, "middle=", 7) == 0 || strncmp(p, "m=", 2) == 0) {
      if (*p_middle)
        syntax("Double clef middle", p);
      *p_middle = p + (p[1] == '=' ? 2 : 7);
    } else if (strncmp(p, "octave=", 7) == 0) {
      if (*p_octave)
        syntax("Double octave=", p);
      *p_octave = p + 7;
    } else if (strncmp(p, "stafflines=", 11) == 0) {
      if (*p_lines)
        syntax("Double stafflines", p);
      *p_lines = p + 11;
    } else if (strncmp(p, "staffscale=", 11) == 0) {
      if (*p_scale)
        syntax("Double staffscale", p);
      *p_scale = p + 11;
    } else if (strncmp(p, "transpose=", 10) == 0 || strncmp(p, "t=", 2) == 0) {
      ;
    } else {
      break;
    }
    while (!isspace((unsigned char)*p) && *p != '\0')
      p++;
    while (isspace((unsigned char)*p))
      p++;
    if (*p == '\0')
      break;
  }
  return p;
}


x86 assembly (clang, -O0):
<parse_extra>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe91(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     121e <parse_extra+0xde>
mov    -0x8(%rbp),%rdi
lea    0xe78(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     121e <parse_extra+0xde>
mov    -0x8(%rbp),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     121e <parse_extra+0xde>
mov    -0x8(%rbp),%rdi
lea    0xe46(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     121e <parse_extra+0xde>
mov    -0x8(%rbp),%rdi
lea    0xe2c(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     121e <parse_extra+0xde>
mov    -0x8(%rbp),%rdi
lea    0xe13(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    124c <parse_extra+0x10c>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     123c <parse_extra+0xfc>
mov    -0x8(%rbp),%rsi
lea    0xdeb(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    14bb <parse_extra+0x37b>
mov    -0x8(%rbp),%rdi
lea    0xde3(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12d9 <parse_extra+0x199>
mov    0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     1289 <parse_extra+0x149>
mov    -0x8(%rbp),%rsi
lea    0xdaf(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rdi
add    $0xb,%rdi
call   1060 <atoi@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jl     12b0 <parse_extra+0x170>
cmpl   $0xff,-0x34(%rbp)
jle    12c5 <parse_extra+0x185>
mov    -0x8(%rbp),%rsi
lea    0xd8b(%rip),%rdi
call   1050 <syntax@plt>
jmp    12d4 <parse_extra+0x194>
mov    -0x8(%rbp),%rcx
add    $0xb,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    14b6 <parse_extra+0x376>
mov    -0x8(%rbp),%rdi
lea    0xd7f(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1317 <parse_extra+0x1d7>
mov    -0x8(%rbp),%rdi
lea    0xd68(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1362 <parse_extra+0x222>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1335 <parse_extra+0x1f5>
mov    -0x8(%rbp),%rsi
lea    0xd3e(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%esi
mov    $0x7,%eax
mov    $0x2,%edx
cmp    $0x3d,%esi
cmove  %edx,%eax
cltq
add    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    14b1 <parse_extra+0x371>
mov    -0x8(%rbp),%rdi
lea    0xd1b(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13b3 <parse_extra+0x273>
mov    -0x30(%rbp),%rax
cmpq   $0x0,(%rax)
je     139f <parse_extra+0x25f>
mov    -0x8(%rbp),%rsi
lea    0xce7(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rcx
add    $0x7,%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
jmp    14ac <parse_extra+0x36c>
mov    -0x8(%rbp),%rdi
lea    0xcd2(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1404 <parse_extra+0x2c4>
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     13f0 <parse_extra+0x2b0>
mov    -0x8(%rbp),%rsi
lea    0xcb1(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rcx
add    $0xb,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
jmp    14a7 <parse_extra+0x367>
mov    -0x8(%rbp),%rdi
lea    0xc9f(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1455 <parse_extra+0x315>
mov    -0x28(%rbp),%rax
cmpq   $0x0,(%rax)
je     1441 <parse_extra+0x301>
mov    -0x8(%rbp),%rsi
lea    0xc7e(%rip),%rdi
call   1050 <syntax@plt>
mov    -0x8(%rbp),%rcx
add    $0xb,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
jmp    14a2 <parse_extra+0x362>
mov    -0x8(%rbp),%rdi
lea    0xc6c(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1493 <parse_extra+0x353>
mov    -0x8(%rbp),%rdi
lea    0xc58(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1498 <parse_extra+0x358>
jmp    149d <parse_extra+0x35d>
jmp    1555 <parse_extra+0x415>
jmp    14a2 <parse_extra+0x362>
jmp    14a7 <parse_extra+0x367>
jmp    14ac <parse_extra+0x36c>
jmp    14b1 <parse_extra+0x371>
jmp    14b6 <parse_extra+0x376>
jmp    14bb <parse_extra+0x37b>
jmp    14c0 <parse_extra+0x380>
mov    -0x8(%rbp),%rax
movzbl (%rax),%edi
call   1040 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x35(%rbp)
jne    14ee <parse_extra+0x3ae>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
test   $0x1,%al
jne    14fe <parse_extra+0x3be>
jmp    150f <parse_extra+0x3cf>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    14c0 <parse_extra+0x380>
jmp    1514 <parse_extra+0x3d4>
mov    -0x8(%rbp),%rax
movzbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     153b <parse_extra+0x3fb>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1514 <parse_extra+0x3d4>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1550 <parse_extra+0x410>
jmp    1555 <parse_extra+0x415>
jmp    1164 <parse_extra+0x24>
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_extra>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xe94(%rip),%r15
lea    0xeaf(%rip),%r12
lea    0xe8c(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
lea    0xe4f(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
lea    0xe39(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
lea    0xe21(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
lea    0xe0a(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1310 <parse_extra+0x1d0>
mov    %rbx,%rdi
lea    0xe0a(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     13b3 <parse_extra+0x273>
mov    %rbx,%rdi
lea    0xe16(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1380 <parse_extra+0x240>
mov    %rbx,%rdi
lea    0xe01(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1380 <parse_extra+0x240>
mov    %rbx,%rdi
lea    0xe01(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1410 <parse_extra+0x2d0>
mov    %rbx,%rdi
lea    0xdec(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     143b <parse_extra+0x2fb>
mov    %rbx,%rdi
lea    0xded(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1466 <parse_extra+0x326>
mov    %rbx,%rdi
lea    0xdee(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1326 <parse_extra+0x1e6>
mov    %rbx,%rdi
lea    0xde0(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1326 <parse_extra+0x1e6>
jmp    148f <parse_extra+0x34f>
nopl   0x0(%rax,%rax,1)
cmpq   $0x0,0x0(%rbp)
je     1322 <parse_extra+0x1e2>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
mov    %rbx,0x0(%rbp)
movzbl (%rbx),%edi
nopl   0x0(%rax)
call   1040 <isspace@plt>
test   %rax,%rax
jne    1350 <parse_extra+0x210>
cmpb   $0x0,(%rbx)
je     1350 <parse_extra+0x210>
movzbl 0x1(%rbx),%edi
add    $0x1,%rbx
jmp    1330 <parse_extra+0x1f0>
nopl   0x0(%rax)
add    $0xffffffffffffffff,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1040 <isspace@plt>
test   %rax,%rax
jne    1360 <parse_extra+0x220>
cmpb   $0x0,(%rbx)
jne    1180 <parse_extra+0x40>
jmp    148f <parse_extra+0x34f>
cmpq   $0x0,0x0(%r13)
je     1396 <parse_extra+0x256>
lea    0xce0(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
xor    %eax,%eax
cmpb   $0x3d,0x1(%rbx)
setne  %al
lea    (%rax,%rax,4),%rax
add    %rbx,%rax
add    $0x2,%rax
mov    %rax,0x0(%r13)
jmp    1326 <parse_extra+0x1e6>
mov    %r13,%r12
mov    0x50(%rsp),%rax
cmpq   $0x0,(%rax)
je     13d0 <parse_extra+0x290>
lea    0xc6b(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
lea    0xb(%rbx),%r13
mov    %r13,%rdi
call   1060 <atoi@plt>
add    $0xffffff00,%eax
cmp    $0xffffff03,%eax
ja     13f9 <parse_extra+0x2b9>
lea    0xc57(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
jmp    1401 <parse_extra+0x2c1>
mov    0x50(%rsp),%rax
mov    %r13,(%rax)
mov    %r12,%r13
lea    0xc17(%rip),%r12
jmp    1326 <parse_extra+0x1e6>
mov    0x10(%rsp),%rax
cmpq   $0x0,(%rax)
je     142a <parse_extra+0x2ea>
lea    0xc5f(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
lea    0x7(%rbx),%rax
mov    0x10(%rsp),%rcx
mov    %rax,(%rcx)
jmp    1326 <parse_extra+0x1e6>
mov    0x8(%rsp),%rax
cmpq   $0x0,(%rax)
je     1455 <parse_extra+0x315>
lea    0xc4f(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
lea    0xb(%rbx),%rax
mov    0x8(%rsp),%rcx
mov    %rax,(%rcx)
jmp    1326 <parse_extra+0x1e6>
mov    (%rsp),%rax
cmpq   $0x0,(%rax)
je     147f <parse_extra+0x33f>
lea    0xc43(%rip),%rdi
mov    %rbx,%rsi
call   1050 <syntax@plt>
lea    0xb(%rbx),%rax
mov    (%rsp),%rcx
mov    %rax,(%rcx)
jmp    1326 <parse_extra+0x1e6>
mov    %rbx,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clef=\00"
@.str.1 = [5 x i8] c"bass\00"
@.str.2 = [7 x i8] c"treble\00"
@.str.3 = [5 x i8] c"alto\00"
@.str.4 = [6 x i8] c"tenor\00"
@.str.5 = [5 x i8] c"perc\00"
@.str.6 = [17 x i8] c"Double clef name\00"
@.str.7 = [12 x i8] c"microscale=\00"
@.str.8 = [19 x i8] c"Double microscale=\00"
@.str.9 = [29 x i8] c"Invalid value in microscale=\00"
@.str.10 = [8 x i8] c"middle=\00"
@.str.11 = [3 x i8] c"m=\00"
@.str.12 = [19 x i8] c"Double clef middle\00"
@.str.13 = [8 x i8] c"octave=\00"
@.str.14 = [15 x i8] c"Double octave=\00"
@.str.15 = [12 x i8] c"stafflines=\00"
@.str.16 = [18 x i8] c"Double stafflines\00"
@.str.17 = [12 x i8] c"staffscale=\00"
@.str.18 = [18 x i8] c"Double staffscale\00"
@.str.19 = [11 x i8] c"transpose=\00"
@.str.20 = [3 x i8] c"t=\00"
define i8* @parse_extra(i8* %0, i8** %1, i8** %2, i8** %3, i8** %4, i8** %5, i8** %6) {
%8 = alloca i8*
%9 = alloca i8**
%10 = alloca i8**
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i8**
%14 = alloca i8**
%15 = alloca i32
store i8* %0, i8** %8
store i8** %1, i8*** %9
store i8** %2, i8*** %10
store i8** %3, i8*** %11
store i8** %4, i8*** %12
store i8** %5, i8*** %13
store i8** %6, i8*** %14
br label %16
16: ; preds = %197, %7
%17 = load i8*, i8** %8
%18 = call i64 @strncmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%19 = icmp eq i64 %18, 0
br i1 %19, label %40, label %20
20: ; preds = %16
%21 = load i8*, i8** %8
%22 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%23 = icmp eq i64 %22, 0
br i1 %23, label %40, label %24
24: ; preds = %20
%25 = load i8*, i8** %8
%26 = call i64 @strncmp(i8* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%27 = icmp eq i64 %26, 0
br i1 %27, label %40, label %28
28: ; preds = %24
%29 = load i8*, i8** %8
%30 = call i64 @strncmp(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%31 = icmp eq i64 %30, 0
br i1 %31, label %40, label %32
32: ; preds = %28
%33 = load i8*, i8** %8
%34 = call i64 @strncmp(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5)
%35 = icmp eq i64 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = load i8*, i8** %8
%38 = call i64 @strncmp(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %50
40: ; preds = %36, %32, %28, %24, %20, %16
%41 = load i8**, i8*** %9
%42 = load i8*, i8** %41
%43 = icmp ne i8* %42, null
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = load i8*, i8** %8
%46 = call i32 @syntax(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %45)
br label %47
47: ; preds = %44, %40
%48 = load i8*, i8** %8
%49 = load i8**, i8*** %9
store i8* %48, i8** %49
br label %166
50: ; preds = %36
%51 = load i8*, i8** %8
%52 = call i64 @strncmp(i8* %51, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 11)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %78
54: ; preds = %50
%55 = load i8**, i8*** %14
%56 = load i8*, i8** %55
%57 = icmp ne i8* %56, null
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i8*, i8** %8
%60 = call i32 @syntax(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %59)
br label %61
61: ; preds = %58, %54
%62 = load i8*, i8** %8
%63 = getelementptr inbounds i8, i8* %62, i64 11
%64 = call i32 @atoi(i8* %63)
store i32 %64, i32* %15
%65 = load i32, i32* %15
%66 = icmp slt i32 %65, 4
br i1 %66, label %70, label %67
67: ; preds = %61
%68 = load i32, i32* %15
%69 = icmp sgt i32 %68, 255
br i1 %69, label %70, label %73
70: ; preds = %67, %61
%71 = load i8*, i8** %8
%72 = call i32 @syntax(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %71)
br label %77
73: ; preds = %67
%74 = load i8*, i8** %8
%75 = getelementptr inbounds i8, i8* %74, i64 11
%76 = load i8**, i8*** %14
store i8* %75, i8** %76
br label %77
77: ; preds = %73, %70
br label %165
78: ; preds = %50
%79 = load i8*, i8** %8
%80 = call i64 @strncmp(i8* %79, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 7)
%81 = icmp eq i64 %80, 0
br i1 %81, label %86, label %82
82: ; preds = %78
%83 = load i8*, i8** %8
%84 = call i64 @strncmp(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 2)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %105
86: ; preds = %82, %78
%87 = load i8**, i8*** %10
%88 = load i8*, i8** %87
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %93
90: ; preds = %86
%91 = load i8*, i8** %8
%92 = call i32 @syntax(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %91)
br label %93
93: ; preds = %90, %86
%94 = load i8*, i8** %8
%95 = load i8*, i8** %8
%96 = getelementptr inbounds i8, i8* %95, i64 1
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 61
%100 = zext i1 %99 to i64
%101 = select i1 %99, i32 2, i32 7
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, i8* %94, i64 %102
%104 = load i8**, i8*** %10
store i8* %103, i8** %104
br label %164
105: ; preds = %82
%106 = load i8*, i8** %8
%107 = call i64 @strncmp(i8* %106, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32 7)
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %120
109: ; preds = %105
%110 = load i8**, i8*** %13
%111 = load i8*, i8** %110
%112 = icmp ne i8* %111, null
br i1 %112, label %113, label %116
113: ; preds = %109
%114 = load i8*, i8** %8
%115 = call i32 @syntax(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %114)
br label %116
116: ; preds = %113, %109
%117 = load i8*, i8** %8
%118 = getelementptr inbounds i8, i8* %117, i64 7
%119 = load i8**, i8*** %13
store i8* %118, i8** %119
br label %163
120: ; preds = %105
%121 = load i8*, i8** %8
%122 = call i64 @strncmp(i8* %121, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 11)
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %135
124: ; preds = %120
%125 = load i8**, i8*** %11
%126 = load i8*, i8** %125
%127 = icmp ne i8* %126, null
br i1 %127, label %128, label %131
128: ; preds = %124
%129 = load i8*, i8** %8
%130 = call i32 @syntax(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i8* %129)
br label %131
131: ; preds = %128, %124
%132 = load i8*, i8** %8
%133 = getelementptr inbounds i8, i8* %132, i64 11
%134 = load i8**, i8*** %11
store i8* %133, i8** %134
br label %162
135: ; preds = %120
%136 = load i8*, i8** %8
%137 = call i64 @strncmp(i8* %136, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 11)
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %150
139: ; preds = %135
%140 = load i8**, i8*** %12
%141 = load i8*, i8** %140
%142 = icmp ne i8* %141, null
br i1 %142, label %143, label %146
143: ; preds = %139
%144 = load i8*, i8** %8
%145 = call i32 @syntax(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %144)
br label %146
146: ; preds = %143, %139
%147 = load i8*, i8** %8
%148 = getelementptr inbounds i8, i8* %147, i64 11
%149 = load i8**, i8*** %12
store i8* %148, i8** %149
br label %161
150: ; preds = %135
%151 = load i8*, i8** %8
%152 = call i64 @strncmp(i8* %151, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 10)
%153 = icmp eq i64 %152, 0
br i1 %153, label %158, label %154
154: ; preds = %150
%155 = load i8*, i8** %8
%156 = call i64 @strncmp(i8* %155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 2)
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %159
158: ; preds = %154, %150
br label %160
159: ; preds = %154
br label %198
160: ; preds = %158
br label %161
161: ; preds = %160, %146
br label %162
162: ; preds = %161, %131
br label %163
163: ; preds = %162, %116
br label %164
164: ; preds = %163, %93
br label %165
165: ; preds = %164, %77
br label %166
166: ; preds = %165, %47
br label %167
167: ; preds = %179, %166
%168 = load i8*, i8** %8
%169 = load i8, i8* %168
%170 = call i64 @isspace(i8 zeroext %169)
%171 = icmp ne i64 %170, 0
br i1 %171, label %177, label %172
172: ; preds = %167
%173 = load i8*, i8** %8
%174 = load i8, i8* %173
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 0
br label %177
177: ; preds = %172, %167
%178 = phi i1 [ false, %167 ], [ %176, %172 ]
br i1 %178, label %179, label %182
179: ; preds = %177
%180 = load i8*, i8** %8
%181 = getelementptr inbounds i8, i8* %180, i32 1
store i8* %181, i8** %8
br label %167
182: ; preds = %177
br label %183
183: ; preds = %188, %182
%184 = load i8*, i8** %8
%185 = load i8, i8* %184
%186 = call i64 @isspace(i8 zeroext %185)
%187 = icmp ne i64 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %183
%189 = load i8*, i8** %8
%190 = getelementptr inbounds i8, i8* %189, i32 1
store i8* %190, i8** %8
br label %183
191: ; preds = %183
%192 = load i8*, i8** %8
%193 = load i8, i8* %192
%194 = sext i8 %193 to i32
%195 = icmp eq i32 %194, 0
br i1 %195, label %196, label %197
196: ; preds = %191
br label %198
197: ; preds = %191
br label %16
198: ; preds = %196, %159
%199 = load i8*, i8** %8
ret i8* %199
}

LLVM IR (-O2):
@.str = [6 x i8] c"clef=\00"
@.str.1 = [5 x i8] c"bass\00"
@.str.2 = [7 x i8] c"treble\00"
@.str.3 = [5 x i8] c"alto\00"
@.str.4 = [6 x i8] c"tenor\00"
@.str.5 = [5 x i8] c"perc\00"
@.str.6 = [17 x i8] c"Double clef name\00"
@.str.7 = [12 x i8] c"microscale=\00"
@.str.8 = [19 x i8] c"Double microscale=\00"
@.str.9 = [29 x i8] c"Invalid value in microscale=\00"
@.str.10 = [8 x i8] c"middle=\00"
@.str.11 = [3 x i8] c"m=\00"
@.str.12 = [19 x i8] c"Double clef middle\00"
@.str.13 = [8 x i8] c"octave=\00"
@.str.14 = [15 x i8] c"Double octave=\00"
@.str.15 = [12 x i8] c"stafflines=\00"
@.str.16 = [18 x i8] c"Double stafflines\00"
@.str.17 = [12 x i8] c"staffscale=\00"
@.str.18 = [18 x i8] c"Double staffscale\00"
@.str.19 = [11 x i8] c"transpose=\00"
@.str.20 = [3 x i8] c"t=\00"
define i8* @parse_extra(i8* %0, i8** nocapture %1, i8** nocapture %2, i8** nocapture %3, i8** nocapture %4, i8** nocapture %5, i8** nocapture %6) {
br label %8
8: ; preds = %123, %7
%9 = phi i8* [ %0, %7 ], [ %118, %123 ]
%10 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%11 = icmp eq i64 %10, 0
br i1 %11, label %27, label %12
12: ; preds = %8
%13 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%14 = icmp eq i64 %13, 0
br i1 %14, label %27, label %15
15: ; preds = %12
%16 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%17 = icmp eq i64 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %15
%19 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%20 = icmp eq i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5)
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %24, %21, %18, %15, %12, %8
%28 = load i8*, i8** %1
%29 = icmp eq i8* %28, null
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = tail call i32 @syntax(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* %9)
br label %32
32: ; preds = %30, %27
store i8* %9, i8** %1
br label %102
33: ; preds = %24
%34 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 11)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %49
36: ; preds = %33
%37 = load i8*, i8** %6
%38 = icmp eq i8* %37, null
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = tail call i32 @syntax(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %9)
br label %41
41: ; preds = %39, %36
%42 = getelementptr inbounds i8, i8* %9, i64 11
%43 = tail call i32 @atoi(i8* %42)
%44 = add i32 %43, -256
%45 = icmp ult i32 %44, -252
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = tail call i32 @syntax(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %9)
br label %102
48: ; preds = %41
store i8* %42, i8** %6
br label %102
49: ; preds = %33
%50 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 7)
%51 = icmp eq i64 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %49
%53 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 2)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %66
55: ; preds = %52, %49
%56 = load i8*, i8** %2
%57 = icmp eq i8* %56, null
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = tail call i32 @syntax(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %9)
br label %60
60: ; preds = %58, %55
%61 = getelementptr inbounds i8, i8* %9, i64 1
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 61
%64 = select i1 %63, i64 2, i64 7
%65 = getelementptr inbounds i8, i8* %9, i64 %64
store i8* %65, i8** %2
br label %102
66: ; preds = %52
%67 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32 7)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = load i8*, i8** %5
%71 = icmp eq i8* %70, null
br i1 %71, label %74, label %72
72: ; preds = %69
%73 = tail call i32 @syntax(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %9)
br label %74
74: ; preds = %72, %69
%75 = getelementptr inbounds i8, i8* %9, i64 7
store i8* %75, i8** %5
br label %102
76: ; preds = %66
%77 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 11)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %86
79: ; preds = %76
%80 = load i8*, i8** %3
%81 = icmp eq i8* %80, null
br i1 %81, label %84, label %82
82: ; preds = %79
%83 = tail call i32 @syntax(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i8* %9)
br label %84
84: ; preds = %82, %79
%85 = getelementptr inbounds i8, i8* %9, i64 11
store i8* %85, i8** %3
br label %102
86: ; preds = %76
%87 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 11)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %96
89: ; preds = %86
%90 = load i8*, i8** %4
%91 = icmp eq i8* %90, null
br i1 %91, label %94, label %92
92: ; preds = %89
%93 = tail call i32 @syntax(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8* %9)
br label %94
94: ; preds = %92, %89
%95 = getelementptr inbounds i8, i8* %9, i64 11
store i8* %95, i8** %4
br label %102
96: ; preds = %86
%97 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 10)
%98 = icmp eq i64 %97, 0
br i1 %98, label %102, label %99
99: ; preds = %96
%100 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 2)
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %126
102: ; preds = %46, %48, %74, %94, %96, %99, %84, %60, %32
%103 = load i8, i8* %9
%104 = tail call i64 @isspace(i8 zeroext %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %115
106: ; preds = %102, %110
%107 = phi i8* [ %111, %110 ], [ %9, %102 ]
%108 = load i8, i8* %107
%109 = icmp eq i8 %108, 0
br i1 %109, label %115, label %110
110: ; preds = %106
%111 = getelementptr inbounds i8, i8* %107, i64 1
%112 = load i8, i8* %111
%113 = tail call i64 @isspace(i8 zeroext %112)
%114 = icmp eq i64 %113, 0
br i1 %114, label %106, label %115
115: ; preds = %106, %110, %102
%116 = phi i8* [ %9, %102 ], [ %107, %106 ], [ %111, %110 ]
br label %117
117: ; preds = %115, %117
%118 = phi i8* [ %122, %117 ], [ %116, %115 ]
%119 = load i8, i8* %118
%120 = tail call i64 @isspace(i8 zeroext %119)
%121 = icmp eq i64 %120, 0
%122 = getelementptr inbounds i8, i8* %118, i64 1
br i1 %121, label %123, label %117
123: ; preds = %117
%124 = load i8, i8* %118
%125 = icmp eq i8 %124, 0
br i1 %125, label %126, label %8
126: ; preds = %123, %99
%127 = phi i8* [ %118, %123 ], [ %9, %99 ]
ret i8* %127
}