#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 */

/* Variables and functions */
int /*<<< orphan*/ read_double(char const *, char *, double *);
scalar_t__ strcmp(char const *, char *);
void read_special_BC(const char *szFileName, double *UI, double *VI,
                     double *delta_p) {
  read_double(szFileName, "*UI", &(*UI));
  read_double(szFileName, "*VI", &(*VI));
  if (strcmp(szFileName, "plane_shear_flow.dat") == 0) {
    read_double(szFileName, "*delta_p", &(*delta_p));
  }
}


x86 assembly (clang, -O0):
<read_special_BC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xeb9(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xea9(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    118e <read_special_BC+0x6e>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xe94(%rip),%rsi
call   1040 <read_double@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_special_BC>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xec8(%rip),%rsi
call   1040 <read_double@plt>
lea    0xec0(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1040 <read_double@plt>
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1169 <read_special_BC+0x49>
pop    %rbx
pop    %r14
pop    %r15
ret
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <read_double@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"*UI\00"
@.str.1 = [4 x i8] c"*VI\00"
@.str.2 = [21 x i8] c"plane_shear_flow.dat\00"
@.str.3 = [9 x i8] c"*delta_p\00"
define void @read_special_BC(i8* %0, double* %1, double* %2, double* %3) {
%5 = alloca i8*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
store i8* %0, i8** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%9 = load i8*, i8** %5
%10 = load double*, double** %6
%11 = call i32 @read_double(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %10)
%12 = load i8*, i8** %5
%13 = load double*, double** %7
%14 = call i32 @read_double(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %13)
%15 = load i8*, i8** %5
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %4
%19 = load i8*, i8** %5
%20 = load double*, double** %8
%21 = call i32 @read_double(i8* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double* %20)
br label %22
22: ; preds = %18, %4
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"*UI\00"
@.str.1 = [4 x i8] c"*VI\00"
@.str.2 = [21 x i8] c"plane_shear_flow.dat\00"
@.str.3 = [9 x i8] c"*delta_p\00"
define void @read_special_BC(i8* %0, double* %1, double* %2, double* %3) {
%5 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%6 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%7 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double* %3)
br label %11
11: ; preds = %9, %4
ret void
}