#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 BUFSIZ;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, int, int, int);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
void get_cpuinfo_x86(char *cpuinfo) {
  FILE *fff;
  char temp_string[BUFSIZ], temp_string2[BUFSIZ];
  char vendor[BUFSIZ];
  char *result;
  int family, model, stepping;
  fff = fopen("/proc/cpuinfo", "r");
  if (fff == NULL) {
    strcpy(cpuinfo, "UNKNOWN");
    return;
  }
  strcpy(vendor, "UNKNOWN ");
  while (1) {
    result = fgets(temp_string, BUFSIZ, fff);
    if (result == NULL)
      break;
    if (!strncmp(temp_string, "vendor_id", 9)) {
      sscanf(temp_string, "%*s%*s%s", temp_string2);
      if (!strncmp(temp_string2, "GenuineIntel", 12)) {
        strcpy(vendor, "Intel");
      } else if (!strncmp(temp_string2, "AuthenticAMD", 12)) {
        strcpy(vendor, "AMD");
      }
    }
    if (!strncmp(temp_string, "cpu family", 10)) {
      sscanf(temp_string, "%*s%*s%*s%d", &family);
    }
    if (!strncmp(temp_string, "model", 5)) {
      sscanf(temp_string, "%*s%s", temp_string2);
      if (temp_string2[0] == ':') {
        sscanf(temp_string, "%*s%*s%d", &model);
      }
    }
    if (!strncmp(temp_string, "stepping", 8)) {
      sscanf(temp_string, "%*s%*s%d", &stepping);
    }
  }
  fclose(fff);
  sprintf(cpuinfo, "%s %d/%d/%d\n", vendor, family, model, stepping);
}


x86 assembly (clang, -O0):
<get_cpuinfo_x86>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e5d(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rdx
mov    %rdx,-0x18(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x20(%rbp)
mov    (%rax),%ecx
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x58(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x28(%rbp)
mov    (%rax),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
lea    0xe15(%rip),%rdi
lea    0xe1c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1222 <get_cpuinfo_x86+0xb2>
mov    -0x8(%rbp),%rdi
lea    0xdff(%rip),%rsi
call   1040 <strcpy@plt>
movl   $0x1,-0x48(%rbp)
jmp    13fb <get_cpuinfo_x86+0x28b>
mov    -0x50(%rbp),%rdi
lea    0xdeb(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1237 <get_cpuinfo_x86+0xc7>
mov    -0x60(%rbp),%rdi
mov    0x2d9e(%rip),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
call   1060 <fgets@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1261 <get_cpuinfo_x86+0xf1>
jmp    13cc <get_cpuinfo_x86+0x25c>
mov    -0x60(%rbp),%rdi
lea    0xdb5(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1300 <get_cpuinfo_x86+0x190>
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rdi
lea    0xd9d(%rip),%rsi
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x58(%rbp),%rdi
lea    0xd94(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12c8 <get_cpuinfo_x86+0x158>
mov    -0x50(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   1040 <strcpy@plt>
jmp    12fb <get_cpuinfo_x86+0x18b>
mov    -0x58(%rbp),%rdi
lea    0xd6e(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12f6 <get_cpuinfo_x86+0x186>
mov    -0x50(%rbp),%rdi
lea    0xd59(%rip),%rsi
call   1040 <strcpy@plt>
jmp    12fb <get_cpuinfo_x86+0x18b>
jmp    1300 <get_cpuinfo_x86+0x190>
mov    -0x60(%rbp),%rdi
lea    0xd43(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1334 <get_cpuinfo_x86+0x1c4>
mov    -0x60(%rbp),%rdi
lea    0xd30(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x60(%rbp),%rdi
lea    0xd26(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1393 <get_cpuinfo_x86+0x223>
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rdi
lea    0xccd(%rip),%rsi
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x58(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    138e <get_cpuinfo_x86+0x21e>
mov    -0x60(%rbp),%rdi
lea    0xcd9(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
jmp    1393 <get_cpuinfo_x86+0x223>
mov    -0x60(%rbp),%rdi
lea    0xccd(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    13c7 <get_cpuinfo_x86+0x257>
mov    -0x60(%rbp),%rdi
lea    0xca0(%rip),%rsi
lea    -0x44(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
jmp    1232 <get_cpuinfo_x86+0xc2>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x50(%rbp),%rdx
mov    -0x8(%rbp),%rdi
mov    -0x3c(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x44(%rbp),%r9d
lea    0xc85(%rip),%rsi
call   1090 <sprintf@plt>
movl   $0x0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_cpuinfo_x86>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%r14
mov    0x2e55(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
mov    %rsp,%r15
sub    %rax,%r15
mov    %r15,%rsp
lea    0xe49(%rip),%rdi
lea    0xe50(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1398 <get_cpuinfo_x86+0x228>
mov    %rax,%r13
mov    %r14,-0x48(%rbp)
lea    0xe3e(%rip),%rsi
mov    %r15,-0x40(%rbp)
mov    %r15,%rdi
call   1040 <strcpy@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1362 <get_cpuinfo_x86+0x1f2>
lea    0xe5b(%rip),%r14
lea    0xe5a(%rip),%r15
jmp    123d <get_cpuinfo_x86+0xcd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2db9(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1362 <get_cpuinfo_x86+0x1f2>
mov    %rbx,%rdi
lea    0xdda(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    12b0 <get_cpuinfo_x86+0x140>
mov    %rbx,%rdi
lea    0xdcc(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
mov    %r12,%rdi
lea    0xdc1(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
lea    0xdb7(%rip),%rsi
test   %eax,%eax
je     12a7 <get_cpuinfo_x86+0x137>
mov    %r12,%rdi
lea    0xdaf(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
lea    0xda7(%rip),%rsi
test   %eax,%eax
jne    12b0 <get_cpuinfo_x86+0x140>
mov    -0x40(%rbp),%rdi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xd94(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    12dd <get_cpuinfo_x86+0x16d>
mov    %rbx,%rdi
lea    0xd87(%rip),%rsi
lea    -0x34(%rbp),%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1330 <get_cpuinfo_x86+0x1c0>
mov    %rbx,%rdi
lea    0xd33(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
cmpb   $0x3a,(%r12)
jne    1330 <get_cpuinfo_x86+0x1c0>
mov    %rbx,%rdi
lea    0xd46(%rip),%rsi
lea    -0x30(%rbp),%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1220 <get_cpuinfo_x86+0xb0>
mov    %rbx,%rdi
lea    0xd0a(%rip),%rsi
lea    -0x2c(%rbp),%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
jmp    1220 <get_cpuinfo_x86+0xb0>
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    -0x34(%rbp),%ecx
mov    -0x30(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
lea    0xcf8(%rip),%rsi
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rdx
call   1090 <sprintf@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc71(%rip),%rsi
mov    %r14,%rdi
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <strcpy@plt>

LLVM IR (-O0):
@BUFSIZ = global i32 0
@.str = [14 x i8] c"/proc/cpuinfo\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [8 x i8] c"UNKNOWN\00"
@.str.3 = [9 x i8] c"UNKNOWN \00"
@.str.4 = [10 x i8] c"vendor_id\00"
@.str.5 = [9 x i8] c"%*s%*s%s\00"
@.str.6 = [13 x i8] c"GenuineIntel\00"
@.str.7 = [6 x i8] c"Intel\00"
@.str.8 = [13 x i8] c"AuthenticAMD\00"
@.str.9 = [4 x i8] c"AMD\00"
@.str.10 = [11 x i8] c"cpu family\00"
@.str.11 = [12 x i8] c"%*s%*s%*s%d\00"
@.str.12 = [6 x i8] c"model\00"
@.str.13 = [6 x i8] c"%*s%s\00"
@.str.14 = [9 x i8] c"%*s%*s%d\00"
@.str.15 = [9 x i8] c"stepping\00"
@.str.16 = [13 x i8] c"%s %d/%d/%d\0A\00"
define void @get_cpuinfo_x86(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %2
%13 = load i32, i32* @BUFSIZ
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
store i8* %15, i8** %4
%16 = alloca i8, i64 %14
store i64 %14, i64* %5
%17 = load i32, i32* @BUFSIZ
%18 = zext i32 %17 to i64
%19 = alloca i8, i64 %18
store i64 %18, i64* %6
%20 = load i32, i32* @BUFSIZ
%21 = zext i32 %20 to i64
%22 = alloca i8, i64 %21
store i64 %21, i64* %7
%23 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %3
%24 = load i32*, i32** %3
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %29
26: ; preds = %1
%27 = load i8*, i8** %2
%28 = call i32 @strcpy(i8* %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %12
br label %86
29: ; preds = %1
%30 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %31
31: ; preds = %77, %29
br label %32
32: ; preds = %31
%33 = load i32, i32* @BUFSIZ
%34 = load i32*, i32** %3
%35 = call i8* @fgets(i8* %16, i32 %33, i32* %34)
store i8* %35, i8** %8
%36 = load i8*, i8** %8
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %39
38: ; preds = %32
br label %78
39: ; preds = %32
%40 = call i32 @strncmp(i8* %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 9)
%41 = icmp ne i32 %40, 0
br i1 %41, label %55, label %42
42: ; preds = %39
%43 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %19)
%44 = call i32 @strncmp(i8* %19, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 12)
%45 = icmp ne i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %42
%47 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %54
48: ; preds = %42
%49 = call i32 @strncmp(i8* %19, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 12)
%50 = icmp ne i32 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %48
%52 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %53
53: ; preds = %51, %48
br label %54
54: ; preds = %53, %46
br label %55
55: ; preds = %54, %39
%56 = call i32 @strncmp(i8* %16, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 10)
%57 = icmp ne i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32* %9)
br label %60
60: ; preds = %58, %55
%61 = call i32 @strncmp(i8* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 5)
%62 = icmp ne i32 %61, 0
br i1 %62, label %72, label %63
63: ; preds = %60
%64 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %19)
%65 = getelementptr inbounds i8, i8* %19, i64 0
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 58
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32* %10)
br label %71
71: ; preds = %69, %63
br label %72
72: ; preds = %71, %60
%73 = call i32 @strncmp(i8* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 8)
%74 = icmp ne i32 %73, 0
br i1 %74, label %77, label %75
75: ; preds = %72
%76 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32* %11)
br label %77
77: ; preds = %75, %72
br label %31
78: ; preds = %38
%79 = load i32*, i32** %3
%80 = call i32 @fclose(i32* %79)
%81 = load i8*, i8** %2
%82 = load i32, i32* %9
%83 = load i32, i32* %10
%84 = load i32, i32* %11
%85 = call i32 @sprintf(i8* %81, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %22, i32 %82, i32 %83, i32 %84)
store i32 0, i32* %12
br label %86
86: ; preds = %78, %26
%87 = load i8*, i8** %4
%88 = load i32, i32* %12
switch i32 %88, label %90 [
i32 0, label %89
i32 1, label %89
]
89: ; preds = %86, %86
ret void
90: ; preds = %86
unreachable
}

LLVM IR (-O2):
@BUFSIZ = global i32 0
@.str = [14 x i8] c"/proc/cpuinfo\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [8 x i8] c"UNKNOWN\00"
@.str.3 = [9 x i8] c"UNKNOWN \00"
@.str.4 = [10 x i8] c"vendor_id\00"
@.str.5 = [9 x i8] c"%*s%*s%s\00"
@.str.6 = [13 x i8] c"GenuineIntel\00"
@.str.7 = [6 x i8] c"Intel\00"
@.str.8 = [13 x i8] c"AuthenticAMD\00"
@.str.9 = [4 x i8] c"AMD\00"
@.str.10 = [11 x i8] c"cpu family\00"
@.str.11 = [12 x i8] c"%*s%*s%*s%d\00"
@.str.12 = [6 x i8] c"model\00"
@.str.13 = [6 x i8] c"%*s%s\00"
@.str.14 = [9 x i8] c"%*s%*s%d\00"
@.str.15 = [9 x i8] c"stepping\00"
@.str.16 = [13 x i8] c"%s %d/%d/%d\0A\00"
define void @get_cpuinfo_x86(i8* %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = load i32, i32* @BUFSIZ
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = alloca i8, i64 %6
%9 = alloca i8, i64 %6
%10 = bitcast i32* %2 to i8*
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %64
17: ; preds = %1
%18 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%19 = load i32, i32* @BUFSIZ
%20 = call i8* @fgets(i8* %7, i32 %19, i32* %13)
%21 = icmp eq i8* %20, null
br i1 %21, label %58, label %22
22: ; preds = %17, %54
%23 = call i32 @strncmp(i8* %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 9)
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = call i32 (i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %8)
%27 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 12)
%28 = icmp eq i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %25
%30 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 12)
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29, %25
%33 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %25 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), %29 ]
%34 = call i32 @strcpy(i8* %9, i8* %33)
br label %35
35: ; preds = %32, %29, %22
%36 = call i32 @strncmp(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 10)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i32* %2)
br label %40
40: ; preds = %38, %35
%41 = call i32 @strncmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 5)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %40
%44 = call i32 (i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %8)
%45 = load i8, i8* %8
%46 = icmp eq i8 %45, 58
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 (i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32* %3)
br label %49
49: ; preds = %43, %47, %40
%50 = call i32 @strncmp(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 8)
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 (i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32* %4)
br label %54
54: ; preds = %52, %49
%55 = load i32, i32* @BUFSIZ
%56 = call i8* @fgets(i8* %7, i32 %55, i32* %13)
%57 = icmp eq i8* %56, null
br i1 %57, label %58, label %22
58: ; preds = %54, %17
%59 = call i32 @fclose(i32* %13)
%60 = load i32, i32* %2
%61 = load i32, i32* %3
%62 = load i32, i32* %4
%63 = call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %9, i32 %60, i32 %61, i32 %62)
br label %64
64: ; preds = %58, %15
ret void
}