char *test_myHash_normal(const char **_ja_name) {
  char *word = "fish";
  do {
    *_ja_name = __func__;
    if (!(myHash(word) == 4))
      return "myHash(\"fish\") == 4";
  } while (0);
  do {
    *_ja_name = __func__;
    if (!(strcmp(word, "fish") == 0))
      return "word == \"fish\"";
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_myHash_normal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xecd(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
lea    0xec3(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <myHash@plt>
cmp    $0x4,%eax
je     1169 <test_myHash_normal+0x49>
lea    0xeb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11b7 <test_myHash_normal+0x97>
jmp    116e <test_myHash_normal+0x4e>
jmp    1173 <test_myHash_normal+0x53>
mov    -0x10(%rbp),%rax
lea    0xe87(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rdi
lea    0xe74(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
je     11aa <test_myHash_normal+0x8a>
lea    0xe8b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11b7 <test_myHash_normal+0x97>
jmp    11af <test_myHash_normal+0x8f>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_myHash_normal>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee7(%rip),%r14
mov    %r14,(%rdi)
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <myHash@plt>
cmp    $0x4,%eax
jne    113b <test_myHash_normal+0x2b>
mov    %r14,(%rbx)
xor    %eax,%eax
jmp    1142 <test_myHash_normal+0x32>
lea    0xed6(%rip),%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"fish\00"
@__func__.test_myHash_normal = [19 x i8] c"test_myHash_normal\00"
@.str.1 = [20 x i8] c"myHash(\22fish\22) == 4\00"
@.str.2 = [15 x i8] c"word == \22fish\22\00"
define i8* @test_myHash_normal(i8** %0) {
%2 = alloca i8*
%3 = alloca i8**
%4 = alloca i8*
store i8** %0, i8*** %3
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %4
br label %5
5: ; preds = %1
%6 = load i8**, i8*** %3
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.test_myHash_normal, i64 0, i64 0), i8** %6
%7 = load i8*, i8** %4
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @myHash to i32 (i8*, ...)*)(i8* %7)
%9 = icmp eq i32 %8, 4
br i1 %9, label %11, label %10
10: ; preds = %5
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %21
11: ; preds = %5
br label %12
12: ; preds = %11
br label %13
13: ; preds = %12
%14 = load i8**, i8*** %3
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.test_myHash_normal, i64 0, i64 0), i8** %14
%15 = load i8*, i8** %4
%16 = call i32 @strcmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %13
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %21
19: ; preds = %13
br label %20
20: ; preds = %19
store i8* null, i8** %2
br label %21
21: ; preds = %20, %18, %10
%22 = load i8*, i8** %2
ret i8* %22
}

LLVM IR (-O2):
@.str = [5 x i8] c"fish\00"
@__func__.test_myHash_normal = [19 x i8] c"test_myHash_normal\00"
@.str.1 = [20 x i8] c"myHash(\22fish\22) == 4\00"
define i8* @test_myHash_normal(i8** nocapture writeonly %0) {
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.test_myHash_normal, i64 0, i64 0), i8** %0
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @myHash to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 4
br i1 %3, label %4, label %5
4: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.test_myHash_normal, i64 0, i64 0), i8** %0
br label %5
5: ; preds = %1, %4
%6 = phi i8* [ null, %4 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), %1 ]
ret i8* %6
}