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

/* Variables and functions */
int /*<<< orphan*/ add_tag_to_rpc(struct rpc *, char *, double);
char *fgets(char *, int, int /*<<< orphan*/ *);
double get_tagged_number(char *, char *);
scalar_t__ isfinite(double);
int /*<<< orphan*/ nan_rpc(struct rpc *);
int /*<<< orphan*/ read_rpc_file_ikonos(struct rpc *, char *);
int /*<<< orphan*/ read_rpc_file_xml_pleiades(struct rpc *, char *);
int /*<<< orphan*/ read_rpc_file_xml_worldview(struct rpc *, char *);
scalar_t__ strhas(char *, char *);
int /*<<< orphan*/ xfclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *xfopen(char *, char *);
void read_rpc_file_xml(struct rpc *p, char *filename) {
  nan_rpc(p);
  FILE *f = xfopen(filename, "r");
  int n = 0x100, found = 0;
  while (!found) {
    char line[n], *sl = fgets(line, n, f);
    ;
    if (!sl)
      break;
    if (0 == strhas(line, "LINE_OFF:")) {
      found = 1;
      char tag[n];
      double x = get_tagged_number(tag, line);
      if (isfinite(x))
        add_tag_to_rpc(p, tag, x);
      read_rpc_file_ikonos(p, filename);
    }
    if (0 == strhas(line, "<SATID>") && 0 == strhas(line, "WV0")) {
      found = 1;
      read_rpc_file_xml_worldview(p, filename);
    }
    if (0 == strhas(line, "<METADATA_PROFILE>") &&
        0 == strhas(line, "PHR_SENSOR")) {
      found = 1;
      read_rpc_file_xml_pleiades(p, filename);
    }
    if (0 == strhas(line, "<METADATA_PROFILE>") &&
        0 == strhas(line, "S6_SENSOR")) {
      found = 1;
      read_rpc_file_xml_pleiades(p, filename);
    }
    if (0 == strhas(line, "<METADATA_PROFILE>") &&
        0 == strhas(line, "S7_SENSOR")) {
      found = 1;
      read_rpc_file_xml_pleiades(p, filename);
    }
  }
  xfclose(f);
}


x86 assembly (clang, -O0):
<read_rpc_file_xml>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   10b0 <nan_rpc@plt>
mov    -0x10(%rbp),%rdi
lea    0xe2c(%rip),%rsi
call   1040 <xfopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x100,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1201 <read_rpc_file_xml+0x51>
jmp    1449 <read_rpc_file_xml+0x299>
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x60(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1090 <fgets@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    124e <read_rpc_file_xml+0x9e>
movl   $0x3,-0x3c(%rbp)
jmp    1428 <read_rpc_file_xml+0x278>
mov    -0x60(%rbp),%rdi
lea    0xda9(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    12e1 <read_rpc_file_xml+0x131>
mov    -0x60(%rbp),%rsi
movl   $0x1,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x68(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x50(%rbp)
call   1070 <get_tagged_number@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
call   10a0 <isfinite@plt>
cmp    $0x0,%rax
je     12cd <read_rpc_file_xml+0x11d>
mov    -0x68(%rbp),%rsi
mov    -0x8(%rbp),%rdi
movsd  -0x58(%rbp),%xmm0
call   1050 <add_tag_to_rpc@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <read_rpc_file_ikonos@plt>
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x60(%rbp),%rdi
lea    0xd20(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1331 <read_rpc_file_xml+0x181>
mov    -0x60(%rbp),%rdi
lea    0xd0a(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1331 <read_rpc_file_xml+0x181>
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <read_rpc_file_xml_worldview@plt>
mov    -0x60(%rbp),%rdi
lea    0xcdc(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1381 <read_rpc_file_xml+0x1d1>
mov    -0x60(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1381 <read_rpc_file_xml+0x1d1>
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
mov    -0x60(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    13d1 <read_rpc_file_xml+0x221>
mov    -0x60(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    13d1 <read_rpc_file_xml+0x221>
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
mov    -0x60(%rbp),%rdi
lea    0xc3c(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1421 <read_rpc_file_xml+0x271>
mov    -0x60(%rbp),%rdi
lea    0xc46(%rip),%rsi
call   1080 <strhas@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1421 <read_rpc_file_xml+0x271>
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x3c(%rbp),%eax
test   %eax,%eax
je     1444 <read_rpc_file_xml+0x294>
jmp    143f <read_rpc_file_xml+0x28f>
jmp    1449 <read_rpc_file_xml+0x299>
jmp    11eb <read_rpc_file_xml+0x3b>
mov    -0x18(%rbp),%rdi
call   10d0 <xfclose@plt>
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_rpc_file_xml>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%r12
call   10b0 <nan_rpc@plt>
lea    0xe2d(%rip),%rsi
mov    %r14,%rdi
call   1040 <xfopen@plt>
mov    %rax,-0x30(%rbp)
jmp    11fb <read_rpc_file_xml+0x4b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rsp
test   %ebx,%ebx
jne    138e <read_rpc_file_xml+0x1de>
mov    %rsp,%r15
mov    %rsp,%r13
add    $0xffffffffffffff00,%r13
mov    %r13,%rsp
mov    %r13,%rdi
mov    $0x100,%esi
mov    -0x30(%rbp),%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     138b <read_rpc_file_xml+0x1db>
mov    %r13,%rdi
lea    0xdd3(%rip),%rsi
call   1080 <strhas@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    1290 <read_rpc_file_xml+0xe0>
mov    %r14,%rbx
mov    %rsp,-0x40(%rbp)
mov    %rsp,%r14
add    $0xffffffffffffff00,%r14
mov    %r14,%rsp
mov    %r14,%rdi
mov    %r13,%rsi
call   1070 <get_tagged_number@plt>
movsd  %xmm0,-0x38(%rbp)
call   10a0 <isfinite@plt>
test   %rax,%rax
je     1279 <read_rpc_file_xml+0xc9>
mov    %r12,%rdi
mov    %r14,%rsi
movsd  -0x38(%rbp),%xmm0
call   1050 <add_tag_to_rpc@plt>
mov    %r12,%rdi
mov    %rbx,%r14
mov    %rbx,%rsi
call   1060 <read_rpc_file_ikonos@plt>
mov    $0x1,%ebx
mov    -0x40(%rbp),%rsp
mov    %r13,%rdi
lea    0xd72(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    12d0 <read_rpc_file_xml+0x120>
mov    %r13,%rdi
lea    0xd66(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    12d0 <read_rpc_file_xml+0x120>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <read_rpc_file_xml_worldview@plt>
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
lea    0xd3e(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    1310 <read_rpc_file_xml+0x160>
mov    %r13,%rdi
lea    0xd3d(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    1310 <read_rpc_file_xml+0x160>
mov    %r12,%rdi
mov    %r14,%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
lea    0xcfe(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    1350 <read_rpc_file_xml+0x1a0>
mov    %r13,%rdi
lea    0xd08(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    1350 <read_rpc_file_xml+0x1a0>
mov    %r12,%rdi
mov    %r14,%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
lea    0xcbe(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    11f0 <read_rpc_file_xml+0x40>
mov    %r13,%rdi
lea    0xcce(%rip),%rsi
call   1080 <strhas@plt>
test   %rax,%rax
jne    11f0 <read_rpc_file_xml+0x40>
mov    %r12,%rdi
mov    %r14,%rsi
call   10c0 <read_rpc_file_xml_pleiades@plt>
mov    %r15,%rsp
mov    -0x30(%rbp),%rdi
call   10d0 <xfclose@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.rpc = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [10 x i8] c"LINE_OFF:\00"
@.str.2 = [8 x i8] c"<SATID>\00"
@.str.3 = [4 x i8] c"WV0\00"
@.str.4 = [19 x i8] c"<METADATA_PROFILE>\00"
@.str.5 = [11 x i8] c"PHR_SENSOR\00"
@.str.6 = [10 x i8] c"S6_SENSOR\00"
@.str.7 = [10 x i8] c"S7_SENSOR\00"
define void @read_rpc_file_xml(%struct.rpc* %0, i8* %1) {
%3 = alloca %struct.rpc*
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i64
%14 = alloca double
store %struct.rpc* %0, %struct.rpc** %3
store i8* %1, i8** %4
%15 = load %struct.rpc*, %struct.rpc** %3
%16 = call i32 @nan_rpc(%struct.rpc* %15)
%17 = load i8*, i8** %4
%18 = call i32* @xfopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %18, i32** %5
store i32 256, i32* %6
store i32 0, i32* %7
br label %19
19: ; preds = %99, %2
%20 = load i32, i32* %7
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br i1 %22, label %23, label %100
23: ; preds = %19
%24 = load i32, i32* %6
%25 = zext i32 %24 to i64
%26 = call i8* @llvm.stacksave()
store i8* %26, i8** %8
%27 = alloca i8, i64 %25
store i64 %25, i64* %9
%28 = load i32, i32* %6
%29 = load i32*, i32** %5
%30 = call i8* @fgets(i8* %27, i32 %28, i32* %29)
store i8* %30, i8** %10
%31 = load i8*, i8** %10
%32 = icmp ne i8* %31, null
br i1 %32, label %34, label %33
33: ; preds = %23
store i32 3, i32* %11
br label %96
34: ; preds = %23
%35 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%36 = icmp eq i64 0, %35
br i1 %36, label %37, label %55
37: ; preds = %34
store i32 1, i32* %7
%38 = load i32, i32* %6
%39 = zext i32 %38 to i64
%40 = call i8* @llvm.stacksave()
store i8* %40, i8** %12
%41 = alloca i8, i64 %39
store i64 %39, i64* %13
%42 = call double @get_tagged_number(i8* %41, i8* %27)
store double %42, double* %14
%43 = load double, double* %14
%44 = call i64 @isfinite(double %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %37
%47 = load %struct.rpc*, %struct.rpc** %3
%48 = load double, double* %14
%49 = call i32 @add_tag_to_rpc(%struct.rpc* %47, i8* %41, double %48)
br label %50
50: ; preds = %46, %37
%51 = load %struct.rpc*, %struct.rpc** %3
%52 = load i8*, i8** %4
%53 = call i32 @read_rpc_file_ikonos(%struct.rpc* %51, i8* %52)
%54 = load i8*, i8** %12
br label %55
55: ; preds = %50, %34
%56 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%57 = icmp eq i64 0, %56
br i1 %57, label %58, label %65
58: ; preds = %55
%59 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%60 = icmp eq i64 0, %59
br i1 %60, label %61, label %65
61: ; preds = %58
store i32 1, i32* %7
%62 = load %struct.rpc*, %struct.rpc** %3
%63 = load i8*, i8** %4
%64 = call i32 @read_rpc_file_xml_worldview(%struct.rpc* %62, i8* %63)
br label %65
65: ; preds = %61, %58, %55
%66 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%67 = icmp eq i64 0, %66
br i1 %67, label %68, label %75
68: ; preds = %65
%69 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%70 = icmp eq i64 0, %69
br i1 %70, label %71, label %75
71: ; preds = %68
store i32 1, i32* %7
%72 = load %struct.rpc*, %struct.rpc** %3
%73 = load i8*, i8** %4
%74 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %72, i8* %73)
br label %75
75: ; preds = %71, %68, %65
%76 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%77 = icmp eq i64 0, %76
br i1 %77, label %78, label %85
78: ; preds = %75
%79 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%80 = icmp eq i64 0, %79
br i1 %80, label %81, label %85
81: ; preds = %78
store i32 1, i32* %7
%82 = load %struct.rpc*, %struct.rpc** %3
%83 = load i8*, i8** %4
%84 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %82, i8* %83)
br label %85
85: ; preds = %81, %78, %75
%86 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%87 = icmp eq i64 0, %86
br i1 %87, label %88, label %95
88: ; preds = %85
%89 = call i64 @strhas(i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%90 = icmp eq i64 0, %89
br i1 %90, label %91, label %95
91: ; preds = %88
store i32 1, i32* %7
%92 = load %struct.rpc*, %struct.rpc** %3
%93 = load i8*, i8** %4
%94 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %92, i8* %93)
br label %95
95: ; preds = %91, %88, %85
store i32 0, i32* %11
br label %96
96: ; preds = %95, %33
%97 = load i8*, i8** %8
%98 = load i32, i32* %11
switch i32 %98, label %103 [
i32 0, label %99
i32 3, label %100
]
99: ; preds = %96
br label %19
100: ; preds = %96, %19
%101 = load i32*, i32** %5
%102 = call i32 @xfclose(i32* %101)
ret void
103: ; preds = %96
unreachable
}

LLVM IR (-O2):
%struct.rpc = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [10 x i8] c"LINE_OFF:\00"
@.str.2 = [8 x i8] c"<SATID>\00"
@.str.3 = [4 x i8] c"WV0\00"
@.str.4 = [19 x i8] c"<METADATA_PROFILE>\00"
@.str.5 = [11 x i8] c"PHR_SENSOR\00"
@.str.6 = [10 x i8] c"S6_SENSOR\00"
@.str.7 = [10 x i8] c"S7_SENSOR\00"
define void @read_rpc_file_xml(%struct.rpc* %0, i8* %1) {
%3 = tail call i32 @nan_rpc(%struct.rpc* %0)
%4 = tail call i32* @xfopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %2, %61
%6 = call i8* @llvm.stacksave()
%7 = alloca [256 x i8]
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%9 = call i8* @fgets(i8* %8, i32 256, i32* %4)
%10 = icmp eq i8* %9, null
br i1 %10, label %63, label %11
11: ; preds = %5
%12 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = call i8* @llvm.stacksave()
%16 = alloca [256 x i8]
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %16, i64 0, i64 0
%18 = call double @get_tagged_number(i8* %17, i8* %8)
%19 = call i64 @isfinite(double %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %14
%22 = call i32 @add_tag_to_rpc(%struct.rpc* %0, i8* %17, double %18)
br label %23
23: ; preds = %21, %14
%24 = call i32 @read_rpc_file_ikonos(%struct.rpc* %0, i8* %1)
br label %25
25: ; preds = %23, %11
%26 = phi i32 [ 1, %23 ], [ 0, %11 ]
%27 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @read_rpc_file_xml_worldview(%struct.rpc* %0, i8* %1)
br label %34
34: ; preds = %32, %29, %25
%35 = phi i32 [ 1, %32 ], [ %26, %29 ], [ %26, %25 ]
%36 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %0, i8* %1)
br label %43
43: ; preds = %41, %38, %34
%44 = phi i32 [ 1, %41 ], [ %35, %38 ], [ %35, %34 ]
%45 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %0, i8* %1)
br label %52
52: ; preds = %50, %47, %43
%53 = phi i32 [ 1, %50 ], [ %44, %47 ], [ %44, %43 ]
%54 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %52
%57 = call i64 @strhas(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @read_rpc_file_xml_pleiades(%struct.rpc* %0, i8* %1)
br label %63
61: ; preds = %52, %56
%62 = icmp eq i32 %53, 0
br i1 %62, label %5, label %64
63: ; preds = %5, %59
br label %64
64: ; preds = %61, %63
%65 = call i32 @xfclose(i32* %4)
ret void
}