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

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
main(int argc, char *argv[]) {
  char line1[80], line2[80], *w1, *w2;
  FILE *hyphdict, *hyphfile;
  int good = 0, bad = 0, missed = 0;
  if (argc != 3) {
    fprintf(stderr, "Usage: wordmatch hyphdict hyphfile\n");
    exit(1);
  }
  hyphdict = fopen(argv[1], "r");
  if (hyphdict == NULL) {
    fprintf(stderr, "%s: can't open\n", argv[1]);
    exit(1);
  }
  hyphfile = fopen(argv[2], "r");
  if (hyphfile == NULL) {
    fprintf(stderr, "%s: can't open\n", argv[2]);
    exit(1);
  }
  while (1) {
    w1 = line1;
    w2 = line2;
    if (fgets(w1, 80, hyphdict) == NULL)
      break;
    if (fgets(w2, 80, hyphfile) == NULL) {
      fprintf(stderr, "%s: unexpected eof\n", argv[1]);
      exit(1);
    }
    if (strcmp(w1, w2) == 0) {
      for (; *w1 != '\n'; w1++) {
        if (*w1 == 0267)
          good++;
      }
      continue;
    }
    while (1) {
      if (*w1 == '\n' || *w1 == '\0') {
        putchar('\n');
        break;
      }
      if (*w1 == *w2) {
        if (*w1 == 0267) {
          putchar('*');
          good++;
        } else
          putchar(*w1);
        w1++;
        w2++;
        continue;
      }
      if (*w2 == 0267) {
        putchar('.');
        w2++;
        bad++;
        continue;
      }
      if (*w1 == 0267) {
        putchar(0255);
        w1++;
        missed++;
        continue;
      }
      fprintf(stderr, "words don't match (%s,%s)\n", line1, line2);
      exit(1);
    }
  }
  if (good + missed > 0) {
    fprintf(stderr, " good (%7d) bad (%7d) missed (%7d)\n", good, bad, missed);
    fprintf(stderr, " good (%6.2f%%) bad (%6.2f%%) missed (%6.2f%%)\n",
            100.0 * good / (good + missed), 100.0 * bad / (good + missed),
            100.0 * missed / (good + missed));
  }
  fclose(hyphdict);
  fclose(hyphfile);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
movl   $0x0,-0xdc(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11d2 <main+0x62>
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4b(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xc8(%rbp)
cmpq   $0x0,-0xc8(%rbp)
jne    1224 <main+0xb4>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdf9(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xd0(%rbp)
cmpq   $0x0,-0xd0(%rbp)
jne    1276 <main+0x106>
mov    0x2d8c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xdc9(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    127b <main+0x10b>
lea    -0x60(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0xb8(%rbp),%rdi
mov    -0xc8(%rbp),%rdx
mov    $0x50,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    12bb <main+0x14b>
jmp    14fc <main+0x38c>
mov    -0xc0(%rbp),%rdi
mov    -0xd0(%rbp),%rdx
mov    $0x50,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    1306 <main+0x196>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xd49(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0xb8(%rbp),%rdi
mov    -0xc0(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1380 <main+0x210>
jmp    1328 <main+0x1b8>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     137b <main+0x20b>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xb7,%eax
jne    135f <main+0x1ef>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1364 <main+0x1f4>
mov    -0xb8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xb8(%rbp)
jmp    1328 <main+0x1b8>
jmp    127b <main+0x10b>
jmp    1385 <main+0x215>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     13ab <main+0x23b>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    13ba <main+0x24a>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    14f7 <main+0x387>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
mov    -0xc0(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    1441 <main+0x2d1>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xb7,%eax
jne    1409 <main+0x299>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1418 <main+0x2a8>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
mov    -0xb8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xb8(%rbp)
mov    -0xc0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
jmp    1385 <main+0x215>
mov    -0xc0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xb7,%eax
jne    1486 <main+0x316>
mov    $0x2e,%edi
call   1030 <putchar@plt>
mov    -0xc0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xc0(%rbp)
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1385 <main+0x215>
mov    -0xb8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xb7,%eax
jne    14cb <main+0x35b>
mov    $0xad,%edi
call   1030 <putchar@plt>
mov    -0xb8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xb8(%rbp)
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    1385 <main+0x215>
mov    0x2b0e(%rip),%rax
mov    (%rax),%edi
lea    -0x60(%rbp),%rdx
lea    -0xb0(%rbp),%rcx
lea    0xb6c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    127b <main+0x10b>
mov    -0xd4(%rbp),%eax
add    -0xdc(%rbp),%eax
cmp    $0x0,%eax
jle    15ca <main+0x45a>
mov    0x2ac8(%rip),%rax
mov    (%rax),%edi
mov    -0xd4(%rbp),%edx
mov    -0xd8(%rbp),%ecx
mov    -0xdc(%rbp),%r8d
lea    0xb39(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2a9e(%rip),%rax
mov    (%rax),%edi
cvtsi2sdl -0xd4(%rbp),%xmm1
ff
movsd  0xaac(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0xd4(%rbp),%eax
add    -0xdc(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
cvtsi2sdl -0xd8(%rbp),%xmm2
ff
movsd  0xa84(%rip),%xmm1
mulsd  %xmm2,%xmm1
mov    -0xd4(%rbp),%eax
add    -0xdc(%rbp),%eax
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
cvtsi2sdl -0xdc(%rbp),%xmm3
ff
movsd  0xa5c(%rip),%xmm2
mulsd  %xmm3,%xmm2
mov    -0xd4(%rbp),%eax
add    -0xdc(%rbp),%eax
cvtsi2sd %eax,%xmm3
divsd  %xmm3,%xmm2
lea    0xace(%rip),%rsi
mov    $0x3,%al
call   1070 <fprintf@plt>
mov    -0xc8(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0xd0(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
cmp    $0x3,%edi
jne    12d2 <main+0x162>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
lea    0xe8c(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12f3 <main+0x183>
mov    %rax,%r15
mov    0x10(%r14),%rdi
lea    0xe70(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1302 <main+0x192>
mov    %rax,%r12
mov    %rsp,%rdi
mov    $0x50,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1260 <main+0xf0>
lea    0x50(%rsp),%r13
mov    %rsp,%rbx
jmp    120f <main+0x9f>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1260 <main+0xf0>
mov    %r13,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     12ad <main+0x13d>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11fa <main+0x8a>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsbl (%rsp,%rbp,1),%edi
cmp    $0xa,%edi
je     11f0 <main+0x80>
test   %dil,%dil
je     11f0 <main+0x80>
cmp    0x50(%rsp,%rbp,1),%dil
jne    1284 <main+0x114>
call   1030 <putchar@plt>
add    $0x1,%rbp
jmp    1240 <main+0xd0>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d55(%rip),%rax
mov    (%rax),%edi
lea    0xdb6(%rip),%rsi
mov    %rsp,%rdx
lea    0x50(%rsp),%rcx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2d2c(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
lea    0xd75(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2d07(%rip),%rax
mov    (%rax),%edi
lea    0xd1e(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
mov    0x8(%r14),%rdx
jmp    130f <main+0x19f>
mov    0x2cd7(%rip),%rax
mov    (%rax),%edi
mov    0x10(%r14),%rdx
lea    0xd10(%rip),%rsi
jmp    12c1 <main+0x151>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"Usage: wordmatch hyphdict hyphfile\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [16 x i8] c"%s: can't open\0A\00"
@.str.3 = [20 x i8] c"%s: unexpected eof\0A\00"
@.str.4 = [27 x i8] c"words don't match (%s,%s)\0A\00"
@.str.5 = [36 x i8] c" good (%7d) bad (%7d) missed (%7d)\0A\00"
@.str.6 = [48 x i8] c" good (%6.2f%%) bad (%6.2f%%) missed (%6.2f%%)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 3
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %10
%26 = load i32*, i32** %10
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %35
28: ; preds = %21
%29 = load i32, i32* @stderr
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %32)
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %21
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = call i32* @fopen(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %11
%40 = load i32*, i32** %11
%41 = icmp eq i32* %40, null
br i1 %41, label %42, label %49
42: ; preds = %35
%43 = load i32, i32* @stderr
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %46)
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %35
br label %50
50: ; preds = %49, %93, %162
%51 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
store i8* %51, i8** %8
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
store i8* %52, i8** %9
%53 = load i8*, i8** %8
%54 = load i32*, i32** %10
%55 = call i32* @fgets(i8* %53, i32 80, i32* %54)
%56 = icmp eq i32* %55, null
br i1 %56, label %57, label %58
57: ; preds = %50
br label %163
58: ; preds = %50
%59 = load i8*, i8** %9
%60 = load i32*, i32** %11
%61 = call i32* @fgets(i8* %59, i32 80, i32* %60)
%62 = icmp eq i32* %61, null
br i1 %62, label %63, label %70
63: ; preds = %58
%64 = load i32, i32* @stderr
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 1
%67 = load i8*, i8** %66
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %67)
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %58
%71 = load i8*, i8** %8
%72 = load i8*, i8** %9
%73 = call i64 @strcmp(i8* %71, i8* %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %94
75: ; preds = %70
br label %76
76: ; preds = %90, %75
%77 = load i8*, i8** %8
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 10
br i1 %80, label %81, label %93
81: ; preds = %76
%82 = load i8*, i8** %8
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 183
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load i32, i32* %12
%88 = add nsw i32 %87, 1
store i32 %88, i32* %12
br label %89
89: ; preds = %86, %81
br label %90
90: ; preds = %89
%91 = load i8*, i8** %8
%92 = getelementptr inbounds i8, i8* %91, i32 1
store i8* %92, i8** %8
br label %76
93: ; preds = %76
br label %50
94: ; preds = %70
br label %95
95: ; preds = %94, %129, %139, %150
%96 = load i8*, i8** %8
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 10
br i1 %99, label %105, label %100
100: ; preds = %95
%101 = load i8*, i8** %8
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %107
105: ; preds = %100, %95
%106 = call i32 @putchar(i32 10)
br label %162
107: ; preds = %100
%108 = load i8*, i8** %8
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = load i8*, i8** %9
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %110, %113
br i1 %114, label %115, label %134
115: ; preds = %107
%116 = load i8*, i8** %8
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 183
br i1 %119, label %120, label %124
120: ; preds = %115
%121 = call i32 @putchar(i32 42)
%122 = load i32, i32* %12
%123 = add nsw i32 %122, 1
store i32 %123, i32* %12
br label %129
124: ; preds = %115
%125 = load i8*, i8** %8
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = call i32 @putchar(i32 %127)
br label %129
129: ; preds = %124, %120
%130 = load i8*, i8** %8
%131 = getelementptr inbounds i8, i8* %130, i32 1
store i8* %131, i8** %8
%132 = load i8*, i8** %9
%133 = getelementptr inbounds i8, i8* %132, i32 1
store i8* %133, i8** %9
br label %95
134: ; preds = %107
%135 = load i8*, i8** %9
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 183
br i1 %138, label %139, label %145
139: ; preds = %134
%140 = call i32 @putchar(i32 46)
%141 = load i8*, i8** %9
%142 = getelementptr inbounds i8, i8* %141, i32 1
store i8* %142, i8** %9
%143 = load i32, i32* %13
%144 = add nsw i32 %143, 1
store i32 %144, i32* %13
br label %95
145: ; preds = %134
%146 = load i8*, i8** %8
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 183
br i1 %149, label %150, label %156
150: ; preds = %145
%151 = call i32 @putchar(i32 173)
%152 = load i8*, i8** %8
%153 = getelementptr inbounds i8, i8* %152, i32 1
store i8* %153, i8** %8
%154 = load i32, i32* %14
%155 = add nsw i32 %154, 1
store i32 %155, i32* %14
br label %95
156: ; preds = %145
%157 = load i32, i32* @stderr
%158 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%159 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %157, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %158, i8* %159)
%161 = call i32 @exit(i32 1)
unreachable
162: ; preds = %105
br label %50
163: ; preds = %57
%164 = load i32, i32* %12
%165 = load i32, i32* %14
%166 = add nsw i32 %164, %165
%167 = icmp sgt i32 %166, 0
br i1 %167, label %168, label %200
168: ; preds = %163
%169 = load i32, i32* @stderr
%170 = load i32, i32* %12
%171 = load i32, i32* %13
%172 = load i32, i32* %14
%173 = call i32 (i32, i8*, ...) @fprintf(i32 %169, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %170, i32 %171, i32 %172)
%174 = load i32, i32* @stderr
%175 = load i32, i32* %12
%176 = sitofp i32 %175 to double
%177 = fmul double 1.000000e+02, %176
%178 = load i32, i32* %12
%179 = load i32, i32* %14
%180 = add nsw i32 %178, %179
%181 = sitofp i32 %180 to double
%182 = fdiv double %177, %181
%183 = load i32, i32* %13
%184 = sitofp i32 %183 to double
%185 = fmul double 1.000000e+02, %184
%186 = load i32, i32* %12
%187 = load i32, i32* %14
%188 = add nsw i32 %186, %187
%189 = sitofp i32 %188 to double
%190 = fdiv double %185, %189
%191 = load i32, i32* %14
%192 = sitofp i32 %191 to double
%193 = fmul double 1.000000e+02, %192
%194 = load i32, i32* %12
%195 = load i32, i32* %14
%196 = add nsw i32 %194, %195
%197 = sitofp i32 %196 to double
%198 = fdiv double %193, %197
%199 = call i32 (i32, i8*, ...) @fprintf(i32 %174, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), double %182, double %190, double %198)
br label %200
200: ; preds = %168, %163
%201 = load i32*, i32** %10
%202 = call i32 @fclose(i32* %201)
%203 = load i32*, i32** %11
%204 = call i32 @fclose(i32* %203)
%205 = load i32, i32* %3
ret i32 %205
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [36 x i8] c"Usage: wordmatch hyphdict hyphfile\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [16 x i8] c"%s: can't open\0A\00"
@.str.3 = [20 x i8] c"%s: unexpected eof\0A\00"
@.str.4 = [27 x i8] c"words don't match (%s,%s)\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [80 x i8]
%4 = alloca [80 x i8]
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%7 = icmp eq i32 %0, 3
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i32, i32* @stderr
%19 = load i8*, i8** %13
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %19)
%21 = tail call i32 @exit(i32 1)
unreachable
22: ; preds = %12
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = tail call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %30, label %27
27: ; preds = %22
%28 = call i32* @fgets(i8* %5, i32 80, i32* %15)
%29 = icmp eq i32* %28, null
br i1 %29, label %67, label %35
30: ; preds = %22
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %23
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %32)
%34 = tail call i32 @exit(i32 1)
unreachable
35: ; preds = %27, %53
%36 = call i32* @fgets(i8* %6, i32 80, i32* %25)
%37 = icmp eq i32* %36, null
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = load i32, i32* @stderr
%40 = load i8*, i8** %13
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %40)
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %35
%44 = call i64 @strcmp(i8* %5, i8* %6)
%45 = icmp eq i64 %44, 0
br i1 %45, label %53, label %46
46: ; preds = %43, %59
%47 = phi i8* [ %62, %59 ], [ %6, %43 ]
%48 = phi i8* [ %61, %59 ], [ %5, %43 ]
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
switch i8 %49, label %56 [
i8 10, label %51
i8 0, label %51
]
51: ; preds = %46, %46
%52 = call i32 @putchar(i32 10)
br label %53
53: ; preds = %43, %51
%54 = call i32* @fgets(i8* %5, i32 80, i32* %15)
%55 = icmp eq i32* %54, null
br i1 %55, label %67, label %35
56: ; preds = %46
%57 = load i8, i8* %47
%58 = icmp eq i8 %49, %57
br i1 %58, label %59, label %63
59: ; preds = %56
%60 = call i32 @putchar(i32 %50)
%61 = getelementptr inbounds i8, i8* %48, i64 1
%62 = getelementptr inbounds i8, i8* %47, i64 1
br label %46
63: ; preds = %56
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8* %5, i8* %6)
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %53, %27
%68 = call i32 @fclose(i32* %15)
%69 = call i32 @fclose(i32* %25)
ret i32 0
}