_Isfrm(spec, pointer) char **spec;
int pointer;
{
  int length, lflag, _Iestr(), _Ispnd();
  char ch;
  length = lflag = 0;
  while (1)
    switch (ch = *((*spec)++)) {
    case '*':
      pointer = 0;
      break;
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      length = length * 10 + ch - '0';
      lflag++;
      break;
    case 'o':
      return (_Iint(pointer, lflag ? length : 100, 8));
    case 'x':
      return (_Iint(pointer, lflag ? length : 100, 16));
    case 'd':
      return (_Iint(pointer, lflag ? length : 100, 10));
    case 'c':
      return (_Ichar(pointer));
    case 's':
      return (_Isstr(pointer, lflag ? length : 100, _Iestr));
    case 'f':
    case 'e':
      return (_Iflot(pointer, lflag ? length : 100));
    case 'l':
      switch (*(*spec)++) {
      case 'f':
      case 'F':
      case 'e':
      case 'E':
        return (_Ilong(pointer, lflag ? length : 100));
      default:
        printf(2, "long not yet implemented\n");
        return (0);
      }
    case '[':
      _Imtab(spec);
      return (_Isstr(pointer, lflag ? length : 100, _Ispnd));
    case '%':
      if (_Inxch() != '%')
        return (-1);
      return (0);
    case '\0':
      _Ierr("scanf: bad format termination\n");
    default:
      _Ierr("scanf: format character %c", ch);
    }
}


x86 assembly (clang, -O0):
<_Isfrm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
movsbl (%rax),%eax
mov    %al,%cl
mov    %cl,-0x1d(%rbp)
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x78,%eax
ja     1489 <_Isfrm+0x2f9>
mov    -0x28(%rbp),%rax
lea    0xe20(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x14(%rbp)
jmp    149b <_Isfrm+0x30b>
imul   $0xa,-0x18(%rbp),%eax
movsbl -0x1d(%rbp),%ecx
add    %ecx,%eax
sub    $0x30,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    149b <_Isfrm+0x30b>
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     122e <_Isfrm+0x9e>
mov    -0x18(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    123b <_Isfrm+0xab>
mov    $0x64,%eax
mov    %eax,-0x30(%rbp)
jmp    123b <_Isfrm+0xab>
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1060 <_Iint@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1270 <_Isfrm+0xe0>
mov    -0x18(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    127d <_Isfrm+0xed>
mov    $0x64,%eax
mov    %eax,-0x38(%rbp)
jmp    127d <_Isfrm+0xed>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x10,%edx
mov    $0x0,%al
call   1060 <_Iint@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     12b2 <_Isfrm+0x122>
mov    -0x18(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    12bf <_Isfrm+0x12f>
mov    $0x64,%eax
mov    %eax,-0x40(%rbp)
jmp    12bf <_Isfrm+0x12f>
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    $0xa,%edx
mov    $0x0,%al
call   1060 <_Iint@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x14(%rbp),%edi
mov    $0x0,%al
call   1090 <_Ichar@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1306 <_Isfrm+0x176>
mov    -0x18(%rbp),%eax
mov    %eax,-0x48(%rbp)
jmp    1313 <_Isfrm+0x183>
mov    $0x64,%eax
mov    %eax,-0x48(%rbp)
jmp    1313 <_Isfrm+0x183>
mov    -0x44(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    0x2cc0(%rip),%rdx
mov    $0x0,%al
call   1040 <_Isstr@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     134a <_Isfrm+0x1ba>
mov    -0x18(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    1357 <_Isfrm+0x1c7>
mov    $0x64,%eax
mov    %eax,-0x50(%rbp)
jmp    1357 <_Isfrm+0x1c7>
mov    -0x4c(%rbp),%edi
mov    -0x50(%rbp),%esi
mov    $0x0,%al
call   1070 <_Iflot@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
movsbl (%rax),%eax
mov    %eax,-0x54(%rbp)
add    $0xffffffbb,%eax
sub    $0x2,%eax
jb     13a8 <_Isfrm+0x218>
jmp    1394 <_Isfrm+0x204>
mov    -0x54(%rbp),%eax
add    $0xffffff9b,%eax
sub    $0x1,%eax
ja     13e5 <_Isfrm+0x255>
jmp    13a8 <_Isfrm+0x218>
mov    -0x14(%rbp),%eax
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     13c3 <_Isfrm+0x233>
mov    -0x18(%rbp),%eax
mov    %eax,-0x5c(%rbp)
jmp    13d0 <_Isfrm+0x240>
mov    $0x64,%eax
mov    %eax,-0x5c(%rbp)
jmp    13d0 <_Isfrm+0x240>
mov    -0x58(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    $0x0,%al
call   1030 <_Ilong@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    $0x2,%edi
lea    0xdf3(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   10a0 <_Imtab@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     142a <_Isfrm+0x29a>
mov    -0x18(%rbp),%eax
mov    %eax,-0x64(%rbp)
jmp    1437 <_Isfrm+0x2a7>
mov    $0x64,%eax
mov    %eax,-0x64(%rbp)
jmp    1437 <_Isfrm+0x2a7>
mov    -0x60(%rbp),%edi
mov    -0x64(%rbp),%esi
mov    0x2b94(%rip),%rdx
mov    $0x0,%al
call   1040 <_Isstr@plt>
mov    %eax,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
mov    $0x0,%al
call   1080 <_Inxch@plt>
cmp    $0x25,%eax
je     146f <_Isfrm+0x2df>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
movl   $0x0,-0x4(%rbp)
jmp    14a0 <_Isfrm+0x310>
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   10b0 <_Ierr@plt>
movsbl -0x1d(%rbp),%esi
lea    0xd89(%rip),%rdi
mov    $0x0,%al
call   10b0 <_Ierr@plt>
jmp    11ad <_Isfrm+0x1d>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_Isfrm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,0x4(%rsp)
mov    %rdi,%rbp
lea    0x1074(%rip),%r13
lea    0xe50(%rip),%r12
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    11da <_Isfrm+0x4a>
nopl   0x0(%rax,%rax,1)
lea    0x1037(%rip),%rdi
xor    %eax,%eax
call   10b0 <_Ierr@plt>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   10b0 <_Ierr@plt>
mov    0x0(%rbp),%rax
lea    0x1(%rax),%rcx
mov    %rcx,0x0(%rbp)
movsbl (%rax),%ebx
cmp    $0x78,%ebx
ja     11ce <_Isfrm+0x3e>
movslq (%r12,%rbx,4),%rcx
add    %r12,%rcx
jmp    *%rcx
lea    (%r15,%r15,4),%eax
lea    (%rbx,%rax,2),%r15d
add    $0xffffffd0,%r15d
add    $0x1,%r14d
jmp    11da <_Isfrm+0x4a>
movl   $0x0,0x4(%rsp)
jmp    11da <_Isfrm+0x4a>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x4(%rsp),%edi
mov    %r15d,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <_Iflot@plt>
lea    0x2(%rax),%rcx
mov    %rcx,0x0(%rbp)
movsbl 0x1(%rax),%eax
add    $0xffffffbb,%eax
cmp    $0x21,%eax
ja     1379 <_Isfrm+0x1e9>
movabs $0x300000003,%rcx
bt     %rax,%rcx
jae    1379 <_Isfrm+0x1e9>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x4(%rsp),%edi
mov    %r15d,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <_Ilong@plt>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x2d3e(%rip),%rdx
jmp    12e3 <_Isfrm+0x153>
xor    %eax,%eax
call   1080 <_Inxch@plt>
xor    %ebx,%ebx
cmp    $0x25,%eax
setne  %bl
neg    %ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbp,%rdi
xor    %eax,%eax
call   10a0 <_Imtab@plt>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x2cf5(%rip),%rdx
mov    0x4(%rsp),%edi
mov    %r15d,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <_Isstr@plt>
mov    0x4(%rsp),%edi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <_Ichar@plt>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x4(%rsp),%edi
mov    %r15d,%esi
mov    $0xa,%edx
jmp    1364 <_Isfrm+0x1d4>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x4(%rsp),%edi
mov    %r15d,%esi
mov    $0x8,%edx
jmp    1364 <_Isfrm+0x1d4>
test   %r14d,%r14d
mov    $0x64,%eax
cmove  %eax,%r15d
mov    0x4(%rsp),%edi
mov    %r15d,%esi
mov    $0x10,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <_Iint@plt>
lea    0xe64(%rip),%rsi
xor    %ebx,%ebx
mov    $0x2,%edi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12b5 <_Isfrm+0x125>

LLVM IR (-O0):
@.str = [26 x i8] c"long not yet implemented\0A\00"
@.str.1 = [31 x i8] c"scanf: bad format termination\0A\00"
@.str.2 = [27 x i8] c"scanf: format character %c\00"
define i32 @_Isfrm(i8** %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i8** %0, i8*** %4
store i32 %1, i32* %5
store i32 0, i32* %7
store i32 0, i32* %6
br label %9
9: ; preds = %2, %119
%10 = load i8**, i8*** %4
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %10
%13 = load i8, i8* %11
store i8 %13, i8* %8
%14 = sext i8 %13 to i32
switch i32 %14, label %115 [
i32 42, label %15
i32 48, label %16
i32 49, label %16
i32 50, label %16
i32 51, label %16
i32 52, label %16
i32 53, label %16
i32 54, label %16
i32 55, label %16
i32 56, label %16
i32 57, label %16
i32 111, label %25
i32 120, label %35
i32 100, label %45
i32 99, label %55
i32 115, label %58
i32 102, label %68
i32 101, label %68
i32 108, label %78
i32 91, label %96
i32 37, label %108
i32 0, label %113
]
15: ; preds = %9
store i32 0, i32* %5
br label %119
16: ; preds = %9, %9, %9, %9, %9, %9, %9, %9, %9, %9
%17 = load i32, i32* %6
%18 = mul nsw i32 %17, 10
%19 = load i8, i8* %8
%20 = sext i8 %19 to i32
%21 = add nsw i32 %18, %20
%22 = sub nsw i32 %21, 48
store i32 %22, i32* %6
%23 = load i32, i32* %7
%24 = add nsw i32 %23, 1
store i32 %24, i32* %7
br label %119
25: ; preds = %9
%26 = load i32, i32* %5
%27 = load i32, i32* %7
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = load i32, i32* %6
br label %32
31: ; preds = %25
br label %32
32: ; preds = %31, %29
%33 = phi i32 [ %30, %29 ], [ 100, %31 ]
%34 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %26, i32 %33, i32 8)
store i32 %34, i32* %3
br label %120
35: ; preds = %9
%36 = load i32, i32* %5
%37 = load i32, i32* %7
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = load i32, i32* %6
br label %42
41: ; preds = %35
br label %42
42: ; preds = %41, %39
%43 = phi i32 [ %40, %39 ], [ 100, %41 ]
%44 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %36, i32 %43, i32 16)
store i32 %44, i32* %3
br label %120
45: ; preds = %9
%46 = load i32, i32* %5
%47 = load i32, i32* %7
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = load i32, i32* %6
br label %52
51: ; preds = %45
br label %52
52: ; preds = %51, %49
%53 = phi i32 [ %50, %49 ], [ 100, %51 ]
%54 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %46, i32 %53, i32 10)
store i32 %54, i32* %3
br label %120
55: ; preds = %9
%56 = load i32, i32* %5
%57 = call i32 (i32, ...) bitcast (i32 (...)* @_Ichar to i32 (i32, ...)*)(i32 %56)
store i32 %57, i32* %3
br label %120
58: ; preds = %9
%59 = load i32, i32* %5
%60 = load i32, i32* %7
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load i32, i32* %6
br label %65
64: ; preds = %58
br label %65
65: ; preds = %64, %62
%66 = phi i32 [ %63, %62 ], [ 100, %64 ]
%67 = call i32 (i32, i32, i32 (...)*, ...) bitcast (i32 (...)* @_Isstr to i32 (i32, i32, i32 (...)*, ...)*)(i32 %59, i32 %66, i32 (...)* @_Iestr)
store i32 %67, i32* %3
br label %120
68: ; preds = %9, %9
%69 = load i32, i32* %5
%70 = load i32, i32* %7
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = load i32, i32* %6
br label %75
74: ; preds = %68
br label %75
75: ; preds = %74, %72
%76 = phi i32 [ %73, %72 ], [ 100, %74 ]
%77 = call i32 (i32, i32, ...) bitcast (i32 (...)* @_Iflot to i32 (i32, i32, ...)*)(i32 %69, i32 %76)
store i32 %77, i32* %3
br label %120
78: ; preds = %9
%79 = load i8**, i8*** %4
%80 = load i8*, i8** %79
%81 = getelementptr inbounds i8, i8* %80, i32 1
store i8* %81, i8** %79
%82 = load i8, i8* %80
%83 = sext i8 %82 to i32
switch i32 %83, label %94 [
i32 102, label %84
i32 70, label %84
i32 101, label %84
i32 69, label %84
]
84: ; preds = %78, %78, %78, %78
%85 = load i32, i32* %5
%86 = load i32, i32* %7
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = load i32, i32* %6
br label %91
90: ; preds = %84
br label %91
91: ; preds = %90, %88
%92 = phi i32 [ %89, %88 ], [ 100, %90 ]
%93 = call i32 (i32, i32, ...) bitcast (i32 (...)* @_Ilong to i32 (i32, i32, ...)*)(i32 %85, i32 %92)
store i32 %93, i32* %3
br label %120
94: ; preds = %78
%95 = call i32 (i8*, ...) @printf(i8* inttoptr (i64 2 to i8*), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %120
96: ; preds = %9
%97 = load i8**, i8*** %4
%98 = call i32 (i8**, ...) bitcast (i32 (...)* @_Imtab to i32 (i8**, ...)*)(i8** %97)
%99 = load i32, i32* %5
%100 = load i32, i32* %7
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %96
%103 = load i32, i32* %6
br label %105
104: ; preds = %96
br label %105
105: ; preds = %104, %102
%106 = phi i32 [ %103, %102 ], [ 100, %104 ]
%107 = call i32 (i32, i32, i32 (...)*, ...) bitcast (i32 (...)* @_Isstr to i32 (i32, i32, i32 (...)*, ...)*)(i32 %99, i32 %106, i32 (...)* @_Ispnd)
store i32 %107, i32* %3
br label %120
108: ; preds = %9
%109 = call i32 (...) @_Inxch()
%110 = icmp ne i32 %109, 37
br i1 %110, label %111, label %112
111: ; preds = %108
store i32 -1, i32* %3
br label %120
112: ; preds = %108
store i32 0, i32* %3
br label %120
113: ; preds = %9
%114 = call i32 (i8*, ...) bitcast (i32 (...)* @_Ierr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
br label %115
115: ; preds = %9, %113
%116 = load i8, i8* %8
%117 = sext i8 %116 to i32
%118 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @_Ierr to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %117)
br label %119
119: ; preds = %115, %16, %15
br label %9
120: ; preds = %112, %111, %105, %94, %91, %75, %65, %55, %52, %42, %32
%121 = load i32, i32* %3
ret i32 %121
}

LLVM IR (-O2):
@.str = [26 x i8] c"long not yet implemented\0A\00"
@.str.1 = [31 x i8] c"scanf: bad format termination\0A\00"
@.str.2 = [27 x i8] c"scanf: format character %c\00"
define i32 @_Isfrm(i8** %0, i32 %1) {
br label %3
3: ; preds = %10, %2
%4 = phi i32 [ %1, %2 ], [ 0, %10 ]
%5 = phi i32 [ 0, %2 ], [ %8, %10 ]
%6 = phi i32 [ 0, %2 ], [ %9, %10 ]
br label %7
7: ; preds = %3, %15
%8 = phi i32 [ %5, %3 ], [ %19, %15 ]
%9 = phi i32 [ %6, %3 ], [ %20, %15 ]
br label %10
10: ; preds = %7, %65
%11 = load i8*, i8** %0
%12 = getelementptr inbounds i8, i8* %11, i64 1
store i8* %12, i8** %0
%13 = load i8, i8* %11
%14 = sext i8 %13 to i32
switch i32 %14, label %65 [
i32 42, label %3
i32 48, label %15
i32 49, label %15
i32 50, label %15
i32 51, label %15
i32 52, label %15
i32 53, label %15
i32 54, label %15
i32 55, label %15
i32 56, label %15
i32 57, label %15
i32 111, label %21
i32 120, label %25
i32 100, label %29
i32 99, label %33
i32 115, label %35
i32 102, label %39
i32 101, label %39
i32 108, label %43
i32 91, label %54
i32 37, label %59
i32 0, label %63
]
15: ; preds = %10, %10, %10, %10, %10, %10, %10, %10, %10, %10
%16 = sext i8 %13 to i32
%17 = mul nsw i32 %8, 10
%18 = add i32 %17, -48
%19 = add i32 %18, %16
%20 = add nsw i32 %9, 1
br label %7
21: ; preds = %10
%22 = icmp eq i32 %9, 0
%23 = select i1 %22, i32 100, i32 %8
%24 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %4, i32 %23, i32 8)
br label %67
25: ; preds = %10
%26 = icmp eq i32 %9, 0
%27 = select i1 %26, i32 100, i32 %8
%28 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %4, i32 %27, i32 16)
br label %67
29: ; preds = %10
%30 = icmp eq i32 %9, 0
%31 = select i1 %30, i32 100, i32 %8
%32 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @_Iint to i32 (i32, i32, i32, ...)*)(i32 %4, i32 %31, i32 10)
br label %67
33: ; preds = %10
%34 = tail call i32 (i32, ...) bitcast (i32 (...)* @_Ichar to i32 (i32, ...)*)(i32 %4)
br label %67
35: ; preds = %10
%36 = icmp eq i32 %9, 0
%37 = select i1 %36, i32 100, i32 %8
%38 = tail call i32 (i32, i32, i32 (...)*, ...) bitcast (i32 (...)* @_Isstr to i32 (i32, i32, i32 (...)*, ...)*)(i32 %4, i32 %37, i32 (...)* @_Iestr)
br label %67
39: ; preds = %10, %10
%40 = icmp eq i32 %9, 0
%41 = select i1 %40, i32 100, i32 %8
%42 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @_Iflot to i32 (i32, i32, ...)*)(i32 %4, i32 %41)
br label %67
43: ; preds = %10
%44 = getelementptr inbounds i8, i8* %11, i64 1
%45 = getelementptr inbounds i8, i8* %11, i64 2
store i8* %45, i8** %0
%46 = load i8, i8* %44
%47 = sext i8 %46 to i32
switch i32 %47, label %52 [
i32 102, label %48
i32 70, label %48
i32 101, label %48
i32 69, label %48
]
48: ; preds = %43, %43, %43, %43
%49 = icmp eq i32 %9, 0
%50 = select i1 %49, i32 100, i32 %8
%51 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @_Ilong to i32 (i32, i32, ...)*)(i32 %4, i32 %50)
br label %67
52: ; preds = %43
%53 = tail call i32 (i8*, ...) @printf(i8* inttoptr (i64 2 to i8*), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %67
54: ; preds = %10
%55 = tail call i32 (i8**, ...) bitcast (i32 (...)* @_Imtab to i32 (i8**, ...)*)(i8** %0)
%56 = icmp eq i32 %9, 0
%57 = select i1 %56, i32 100, i32 %8
%58 = tail call i32 (i32, i32, i32 (...)*, ...) bitcast (i32 (...)* @_Isstr to i32 (i32, i32, i32 (...)*, ...)*)(i32 %4, i32 %57, i32 (...)* @_Ispnd)
br label %67
59: ; preds = %10
%60 = tail call i32 (...) @_Inxch()
%61 = icmp ne i32 %60, 37
%62 = sext i1 %61 to i32
br label %67
63: ; preds = %10
%64 = tail call i32 (i8*, ...) bitcast (i32 (...)* @_Ierr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
br label %65
65: ; preds = %10, %63
%66 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @_Ierr to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %14)
br label %10
67: ; preds = %59, %54, %52, %48, %39, %35, %33, %29, %25, %21
%68 = phi i32 [ %58, %54 ], [ 0, %52 ], [ %51, %48 ], [ %42, %39 ], [ %38, %35 ], [ %34, %33 ], [ %32, %29 ], [ %28, %25 ], [ %24, %21 ], [ %62, %59 ]
ret i32 %68
}