#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 floppy_struct {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ printf(char *, char *);
int set_params(char **, struct floppy_struct *);
int sscanf(char *, char *, char *, char *, char *, char *, char *, char *,
           char *, char *, char *, char *);
int /*<<< orphan*/ stderr;
char *strchr(char *, char);
int /*<<< orphan*/ strcmp(char *, char *);
int scan_fdprm(FILE *file, char *name, struct floppy_struct *ft,
               void (*callback)(char *name, char *comment,
                                struct floppy_struct *ft)) {
  char line[200 + 2], this[200 + 2], param[9][200 + 2];
  char *params[9], *start;
  char *comment;
  int i, lineno;
  lineno = 0;
  while (fgets(line, 200, file)) {
    lineno++;
    for (start = line; *start == ' ' || *start == '\t'; start++)
      ;
    if (!*start || *start == '\n' || *start == '#') {
      if (!name)
        printf("%s", line);
      continue;
    }
    comment = strchr(start, '#');
    if (comment) {
      *comment = '\0';
      comment++;
    }
    if (sscanf(start, "%s %s %s %s %s %s %s %s %s %s", this, param[0], param[1],
               param[2], param[3], param[4], param[5], param[6], param[7],
               param[8]) != 10) {
      fprintf(stderr, "Syntax error in line %d: '%s'\n", lineno, line);
      exit(1);
    }
    for (i = 0; i < 9; i++)
      params[i] = param[i];
    if (!name || !strcmp(this, name)) {
      i = set_params(params, ft);
      if (name)
        return 0;
      else
        callback(this, comment, ft);
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<scan_fdprm>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x988,%rsp
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
movl   $0x0,-0x968(%rbp)
lea    -0x110(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0xc8,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     1488 <scan_fdprm+0x308>
mov    -0x968(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x968(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x958(%rbp)
mov    -0x958(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x969(%rbp)
je     1217 <scan_fdprm+0x97>
mov    -0x958(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x969(%rbp)
mov    -0x969(%rbp),%al
test   $0x1,%al
jne    122a <scan_fdprm+0xaa>
jmp    1246 <scan_fdprm+0xc6>
jmp    122f <scan_fdprm+0xaf>
mov    -0x958(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x958(%rbp)
jmp    11e6 <scan_fdprm+0x66>
mov    -0x958(%rbp),%rax
cmpb   $0x0,(%rax)
je     127c <scan_fdprm+0xfc>
mov    -0x958(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     127c <scan_fdprm+0xfc>
mov    -0x958(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    129f <scan_fdprm+0x11f>
cmpq   $0x0,-0x30(%rbp)
jne    129a <scan_fdprm+0x11a>
lea    -0x110(%rbp),%rsi
lea    0xd86(%rip),%rdi
call   1040 <printf@plt>
jmp    11aa <scan_fdprm+0x2a>
mov    -0x958(%rbp),%rdi
mov    $0x23,%esi
call   1030 <strchr@plt>
mov    %rax,-0x960(%rbp)
cmpq   $0x0,-0x960(%rbp)
je     12e1 <scan_fdprm+0x161>
mov    -0x960(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x960(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x960(%rbp)
mov    -0x958(%rbp),%rdi
lea    -0x1e0(%rbp),%rdx
lea    -0x900(%rbp),%rcx
lea    -0x900(%rbp),%r8
add    $0xca,%r8
lea    -0x900(%rbp),%r9
add    $0x194,%r9
lea    -0x900(%rbp),%r15
add    $0x25e,%r15
lea    -0x900(%rbp),%r14
add    $0x328,%r14
lea    -0x900(%rbp),%rbx
add    $0x3f2,%rbx
lea    -0x900(%rbp),%r11
add    $0x4bc,%r11
lea    -0x900(%rbp),%r10
add    $0x586,%r10
lea    -0x900(%rbp),%rax
add    $0x650,%rax
lea    0xc94(%rip),%rsi
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1080 <sscanf@plt>
cmp    $0xa,%eax
je     13c3 <scan_fdprm+0x243>
mov    0x2c42(%rip),%rax
mov    (%rax),%edi
mov    -0x968(%rbp),%edx
lea    -0x110(%rbp),%rcx
lea    0xc6a(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
movl   $0x0,-0x964(%rbp)
cmpl   $0x9,-0x964(%rbp)
jge    1415 <scan_fdprm+0x295>
movslq -0x964(%rbp),%rax
lea    -0x900(%rbp),%rcx
imul   $0xca,%rax,%rax
add    %rax,%rcx
movslq -0x964(%rbp),%rax
mov    %rcx,-0x950(%rbp,%rax,8)
mov    -0x964(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x964(%rbp)
jmp    13cd <scan_fdprm+0x24d>
cmpq   $0x0,-0x30(%rbp)
je     1439 <scan_fdprm+0x2b9>
lea    -0x1e0(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1483 <scan_fdprm+0x303>
lea    -0x950(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   10a0 <set_params@plt>
mov    %eax,-0x964(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1466 <scan_fdprm+0x2e6>
movl   $0x0,-0x1c(%rbp)
jmp    148f <scan_fdprm+0x30f>
mov    -0x40(%rbp),%rax
lea    -0x1e0(%rbp),%rdi
mov    -0x960(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   *%rax
jmp    1483 <scan_fdprm+0x303>
jmp    11aa <scan_fdprm+0x2a>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x988,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<scan_fdprm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x948,%rsp
mov    %rcx,0x20(%rsp)
mov    %rdx,0x8(%rsp)
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    $0x1,%ecx
test   %rax,%rax
je     13d1 <scan_fdprm+0x251>
xor    %r12d,%r12d
movabs $0x100000200,%r13
mov    %r15,0x10(%rsp)
mov    %r14,0x28(%rsp)
jmp    1239 <scan_fdprm+0xb9>
lea    0x30(%rsp),%rdi
mov    0x8(%rsp),%rbp
mov    %rbp,%rsi
call   10a0 <set_params@plt>
lea    0x150(%rsp),%rdi
mov    0x18(%rsp),%rsi
mov    %rbp,%rdx
call   *0x20(%rsp)
mov    0x10(%rsp),%r15
lea    0x80(%rsp),%rbx
mov    (%rsp),%r12
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     13cc <scan_fdprm+0x24c>
add    $0x1,%r12d
mov    %rbx,%rbp
movzbl 0x0(%rbp),%eax
cmp    $0x23,%rax
ja     1290 <scan_fdprm+0x110>
bt     %rax,%r13
jae    1260 <scan_fdprm+0xe0>
add    $0x1,%rbp
jmp    1240 <scan_fdprm+0xc0>
cs nopw 0x0(%rax,%rax,1)
movabs $0x800000401,%rcx
bt     %rax,%rcx
jae    1290 <scan_fdprm+0x110>
test   %r14,%r14
jne    1220 <scan_fdprm+0xa0>
lea    0xd9f(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
jmp    1220 <scan_fdprm+0xa0>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x23,%esi
call   1030 <strchr@plt>
test   %rax,%rax
mov    %r12,(%rsp)
je     12af <scan_fdprm+0x12f>
movb   $0x0,(%rax)
add    $0x1,%rax
jmp    12b1 <scan_fdprm+0x131>
xor    %eax,%eax
mov    %rax,0x18(%rsp)
lea    0x2ea(%rsp),%r8
lea    0x3b4(%rsp),%r9
lea    0x47e(%rsp),%r12
lea    0x548(%rsp),%r15
lea    0x612(%rsp),%r11
lea    0x6dc(%rsp),%r10
lea    0x7a6(%rsp),%rax
lea    0x220(%rsp),%r14
mov    %rbp,%rdi
lea    0xd00(%rip),%rsi
lea    0x150(%rsp),%rdx
mov    %r14,%rcx
lea    0x870(%rsp),%rbx
push   %rbx
push   %rax
push   %r10
push   %r11
push   %r15
push   %r12
mov    %r8,%rbp
mov    %r9,%r15
call   1080 <sscanf@plt>
add    $0x30,%rsp
cmp    $0xa,%eax
jne    13e5 <scan_fdprm+0x265>
mov    %r14,0x30(%rsp)
mov    %rbp,0x38(%rsp)
mov    %r15,0x40(%rsp)
mov    %r12,0x48(%rsp)
lea    0x548(%rsp),%rax
mov    %rax,0x50(%rsp)
lea    0x612(%rsp),%rax
mov    %rax,0x58(%rsp)
lea    0x6dc(%rsp),%rax
mov    %rax,0x60(%rsp)
lea    0x7a6(%rsp),%rax
mov    %rax,0x68(%rsp)
mov    %rbx,0x70(%rsp)
mov    0x28(%rsp),%r14
test   %r14,%r14
je     11e0 <scan_fdprm+0x60>
lea    0x150(%rsp),%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
mov    0x10(%rsp),%r15
lea    0x80(%rsp),%rbx
mov    (%rsp),%r12
jne    1220 <scan_fdprm+0xa0>
lea    0x30(%rsp),%rdi
mov    0x8(%rsp),%rsi
call   10a0 <set_params@plt>
xor    %ecx,%ecx
jmp    13d1 <scan_fdprm+0x251>
mov    $0x1,%ecx
mov    %ecx,%eax
add    $0x948,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bf4(%rip),%rax
mov    (%rax),%edi
lea    0xc29(%rip),%rsi
lea    0x80(%rsp),%rcx
mov    (%rsp),%rdx
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.floppy_struct = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [30 x i8] c"%s %s %s %s %s %s %s %s %s %s\00"
@stderr = global i32 0
@.str.2 = [31 x i8] c"Syntax error in line %d: '%s'\0A\00"
define i32 @scan_fdprm(i32* %0, i8* %1, %struct.floppy_struct* %2, void (i8*, i8*, %struct.floppy_struct*)* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca %struct.floppy_struct*
%9 = alloca void (i8*, i8*, %struct.floppy_struct*)*
%10 = alloca [202 x i8]
%11 = alloca [202 x i8]
%12 = alloca [9 x [202 x i8]]
%13 = alloca [9 x i8*]
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i32* %0, i32** %6
store i8* %1, i8** %7
store %struct.floppy_struct* %2, %struct.floppy_struct** %8
store void (i8*, i8*, %struct.floppy_struct*)* %3, void (i8*, i8*, %struct.floppy_struct*)** %9
store i32 0, i32* %17
br label %18
18: ; preds = %138, %63, %4
%19 = getelementptr inbounds [202 x i8], [202 x i8]* %10, i64 0, i64 0
%20 = load i32*, i32** %6
%21 = call i64 @fgets(i8* %19, i32 200, i32* %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %139
23: ; preds = %18
%24 = load i32, i32* %17
%25 = add nsw i32 %24, 1
store i32 %25, i32* %17
%26 = getelementptr inbounds [202 x i8], [202 x i8]* %10, i64 0, i64 0
store i8* %26, i8** %14
br label %27
27: ; preds = %40, %23
%28 = load i8*, i8** %14
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 32
br i1 %31, label %37, label %32
32: ; preds = %27
%33 = load i8*, i8** %14
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 9
br label %37
37: ; preds = %32, %27
%38 = phi i1 [ true, %27 ], [ %36, %32 ]
br i1 %38, label %39, label %43
39: ; preds = %37
br label %40
40: ; preds = %39
%41 = load i8*, i8** %14
%42 = getelementptr inbounds i8, i8* %41, i32 1
store i8* %42, i8** %14
br label %27
43: ; preds = %37
%44 = load i8*, i8** %14
%45 = load i8, i8* %44
%46 = icmp ne i8 %45, 0
br i1 %46, label %47, label %57
47: ; preds = %43
%48 = load i8*, i8** %14
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 10
br i1 %51, label %57, label %52
52: ; preds = %47
%53 = load i8*, i8** %14
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 35
br i1 %56, label %57, label %64
57: ; preds = %52, %47, %43
%58 = load i8*, i8** %7
%59 = icmp ne i8* %58, null
br i1 %59, label %63, label %60
60: ; preds = %57
%61 = getelementptr inbounds [202 x i8], [202 x i8]* %10, i64 0, i64 0
%62 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %61)
br label %63
63: ; preds = %60, %57
br label %18
64: ; preds = %52
%65 = load i8*, i8** %14
%66 = call i8* @strchr(i8* %65, i8 signext 35)
store i8* %66, i8** %15
%67 = load i8*, i8** %15
%68 = icmp ne i8* %67, null
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = load i8*, i8** %15
store i8 0, i8* %70
%71 = load i8*, i8** %15
%72 = getelementptr inbounds i8, i8* %71, i32 1
store i8* %72, i8** %15
br label %73
73: ; preds = %69, %64
%74 = load i8*, i8** %14
%75 = getelementptr inbounds [202 x i8], [202 x i8]* %11, i64 0, i64 0
%76 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 0
%77 = getelementptr inbounds [202 x i8], [202 x i8]* %76, i64 0, i64 0
%78 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 1
%79 = getelementptr inbounds [202 x i8], [202 x i8]* %78, i64 0, i64 0
%80 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 2
%81 = getelementptr inbounds [202 x i8], [202 x i8]* %80, i64 0, i64 0
%82 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 3
%83 = getelementptr inbounds [202 x i8], [202 x i8]* %82, i64 0, i64 0
%84 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 4
%85 = getelementptr inbounds [202 x i8], [202 x i8]* %84, i64 0, i64 0
%86 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 5
%87 = getelementptr inbounds [202 x i8], [202 x i8]* %86, i64 0, i64 0
%88 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 6
%89 = getelementptr inbounds [202 x i8], [202 x i8]* %88, i64 0, i64 0
%90 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 7
%91 = getelementptr inbounds [202 x i8], [202 x i8]* %90, i64 0, i64 0
%92 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 8
%93 = getelementptr inbounds [202 x i8], [202 x i8]* %92, i64 0, i64 0
%94 = call i32 @sscanf(i8* %74, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %75, i8* %77, i8* %79, i8* %81, i8* %83, i8* %85, i8* %87, i8* %89, i8* %91, i8* %93)
%95 = icmp ne i32 %94, 10
br i1 %95, label %96, label %102
96: ; preds = %73
%97 = load i32, i32* @stderr
%98 = load i32, i32* %17
%99 = getelementptr inbounds [202 x i8], [202 x i8]* %10, i64 0, i64 0
%100 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %98, i8* %99)
%101 = call i32 @exit(i32 1)
unreachable
102: ; preds = %73
store i32 0, i32* %16
br label %103
103: ; preds = %114, %102
%104 = load i32, i32* %16
%105 = icmp slt i32 %104, 9
br i1 %105, label %106, label %117
106: ; preds = %103
%107 = load i32, i32* %16
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %12, i64 0, i64 %108
%110 = getelementptr inbounds [202 x i8], [202 x i8]* %109, i64 0, i64 0
%111 = load i32, i32* %16
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [9 x i8*], [9 x i8*]* %13, i64 0, i64 %112
store i8* %110, i8** %113
br label %114
114: ; preds = %106
%115 = load i32, i32* %16
%116 = add nsw i32 %115, 1
store i32 %116, i32* %16
br label %103
117: ; preds = %103
%118 = load i8*, i8** %7
%119 = icmp ne i8* %118, null
br i1 %119, label %120, label %125
120: ; preds = %117
%121 = getelementptr inbounds [202 x i8], [202 x i8]* %11, i64 0, i64 0
%122 = load i8*, i8** %7
%123 = call i32 @strcmp(i8* %121, i8* %122)
%124 = icmp ne i32 %123, 0
br i1 %124, label %138, label %125
125: ; preds = %120, %117
%126 = getelementptr inbounds [9 x i8*], [9 x i8*]* %13, i64 0, i64 0
%127 = load %struct.floppy_struct*, %struct.floppy_struct** %8
%128 = call i32 @set_params(i8** %126, %struct.floppy_struct* %127)
store i32 %128, i32* %16
%129 = load i8*, i8** %7
%130 = icmp ne i8* %129, null
br i1 %130, label %131, label %132
131: ; preds = %125
store i32 0, i32* %5
br label %140
132: ; preds = %125
%133 = load void (i8*, i8*, %struct.floppy_struct*)*, void (i8*, i8*, %struct.floppy_struct*)** %9
%134 = getelementptr inbounds [202 x i8], [202 x i8]* %11, i64 0, i64 0
%135 = load i8*, i8** %15
%136 = load %struct.floppy_struct*, %struct.floppy_struct** %8
br label %137
137: ; preds = %132
br label %138
138: ; preds = %137, %120
br label %18
139: ; preds = %18
store i32 1, i32* %5
br label %140
140: ; preds = %139, %131
%141 = load i32, i32* %5
ret i32 %141
}

LLVM IR (-O2):
%struct.floppy_struct = type { i32 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [30 x i8] c"%s %s %s %s %s %s %s %s %s %s\00"
@stderr = global i32 0
@.str.2 = [31 x i8] c"Syntax error in line %d: '%s'\0A\00"
define i32 @scan_fdprm(i32* nocapture %0, i8* %1, %struct.floppy_struct* %2, void (i8*, i8*, %struct.floppy_struct*)* nocapture %3) {
%5 = alloca [202 x i8]
%6 = alloca [202 x i8]
%7 = alloca [9 x [202 x i8]]
%8 = alloca [9 x i8*]
%9 = getelementptr inbounds [202 x i8], [202 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [202 x i8], [202 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 0, i64 0
%12 = bitcast [9 x i8*]* %8 to i8*
%13 = call i64 @fgets(i8* %9, i32 200, i32* %0)
%14 = icmp eq i64 %13, 0
br i1 %14, label %69, label %15
15: ; preds = %4
%16 = icmp eq i8* %1, null
%17 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 1, i64 0
%18 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 2, i64 0
%19 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 3, i64 0
%20 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 4, i64 0
%21 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 5, i64 0
%22 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 6, i64 0
%23 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 7, i64 0
%24 = getelementptr inbounds [9 x [202 x i8]], [9 x [202 x i8]]* %7, i64 0, i64 8, i64 0
%25 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 0
%26 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 1
%27 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 2
%28 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 3
%29 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 4
%30 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 5
%31 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 6
%32 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 7
%33 = getelementptr inbounds [9 x i8*], [9 x i8*]* %8, i64 0, i64 8
br label %34
34: ; preds = %15, %45
%35 = phi i32 [ 0, %15 ], [ %36, %45 ]
%36 = add nuw nsw i32 %35, 1
br label %37
37: ; preds = %40, %34
%38 = phi i8* [ %9, %34 ], [ %41, %40 ]
%39 = load i8, i8* %38
switch i8 %39, label %48 [
i8 32, label %40
i8 9, label %40
i8 0, label %42
i8 10, label %42
i8 35, label %42
]
40: ; preds = %37, %37
%41 = getelementptr inbounds i8, i8* %38, i64 1
br label %37
42: ; preds = %37, %37, %37
br i1 %16, label %43, label %45
43: ; preds = %42
%44 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
br label %45
45: ; preds = %62, %67, %42, %43
%46 = call i64 @fgets(i8* %9, i32 200, i32* %0)
%47 = icmp eq i64 %46, 0
br i1 %47, label %69, label %34
48: ; preds = %37
%49 = call i8* @strchr(i8* %38, i8 signext 35)
%50 = icmp eq i8* %49, null
br i1 %50, label %53, label %51
51: ; preds = %48
store i8 0, i8* %49
%52 = getelementptr inbounds i8, i8* %49, i64 1
br label %53
53: ; preds = %51, %48
%54 = phi i8* [ %52, %51 ], [ null, %48 ]
%55 = call i32 @sscanf(i8* %38, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %10, i8* %11, i8* %17, i8* %18, i8* %19, i8* %20, i8* %21, i8* %22, i8* %23, i8* %24)
%56 = icmp eq i32 %55, 10
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* %11, i8** %25
store i8* %17, i8** %26
store i8* %18, i8** %27
store i8* %19, i8** %28
store i8* %20, i8** %29
store i8* %21, i8** %30
store i8* %22, i8** %31
store i8* %23, i8** %32
store i8* %24, i8** %33
br i1 %16, label %67, label %62
58: ; preds = %53
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %36, i8* %9)
%61 = call i32 @exit(i32 1)
unreachable
62: ; preds = %57
%63 = call i32 @strcmp(i8* %10, i8* %1)
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %45
65: ; preds = %62
%66 = call i32 @set_params(i8** %25, %struct.floppy_struct* %2)
br label %69
67: ; preds = %57
%68 = call i32 @set_params(i8** %25, %struct.floppy_struct* %2)
br label %45
69: ; preds = %45, %4, %65
%70 = phi i32 [ 0, %65 ], [ 1, %4 ], [ 1, %45 ]
ret i32 %70
}