char *test_myAdd_normal(const char **_ja_name) {
  do {
    *_ja_name = __func__;
    if (!(myAdd(4, 6) == 10))
      return "4 + 6 == 10";
  } while (0);
  do {
    *_ja_name = __func__;
    if (!(myAdd(5, 6) == 11))
      return "5 + 6 == 11";
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_myAdd_normal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
lea    0xed9(%rip),%rcx
mov    %rcx,(%rax)
mov    $0x4,%edi
mov    $0x6,%esi
mov    $0x0,%al
call   1030 <myAdd@plt>
cmp    $0xa,%eax
je     1154 <test_myAdd_normal+0x44>
lea    0xec7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11a3 <test_myAdd_normal+0x93>
jmp    1159 <test_myAdd_normal+0x49>
jmp    115e <test_myAdd_normal+0x4e>
mov    -0x10(%rbp),%rax
lea    0xe97(%rip),%rcx
mov    %rcx,(%rax)
mov    $0x5,%edi
mov    $0x6,%esi
mov    $0x0,%al
call   1030 <myAdd@plt>
cmp    $0xb,%eax
je     1196 <test_myAdd_normal+0x86>
lea    0xe91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11a3 <test_myAdd_normal+0x93>
jmp    119b <test_myAdd_normal+0x8b>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_myAdd_normal>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%r14
mov    %r14,(%rdi)
mov    $0x4,%edi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <myAdd@plt>
cmp    $0xa,%eax
jne    115d <test_myAdd_normal+0x4d>
mov    %r14,(%rbx)
xor    %ebx,%ebx
mov    $0x5,%edi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <myAdd@plt>
cmp    $0xb,%eax
lea    0xec7(%rip),%rax
cmovne %rax,%rbx
jmp    1164 <test_myAdd_normal+0x54>
lea    0xeae(%rip),%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@__func__.test_myAdd_normal = [18 x i8] c"test_myAdd_normal\00"
@.str = [12 x i8] c"4 + 6 == 10\00"
@.str.1 = [12 x i8] c"5 + 6 == 11\00"
define i8* @test_myAdd_normal(i8** nocapture writeonly %0) {
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.test_myAdd_normal, i64 0, i64 0), i8** %0
%2 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @myAdd to i32 (i32, i32, ...)*)(i32 4, i32 6)
%3 = icmp eq i32 %2, 10
br i1 %3, label %4, label %8
4: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @__func__.test_myAdd_normal, i64 0, i64 0), i8** %0
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @myAdd to i32 (i32, i32, ...)*)(i32 5, i32 6)
%6 = icmp eq i32 %5, 11
%7 = select i1 %6, i8* null, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0)
br label %8
8: ; preds = %4, %1
%9 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), %1 ], [ %7, %4 ]
ret i8* %9
}