#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 EOF;
double atof(char *);
int atoi(char *);
int read_word(int /*<<< orphan*/ *, char *, int);
scalar_t__ strcmp(char *, char *);
char tolower(char);
int read_one_edge(FILE *f, int *from, int *to, int *delay, double *effect) {
  int r = 0, ifrom = 0, ito = 0, idelay = 0, ieffect = 0;
  static char buf[64];
  r = read_word(f, buf, 64);
  if (r == EOF)
    return EOF;
  if (r == 0)
    return 0;
  while (1) {
    for (r = 0; buf[r] != '\0'; r++)
      buf[r] = tolower(buf[r]);
    if (0 == strcmp(buf, "from:")) {
      if ((r = read_word(f, buf, 64)) <= 0)
        break;
      *from = atoi(buf);
      ifrom = 1;
    } else if (0 == strcmp(buf, "to:")) {
      if ((r = read_word(f, buf, 64)) <= 0)
        break;
      *to = atoi(buf);
      ito = 1;
    } else if (0 == strcmp(buf, "delay:")) {
      if ((r = read_word(f, buf, 64)) <= 0)
        break;
      *delay = atoi(buf);
      idelay = 1;
    } else if (0 == strcmp(buf, "coef:") || 0 == strcmp(buf, "effect:")) {
      if ((r = read_word(f, buf, 64)) <= 0)
        break;
      *effect = atof(buf);
      ieffect = 1;
    } else {
      if ((r = read_word(f, buf, 64)) <= 0)
        break;
    }
    if ((r = read_word(f, buf, 64)) <= 0)
      break;
  }
  return ifrom + ito + idelay + ieffect;
}


x86 assembly (clang, -O0):
<read_one_edge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
lea    0x2ec6(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x2e37(%rip),%rcx
cmp    (%rcx),%eax
jne    11ca <read_one_edge+0x7a>
mov    0x2e28(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1467 <read_one_edge+0x317>
cmpl   $0x0,-0x34(%rbp)
jne    11e0 <read_one_edge+0x90>
movl   $0x0,-0x4(%rbp)
jmp    1467 <read_one_edge+0x317>
jmp    11e5 <read_one_edge+0x95>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rcx
lea    0x2e69(%rip),%rax
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1236 <read_one_edge+0xe6>
movslq -0x34(%rbp),%rcx
lea    0x2e51(%rip),%rax
movsbl (%rax,%rcx,1),%edi
call   1050 <tolower@plt>
mov    %al,%dl
movslq -0x34(%rbp),%rcx
lea    0x2e3b(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11ec <read_one_edge+0x9c>
lea    0x2e23(%rip),%rdi
lea    0xdbc(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    129d <read_one_edge+0x14d>
mov    -0x10(%rbp),%rdi
lea    0x2dfe(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     127d <read_one_edge+0x12d>
jmp    1458 <read_one_edge+0x308>
lea    0x2ddc(%rip),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x38(%rbp)
jmp    142d <read_one_edge+0x2dd>
lea    0x2dbc(%rip),%rdi
lea    0xd5b(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1304 <read_one_edge+0x1b4>
mov    -0x10(%rbp),%rdi
lea    0x2d97(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     12e4 <read_one_edge+0x194>
jmp    1458 <read_one_edge+0x308>
lea    0x2d75(%rip),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x3c(%rbp)
jmp    1428 <read_one_edge+0x2d8>
lea    0x2d55(%rip),%rdi
lea    0xcf8(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    136b <read_one_edge+0x21b>
mov    -0x10(%rbp),%rdi
lea    0x2d30(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     134b <read_one_edge+0x1fb>
jmp    1458 <read_one_edge+0x308>
lea    0x2d0e(%rip),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x1,-0x40(%rbp)
jmp    1423 <read_one_edge+0x2d3>
lea    0x2cee(%rip),%rdi
lea    0xc98(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     13ad <read_one_edge+0x25d>
lea    0x2ccd(%rip),%rdi
lea    0xc7d(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    13f3 <read_one_edge+0x2a3>
mov    -0x10(%rbp),%rdi
lea    0x2ca8(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     13d3 <read_one_edge+0x283>
jmp    1458 <read_one_edge+0x308>
lea    0x2c86(%rip),%rdi
call   1030 <atof@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x44(%rbp)
jmp    141e <read_one_edge+0x2ce>
mov    -0x10(%rbp),%rdi
lea    0x2c62(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     1419 <read_one_edge+0x2c9>
jmp    1458 <read_one_edge+0x308>
jmp    141e <read_one_edge+0x2ce>
jmp    1423 <read_one_edge+0x2d3>
jmp    1428 <read_one_edge+0x2d8>
jmp    142d <read_one_edge+0x2dd>
mov    -0x10(%rbp),%rdi
lea    0x2c28(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jg     1453 <read_one_edge+0x303>
jmp    1458 <read_one_edge+0x308>
jmp    11e5 <read_one_edge+0x95>
mov    -0x38(%rbp),%eax
add    -0x3c(%rbp),%eax
add    -0x40(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_one_edge>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8,0x18(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,%r13
mov    %rdi,%rbp
lea    0x2ee6(%rip),%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
mov    %eax,%ebx
mov    0x2e5b(%rip),%rax
cmp    (%rax),%ebx
je     1370 <read_one_edge+0x220>
test   %ebx,%ebx
je     136e <read_one_edge+0x21e>
xor    %ebx,%ebx
lea    0x2eba(%rip),%r15
lea    0xe53(%rip),%r14
movl   $0x0,0xc(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
jmp    11f8 <read_one_edge+0xa8>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
nop
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
mov    0x2e62(%rip),%al
test   %al,%al
je     122a <read_one_edge+0xda>
lea    0x2e58(%rip),%r12
nopl   0x0(%rax)
movsbl %al,%edi
call   1050 <tolower@plt>
mov    %al,-0x1(%r12)
movzbl (%r12),%eax
add    $0x1,%r12
test   %al,%al
jne    1210 <read_one_edge+0xc0>
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12d0 <read_one_edge+0x180>
mov    %r15,%rdi
lea    0xdbe(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1300 <read_one_edge+0x1b0>
mov    %r15,%rdi
lea    0xdaa(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1330 <read_one_edge+0x1e0>
mov    %r15,%rdi
lea    0xd99(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     129a <read_one_edge+0x14a>
mov    %r15,%rdi
lea    0xd8b(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11c7 <read_one_edge+0x77>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
mov    %r15,%rdi
call   1030 <atof@plt>
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,0x8(%rsp)
jmp    11e0 <read_one_edge+0x90>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
mov    %r15,%rdi
call   1070 <atoi@plt>
mov    %eax,0x0(%r13)
mov    $0x1,%ebx
jmp    11e0 <read_one_edge+0x90>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
mov    %r15,%rdi
call   1070 <atoi@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
movl   $0x1,0xc(%rsp)
jmp    11e0 <read_one_edge+0x90>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x40,%edx
call   1060 <read_word@plt>
test   %eax,%eax
jle    1360 <read_one_edge+0x210>
mov    %r15,%rdi
call   1070 <atoi@plt>
mov    0x10(%rsp),%rcx
mov    %eax,(%rcx)
movl   $0x1,0x4(%rsp)
jmp    11e0 <read_one_edge+0x90>
add    0xc(%rsp),%ebx
add    0x4(%rsp),%ebx
add    0x8(%rsp),%ebx
jmp    1370 <read_one_edge+0x220>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@read_one_edge.buf = internal global [64 x i8] zeroinitializer
@EOF = global i32 0
@.str = [6 x i8] c"from:\00"
@.str.1 = [4 x i8] c"to:\00"
@.str.2 = [7 x i8] c"delay:\00"
@.str.3 = [6 x i8] c"coef:\00"
@.str.4 = [8 x i8] c"effect:\00"
define i32 @read_one_edge(i32* %0, i32* %1, i32* %2, i32* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca double*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store double* %4, double** %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
%17 = load i32*, i32** %7
%18 = call i32 @read_word(i32* %17, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %18, i32* %12
%19 = load i32, i32* %12
%20 = load i32, i32* @EOF
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %5
%23 = load i32, i32* @EOF
store i32 %23, i32* %6
br label %119
24: ; preds = %5
%25 = load i32, i32* %12
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 0, i32* %6
br label %119
28: ; preds = %24
br label %29
29: ; preds = %28, %110
store i32 0, i32* %12
br label %30
30: ; preds = %46, %29
%31 = load i32, i32* %12
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %49
37: ; preds = %30
%38 = load i32, i32* %12
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = call signext i8 @tolower(i8 signext %41)
%43 = load i32, i32* %12
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 %44
store i8 %42, i8* %45
br label %46
46: ; preds = %37
%47 = load i32, i32* %12
%48 = add nsw i32 %47, 1
store i32 %48, i32* %12
br label %30
49: ; preds = %30
%50 = call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%51 = icmp eq i64 0, %50
br i1 %51, label %52, label %60
52: ; preds = %49
%53 = load i32*, i32** %7
%54 = call i32 @read_word(i32* %53, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %54, i32* %12
%55 = icmp sle i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
br label %111
57: ; preds = %52
%58 = call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
%59 = load i32*, i32** %8
store i32 %58, i32* %59
store i32 1, i32* %13
br label %105
60: ; preds = %49
%61 = call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%62 = icmp eq i64 0, %61
br i1 %62, label %63, label %71
63: ; preds = %60
%64 = load i32*, i32** %7
%65 = call i32 @read_word(i32* %64, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %65, i32* %12
%66 = icmp sle i32 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
br label %111
68: ; preds = %63
%69 = call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
%70 = load i32*, i32** %9
store i32 %69, i32* %70
store i32 1, i32* %14
br label %104
71: ; preds = %60
%72 = call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%73 = icmp eq i64 0, %72
br i1 %73, label %74, label %82
74: ; preds = %71
%75 = load i32*, i32** %7
%76 = call i32 @read_word(i32* %75, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %76, i32* %12
%77 = icmp sle i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %74
br label %111
79: ; preds = %74
%80 = call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
%81 = load i32*, i32** %10
store i32 %80, i32* %81
store i32 1, i32* %15
br label %103
82: ; preds = %71
%83 = call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%84 = icmp eq i64 0, %83
br i1 %84, label %88, label %85
85: ; preds = %82
%86 = call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%87 = icmp eq i64 0, %86
br i1 %87, label %88, label %96
88: ; preds = %85, %82
%89 = load i32*, i32** %7
%90 = call i32 @read_word(i32* %89, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %90, i32* %12
%91 = icmp sle i32 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
br label %111
93: ; preds = %88
%94 = call double @atof(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
%95 = load double*, double** %11
store double %94, double* %95
store i32 1, i32* %16
br label %102
96: ; preds = %85
%97 = load i32*, i32** %7
%98 = call i32 @read_word(i32* %97, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %98, i32* %12
%99 = icmp sle i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %96
br label %111
101: ; preds = %96
br label %102
102: ; preds = %101, %93
br label %103
103: ; preds = %102, %79
br label %104
104: ; preds = %103, %68
br label %105
105: ; preds = %104, %57
%106 = load i32*, i32** %7
%107 = call i32 @read_word(i32* %106, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
store i32 %107, i32* %12
%108 = icmp sle i32 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %105
br label %111
110: ; preds = %105
br label %29
111: ; preds = %109, %100, %92, %78, %67, %56
%112 = load i32, i32* %13
%113 = load i32, i32* %14
%114 = add nsw i32 %112, %113
%115 = load i32, i32* %15
%116 = add nsw i32 %114, %115
%117 = load i32, i32* %16
%118 = add nsw i32 %116, %117
store i32 %118, i32* %6
br label %119
119: ; preds = %111, %27, %22
%120 = load i32, i32* %6
ret i32 %120
}

LLVM IR (-O2):
@read_one_edge.buf = internal global [64 x i8] zeroinitializer
@EOF = global i32 0
@.str = [6 x i8] c"from:\00"
@.str.1 = [4 x i8] c"to:\00"
@.str.2 = [7 x i8] c"delay:\00"
@.str.3 = [6 x i8] c"coef:\00"
@.str.4 = [8 x i8] c"effect:\00"
define i32 @read_one_edge(i32* %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %80, label %9
9: ; preds = %5
%10 = icmp eq i32 %6, 0
br i1 %10, label %80, label %11
11: ; preds = %9, %65
%12 = phi i32 [ %66, %65 ], [ 0, %9 ]
%13 = phi i32 [ %67, %65 ], [ 0, %9 ]
%14 = phi i32 [ %68, %65 ], [ 0, %9 ]
%15 = phi i32 [ %69, %65 ], [ 0, %9 ]
%16 = load i8, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0)
%17 = icmp eq i8 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %11, %18
%19 = phi i64 [ %23, %18 ], [ 0, %11 ]
%20 = phi i8 [ %25, %18 ], [ %16, %11 ]
%21 = phi i8* [ %24, %18 ], [ getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), %11 ]
%22 = tail call signext i8 @tolower(i8 signext %20)
store i8 %22, i8* %21
%23 = add nuw i64 %19, 1
%24 = getelementptr inbounds [64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 0
br i1 %26, label %27, label %18
27: ; preds = %18, %11
%28 = tail call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%32 = icmp slt i32 %31, 1
br i1 %32, label %72, label %33
33: ; preds = %30
%34 = tail call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
store i32 %34, i32* %1
br label %65
35: ; preds = %27
%36 = tail call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%40 = icmp slt i32 %39, 1
br i1 %40, label %72, label %41
41: ; preds = %38
%42 = tail call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
store i32 %42, i32* %2
br label %65
43: ; preds = %35
%44 = tail call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%48 = icmp slt i32 %47, 1
br i1 %48, label %72, label %49
49: ; preds = %46
%50 = tail call i32 @atoi(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
store i32 %50, i32* %3
br label %65
51: ; preds = %43
%52 = tail call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %57, label %54
54: ; preds = %51
%55 = tail call i64 @strcmp(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %54, %51
%58 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%59 = icmp slt i32 %58, 1
br i1 %59, label %72, label %60
60: ; preds = %57
%61 = tail call double @atof(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0))
store double %61, double* %4
br label %65
62: ; preds = %54
%63 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%64 = icmp slt i32 %63, 1
br i1 %64, label %72, label %65
65: ; preds = %41, %60, %62, %49, %33
%66 = phi i32 [ 1, %33 ], [ %12, %41 ], [ %12, %49 ], [ %12, %60 ], [ %12, %62 ]
%67 = phi i32 [ %13, %33 ], [ 1, %41 ], [ %13, %49 ], [ %13, %60 ], [ %13, %62 ]
%68 = phi i32 [ %14, %33 ], [ %14, %41 ], [ 1, %49 ], [ %14, %60 ], [ %14, %62 ]
%69 = phi i32 [ %15, %33 ], [ %15, %41 ], [ %15, %49 ], [ 1, %60 ], [ %15, %62 ]
%70 = tail call i32 @read_word(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @read_one_edge.buf, i64 0, i64 0), i32 64)
%71 = icmp slt i32 %70, 1
br i1 %71, label %72, label %11
72: ; preds = %65, %62, %57, %46, %38, %30
%73 = phi i32 [ %12, %30 ], [ %66, %65 ], [ %12, %38 ], [ %12, %46 ], [ %12, %57 ], [ %12, %62 ]
%74 = phi i32 [ %13, %30 ], [ %67, %65 ], [ %13, %38 ], [ %13, %46 ], [ %13, %57 ], [ %13, %62 ]
%75 = phi i32 [ %14, %30 ], [ %68, %65 ], [ %14, %38 ], [ %14, %46 ], [ %14, %57 ], [ %14, %62 ]
%76 = phi i32 [ %15, %30 ], [ %69, %65 ], [ %15, %38 ], [ %15, %46 ], [ %15, %57 ], [ %15, %62 ]
%77 = add nsw i32 %74, %73
%78 = add nsw i32 %77, %75
%79 = add nsw i32 %78, %76
br label %80
80: ; preds = %9, %5, %72
%81 = phi i32 [ %79, %72 ], [ %6, %5 ], [ 0, %9 ]
ret i32 %81
}