#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*/ PathForFile(char *, char **);
int /*<<< orphan*/ PathInit(char *);
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ free(char *);
scalar_t__ strcmp(char *, char *);
int main(int argc, const char *argv[]) {
  char *filePath = NULL;
  PathInit("/sdkjhf azfiubs df/zieduh"
           "/"
           "aizuher");
  PathForFile("some curve.gp", &filePath);
  assert(strcmp("/sdkjhf azfiubs df/zieduh"
                "/"
                "some curve.gp",
                filePath) == 0);
  free(filePath);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
lea    0xe8b(%rip),%rdi
call   1070 <PathInit@plt>
lea    0xebb(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <PathForFile@plt>
mov    -0x18(%rbp),%rsi
lea    0xe8d(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movq   $0x0,(%rsp)
lea    0xea0(%rip),%rdi
call   1070 <PathInit@plt>
lea    0xed0(%rip),%rdi
mov    %rsp,%rsi
call   1040 <PathForFile@plt>
mov    (%rsp),%rsi
lea    0xea3(%rip),%rdi
call   1050 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    (%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"/sdkjhf azfiubs df/zieduh/aizuher\00"
@.str.1 = [14 x i8] c"some curve.gp\00"
@.str.2 = [40 x i8] c"/sdkjhf azfiubs df/zieduh/some curve.gp\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
%7 = call i32 @PathInit(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @PathForFile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8** %6)
%9 = load i8*, i8** %6
%10 = call i64 @strcmp(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %9)
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = load i8*, i8** %6
%15 = call i32 @free(i8* %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [34 x i8] c"/sdkjhf azfiubs df/zieduh/aizuher\00"
@.str.1 = [14 x i8] c"some curve.gp\00"
@.str.2 = [40 x i8] c"/sdkjhf azfiubs df/zieduh/some curve.gp\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%5 = tail call i32 @PathInit(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @PathForFile(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8** %3)
%7 = load i8*, i8** %3
%8 = call i64 @strcmp(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = icmp eq i64 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10)
%12 = load i8*, i8** %3
%13 = call i32 @free(i8* %12)
ret i32 0
}