#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 */
struct stat {
  int st_size;
};

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ dosplit(int, int, char *, int, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int read(int, char *, int);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int strtoul(char *, char **, int /*<<< orphan*/);
int main(int argc, char **argv) {
  struct stat statbuf;
  char fontbuf[4096];
  int fd;
  char *p, *q;
  int from, to;
  if (argc != 3) {
    fprintf(stderr, "call: splitfont fontfile 17,23-30,...\n");
    exit(1);
  }
  if (stat(argv[1], &statbuf)) {
    perror("splitfont");
    fprintf(stderr, "cannot stat fontfile %s", argv[1]);
    exit(1);
  }
  if (statbuf.st_size > 4096) {
    fprintf(stderr, "splitfont: file unexpectedly large\n");
    exit(1);
  }
  if (statbuf.st_size % 256) {
    fprintf(stderr, "splitfont: file size not a multiple of 256\n");
    exit(1);
  }
  if ((fd = open(argv[1], O_RDONLY)) < 0) {
    perror("splitfont");
    fprintf(stderr, "cannot open fontfile %s", argv[1]);
    exit(1);
  }
  if (read(fd, fontbuf, statbuf.st_size) != statbuf.st_size) {
    perror("splitfont");
    fprintf(stderr, "error reading fontfile %s", argv[1]);
    exit(1);
  }
  p = argv[2];
  while (1) {
    to = from = strtoul(p, &q, 0);
    if (*q == '-') {
      p = q + 1;
      to = strtoul(p, &q, 0);
    }
    if (*q && *q != ',') {
      fprintf(stderr, "splitfont: garbage in %s\n", p);
      exit(1);
    }
    dosplit(from, to, fontbuf, statbuf.st_size, argv[1]);
    if (!*q)
      break;
    p = q + 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1040,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11c4 <main+0x44>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <stat@plt>
cmp    $0x0,%rax
je     1214 <main+0x94>
lea    0xe41(%rip),%rdi
call   1080 <perror@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
cmpl   $0x1000,-0x18(%rbp)
jle    1242 <main+0xc2>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
lea    0xe18(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x18(%rbp),%eax
mov    $0x100,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1277 <main+0xf7>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2d62(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,-0x1024(%rbp)
cmp    $0x0,%eax
jge    12d1 <main+0x151>
lea    0xd84(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d29(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x1024(%rbp),%edi
lea    -0x1020(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1030 <read@plt>
cmp    -0x18(%rbp),%eax
je     1324 <main+0x1a4>
lea    0xd31(%rip),%rdi
call   1080 <perror@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xd9e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x1030(%rbp)
mov    -0x1030(%rbp),%rdi
lea    -0x1038(%rbp),%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x103c(%rbp)
mov    %eax,-0x1040(%rbp)
mov    -0x1038(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1394 <main+0x214>
mov    -0x1038(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x1030(%rbp)
mov    -0x1030(%rbp),%rdi
lea    -0x1038(%rbp),%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x1040(%rbp)
mov    -0x1038(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     13e2 <main+0x262>
mov    -0x1038(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
je     13e2 <main+0x262>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
mov    -0x1030(%rbp),%rdx
lea    0xcfa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x103c(%rbp),%edi
mov    -0x1040(%rbp),%esi
lea    -0x1020(%rbp),%rdx
mov    -0x18(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%r8
call   1040 <dosplit@plt>
mov    -0x1038(%rbp),%rax
cmpb   $0x0,(%rax)
jne    141a <main+0x29a>
jmp    1431 <main+0x2b1>
mov    -0x1038(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x1030(%rbp)
jmp    1333 <main+0x1b3>
xor    %eax,%eax
add    $0x1040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1018,%rsp
cmp    $0x3,%edi
jne    12b3 <main+0x133>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
mov    %rsp,%rsi
call   1060 <stat@plt>
test   %rax,%rax
jne    12c5 <main+0x145>
mov    (%rsp),%eax
cmp    $0x1001,%eax
jge    12e7 <main+0x167>
test   %al,%al
jne    12f9 <main+0x179>
mov    0x8(%r14),%rdi
mov    0x2e15(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
test   %eax,%eax
js     131a <main+0x19a>
mov    (%rsp),%edx
lea    0x10(%rsp),%rsi
mov    %eax,%edi
call   1030 <read@plt>
cmp    (%rsp),%eax
jne    133f <main+0x1bf>
mov    0x10(%r14),%rbp
lea    0x8(%rsp),%r12
lea    0x10(%rsp),%r15
jmp    122b <main+0xab>
nopw   0x0(%rax,%rax,1)
mov    (%rsp),%ecx
mov    0x8(%r14),%r8
mov    %r13d,%edi
mov    %r15,%rdx
call   1040 <dosplit@plt>
lea    0x1(%rbx),%rbp
cmpb   $0x0,(%rbx)
je     129f <main+0x11f>
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,%r13d
mov    0x8(%rsp),%rbx
movzbl (%rbx),%eax
cmp    $0x2d,%al
jne    1270 <main+0xf0>
mov    %rbx,%rbp
add    $0x1,%rbp
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,%esi
mov    0x8(%rsp),%rbx
movzbl (%rbx),%eax
test   %al,%al
jne    1277 <main+0xf7>
jmp    1210 <main+0x90>
nopl   0x0(%rax,%rax,1)
mov    %r13d,%esi
test   %al,%al
je     1210 <main+0x90>
cmp    $0x2c,%al
je     1210 <main+0x90>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
lea    0xe40(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
xor    %eax,%eax
add    $0x1018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
lea    0xd3d(%rip),%rsi
jmp    1309 <main+0x189>
lea    0xd5b(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
lea    0xd4c(%rip),%rsi
jmp    128e <main+0x10e>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
lea    0xd52(%rip),%rsi
jmp    1309 <main+0x189>
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    0xd64(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd06(%rip),%rdi
call   1080 <perror@plt>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
lea    0xd5f(%rip),%rsi
jmp    128e <main+0x10e>
lea    0xce1(%rip),%rdi
call   1080 <perror@plt>
mov    0x2c86(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
lea    0xd52(%rip),%rsi
jmp    128e <main+0x10e>

LLVM IR (-O0):
%struct.stat = type { i32 }
@stderr = global i32 0
@.str = [39 x i8] c"call: splitfont fontfile 17,23-30,...\0A\00"
@.str.1 = [10 x i8] c"splitfont\00"
@.str.2 = [24 x i8] c"cannot stat fontfile %s\00"
@.str.3 = [36 x i8] c"splitfont: file unexpectedly large\0A\00"
@.str.4 = [44 x i8] c"splitfont: file size not a multiple of 256\0A\00"
@O_RDONLY = global i32 0
@.str.5 = [24 x i8] c"cannot open fontfile %s\00"
@.str.6 = [26 x i8] c"error reading fontfile %s\00"
@.str.7 = [26 x i8] c"splitfont: garbage in %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
%7 = alloca [4096 x i8]
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @exit(i32 1)
unreachable
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i64 @stat(i8* %22, %struct.stat* %6)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %19
%26 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %19
%34 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%35 = load i32, i32* %34
%36 = icmp sgt i32 %35, 4096
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%40 = call i32 @exit(i32 1)
unreachable
41: ; preds = %33
%42 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%43 = load i32, i32* %42
%44 = srem i32 %43, 256
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %41
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%49 = call i32 @exit(i32 1)
unreachable
50: ; preds = %41
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 1
%53 = load i8*, i8** %52
%54 = load i32, i32* @O_RDONLY
%55 = call i32 @open(i8* %53, i32 %54)
store i32 %55, i32* %8
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %50
%58 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 1
%62 = load i8*, i8** %61
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* %62)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %50
%66 = load i32, i32* %8
%67 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%68 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%69 = load i32, i32* %68
%70 = call i32 @read(i32 %66, i8* %67, i32 %69)
%71 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%72 = load i32, i32* %71
%73 = icmp ne i32 %70, %72
br i1 %73, label %74, label %82
74: ; preds = %65
%75 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%76 = load i32, i32* @stderr
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 1
%79 = load i8*, i8** %78
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %79)
%81 = call i32 @exit(i32 1)
unreachable
82: ; preds = %65
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 2
%85 = load i8*, i8** %84
store i8* %85, i8** %9
br label %86
86: ; preds = %82, %127
%87 = load i8*, i8** %9
%88 = call i32 @strtoul(i8* %87, i8** %10, i32 0)
store i32 %88, i32* %11
store i32 %88, i32* %12
%89 = load i8*, i8** %10
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 45
br i1 %92, label %93, label %98
93: ; preds = %86
%94 = load i8*, i8** %10
%95 = getelementptr inbounds i8, i8* %94, i64 1
store i8* %95, i8** %9
%96 = load i8*, i8** %9
%97 = call i32 @strtoul(i8* %96, i8** %10, i32 0)
store i32 %97, i32* %12
br label %98
98: ; preds = %93, %86
%99 = load i8*, i8** %10
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %113
103: ; preds = %98
%104 = load i8*, i8** %10
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 44
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load i32, i32* @stderr
%110 = load i8*, i8** %9
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* %110)
%112 = call i32 @exit(i32 1)
unreachable
113: ; preds = %103, %98
%114 = load i32, i32* %11
%115 = load i32, i32* %12
%116 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%117 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%118 = load i32, i32* %117
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 1
%121 = load i8*, i8** %120
%122 = call i32 @dosplit(i32 %114, i32 %115, i8* %116, i32 %118, i8* %121)
%123 = load i8*, i8** %10
%124 = load i8, i8* %123
%125 = icmp ne i8 %124, 0
br i1 %125, label %127, label %126
126: ; preds = %113
br label %130
127: ; preds = %113
%128 = load i8*, i8** %10
%129 = getelementptr inbounds i8, i8* %128, i64 1
store i8* %129, i8** %9
br label %86
130: ; preds = %126
ret i32 0
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@stderr = global i32 0
@.str = [39 x i8] c"call: splitfont fontfile 17,23-30,...\0A\00"
@.str.1 = [10 x i8] c"splitfont\00"
@.str.2 = [24 x i8] c"cannot stat fontfile %s\00"
@.str.3 = [36 x i8] c"splitfont: file unexpectedly large\0A\00"
@.str.4 = [44 x i8] c"splitfont: file size not a multiple of 256\0A\00"
@O_RDONLY = global i32 0
@.str.5 = [24 x i8] c"cannot open fontfile %s\00"
@.str.6 = [26 x i8] c"error reading fontfile %s\00"
@.str.7 = [26 x i8] c"splitfont: garbage in %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = alloca [4096 x i8]
%5 = alloca i8*
%6 = bitcast %struct.stat* %3 to i8*
%7 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%8 = bitcast i8** %5 to i8*
%9 = icmp eq i32 %0, 3
br i1 %9, label %14, label %10
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @stat(i8* %16, %struct.stat* %3)
%18 = icmp eq i64 %17, 0
br i1 %18, label %25, label %19
19: ; preds = %14
%20 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %15
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %14
%26 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%27 = load i32, i32* %26
%28 = icmp sgt i32 %27, 4096
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %25
%34 = and i32 %27, 255
%35 = icmp eq i32 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %33
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%39 = call i32 @exit(i32 1)
unreachable
40: ; preds = %33
%41 = load i8*, i8** %15
%42 = load i32, i32* @O_RDONLY
%43 = call i32 @open(i8* %41, i32 %42)
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %40
%46 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %15
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %40
%52 = load i32, i32* %26
%53 = call i32 @read(i32 %43, i8* %7, i32 %52)
%54 = load i32, i32* %26
%55 = icmp eq i32 %53, %54
br i1 %55, label %62, label %56
56: ; preds = %51
%57 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%58 = load i32, i32* @stderr
%59 = load i8*, i8** %15
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %59)
%61 = call i32 @exit(i32 1)
unreachable
62: ; preds = %51
%63 = getelementptr inbounds i8*, i8** %1, i64 2
%64 = load i8*, i8** %63
br label %65
65: ; preds = %85, %62
%66 = phi i8* [ %64, %62 ], [ %91, %85 ]
%67 = call i32 @strtoul(i8* %66, i8** %5, i32 0)
%68 = load i8*, i8** %5
%69 = load i8, i8* %68
%70 = icmp eq i8 %69, 45
br i1 %70, label %71, label %76
71: ; preds = %65
%72 = getelementptr inbounds i8, i8* %68, i64 1
%73 = call i32 @strtoul(i8* %72, i8** %5, i32 0)
%74 = load i8*, i8** %5
%75 = load i8, i8* %74
br label %76
76: ; preds = %71, %65
%77 = phi i8 [ %75, %71 ], [ %69, %65 ]
%78 = phi i8* [ %74, %71 ], [ %68, %65 ]
%79 = phi i8* [ %72, %71 ], [ %66, %65 ]
%80 = phi i32 [ %73, %71 ], [ %67, %65 ]
switch i8 %77, label %81 [
i8 0, label %85
i8 44, label %85
]
81: ; preds = %76
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8* %79)
%84 = call i32 @exit(i32 1)
unreachable
85: ; preds = %76, %76
%86 = load i32, i32* %26
%87 = load i8*, i8** %15
%88 = call i32 @dosplit(i32 %67, i32 %80, i8* %7, i32 %86, i8* %87)
%89 = load i8, i8* %78
%90 = icmp eq i8 %89, 0
%91 = getelementptr inbounds i8, i8* %78, i64 1
br i1 %90, label %92, label %65
92: ; preds = %85
ret i32 0
}