#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*/ evaluate_prq_c(char const *, int *, char const *, int *,
                                  int *, double *, char const *, int *,
                                  double *, double *);
int strlen(char const *);
void evaluate_prq(const char *mesh_type, const char *vessel_type, int grav_dirn,
                  double grav_factor, const char *bc_type, double inlet_bc,
                  double outlet_bc) {
  int mesh_type_len = strlen(mesh_type);
  int bc_type_len = strlen(bc_type);
  int vessel_type_len = strlen(vessel_type);
  evaluate_prq_c(mesh_type, &mesh_type_len, vessel_type, &vessel_type_len,
                 &grav_dirn, &grav_factor, bc_type, &bc_type_len, &inlet_bc,
                 &outlet_bc);
}


x86 assembly (clang, -O0):
<evaluate_prq>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
movsd  %xmm2,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x44(%rbp)
mov    -0x30(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x30(%rbp),%rbx
lea    -0x44(%rbp),%rsi
lea    -0x4c(%rbp),%rcx
lea    -0x1c(%rbp),%r8
lea    -0x28(%rbp),%r9
lea    -0x48(%rbp),%r11
lea    -0x38(%rbp),%r10
lea    -0x40(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1040 <evaluate_prq_c@plt>
add    $0x68,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluate_prq>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rcx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    %edx,0x14(%rsp)
movsd  %xmm0,0x28(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm2,0x18(%rsp)
call   1030 <strlen@plt>
mov    %eax,0x10(%rsp)
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %eax,0xc(%rsp)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %eax,0x8(%rsp)
lea    0x18(%rsp),%rax
lea    0x20(%rsp),%r10
lea    0xc(%rsp),%r11
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x28(%rsp),%r9
mov    %rbx,%rdi
mov    %r15,%rdx
push   %rax
push   %r10
push   %r11
push   %r14
call   1040 <evaluate_prq_c@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @evaluate_prq(i8* %0, i8* %1, i32 %2, double %3, i8* %4, double %5, double %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca double
%12 = alloca i8*
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %8
store i8* %1, i8** %9
store i32 %2, i32* %10
store double %3, double* %11
store i8* %4, i8** %12
store double %5, double* %13
store double %6, double* %14
%18 = load i8*, i8** %8
%19 = call i32 @strlen(i8* %18)
store i32 %19, i32* %15
%20 = load i8*, i8** %12
%21 = call i32 @strlen(i8* %20)
store i32 %21, i32* %16
%22 = load i8*, i8** %9
%23 = call i32 @strlen(i8* %22)
store i32 %23, i32* %17
%24 = load i8*, i8** %8
%25 = load i8*, i8** %9
%26 = load i8*, i8** %12
%27 = call i32 @evaluate_prq_c(i8* %24, i32* %15, i8* %25, i32* %17, i32* %10, double* %11, i8* %26, i32* %16, double* %13, double* %14)
ret void
}

LLVM IR (-O2):
define void @evaluate_prq(i8* %0, i8* %1, i32 %2, double %3, i8* %4, double %5, double %6) {
%8 = alloca i32
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %2, i32* %8
store double %3, double* %9
store double %5, double* %10
store double %6, double* %11
%15 = bitcast i32* %12 to i8*
%16 = tail call i32 @strlen(i8* %0)
store i32 %16, i32* %12
%17 = bitcast i32* %13 to i8*
%18 = tail call i32 @strlen(i8* %4)
store i32 %18, i32* %13
%19 = bitcast i32* %14 to i8*
%20 = tail call i32 @strlen(i8* %1)
store i32 %20, i32* %14
%21 = call i32 @evaluate_prq_c(i8* %0, i32* %12, i8* %1, i32* %14, i32* %8, double* %9, i8* %4, i32* %13, double* %10, double* %11)
ret void
}