int test_hashmap_get_set(void) {
  int rc;
  char *result;
  char *test1;
  char *test2;
  char *test3;
  char *expect1;
  char *expect2;
  char *expect3;
  struct hashmap *map;
  map = setup_test();
  test1 = "test data 1";
  test2 = "test data 2";
  test3 = "xest data 3";
  expect1 = "THE VALUE 1";
  expect2 = "THE VALUE 2";
  expect3 = "THE VALUE 3";
  rc = hashmap_set(map, test1, expect1);
  do {
    if (!(rc == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             116, "Failed to set &test!");
      return -1;
    }
  } while (0);
  result = hashmap_get(map, test1);
  do {
    if (!(strcmp(result, expect1) == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             118, "Wrong value for test1!");
      return -1;
    }
  } while (0);
  rc = hashmap_set(map, test2, expect2);
  do {
    if (!(rc == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             122, "Failed to set test2");
      return -1;
    }
  } while (0);
  result = hashmap_get(map, test2);
  do {
    if (!(strcmp(result, expect2) == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             124, "Wrong value for test2!");
      return -1;
    }
  } while (0);
  rc = hashmap_set(map, test3, expect3);
  do {
    if (!(rc == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             128, "Failed to set test3");
      return -1;
    }
  } while (0);
  result = hashmap_get(map, test3);
  do {
    if (!(strcmp(result, expect3) == 0)) {
      printf("%sERROR!%s [%s:%d] %s\n", "\x1B[1;31m", "\x1B[1;0m", __func__,
             130, "Wrong value for test3!");
      return -1;
    }
  } while (0);
  teardown_test(map);
  return 0;
}


x86 assembly (clang, -O0):
<test_hashmap_get_set>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    $0x0,%al
call   1080 <setup_test@plt>
cltq
mov    %rax,-0x48(%rbp)
lea    0xe84(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe85(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe86(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xe87(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xe88(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe89(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1050 <hashmap_set@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1213 <test_hashmap_get_set+0xb3>
lea    0xe6a(%rip),%rdi
lea    0xe7a(%rip),%rsi
lea    0xe7b(%rip),%rdx
lea    0xe7b(%rip),%rcx
mov    $0x74,%r8d
lea    0xe83(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    1218 <test_hashmap_get_set+0xb8>
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <hashmap_get@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     127f <test_hashmap_get_set+0x11f>
lea    0xdfe(%rip),%rdi
lea    0xe0e(%rip),%rsi
lea    0xe0f(%rip),%rdx
lea    0xe0f(%rip),%rcx
mov    $0x76,%r8d
lea    0xe2c(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    1284 <test_hashmap_get_set+0x124>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    $0x0,%al
call   1050 <hashmap_set@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     12e0 <test_hashmap_get_set+0x180>
lea    0xd9d(%rip),%rdi
lea    0xdad(%rip),%rsi
lea    0xdae(%rip),%rdx
lea    0xdae(%rip),%rcx
mov    $0x7a,%r8d
lea    0xde2(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    12e5 <test_hashmap_get_set+0x185>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <hashmap_get@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     134c <test_hashmap_get_set+0x1ec>
lea    0xd31(%rip),%rdi
lea    0xd41(%rip),%rsi
lea    0xd42(%rip),%rdx
lea    0xd42(%rip),%rcx
mov    $0x7c,%r8d
lea    0xd8a(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    1351 <test_hashmap_get_set+0x1f1>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1050 <hashmap_set@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     13ad <test_hashmap_get_set+0x24d>
lea    0xcd0(%rip),%rdi
lea    0xce0(%rip),%rsi
lea    0xce1(%rip),%rdx
lea    0xce1(%rip),%rcx
mov    $0x80,%r8d
lea    0xd40(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    13b2 <test_hashmap_get_set+0x252>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <hashmap_get@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1419 <test_hashmap_get_set+0x2b9>
lea    0xc64(%rip),%rdi
lea    0xc74(%rip),%rsi
lea    0xc75(%rip),%rdx
lea    0xc75(%rip),%rcx
mov    $0x82,%r8d
lea    0xce8(%rip),%r9
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1430 <test_hashmap_get_set+0x2d0>
jmp    141e <test_hashmap_get_set+0x2be>
mov    -0x48(%rbp),%rdi
mov    $0x0,%al
call   1030 <teardown_test@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_hashmap_get_set>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1080 <setup_test@plt>
movslq %eax,%rbx
lea    0xe8c(%rip),%rsi
lea    0xea9(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <hashmap_set@plt>
test   %eax,%eax
je     11b7 <test_hashmap_get_set+0x57>
lea    0xeb8(%rip),%rdi
lea    0xec8(%rip),%rsi
lea    0xec9(%rip),%rdx
lea    0xec9(%rip),%rcx
lea    0xed7(%rip),%r9
mov    $0x74,%r8d
jmp    133b <test_hashmap_get_set+0x1db>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <hashmap_get@plt>
movslq %eax,%rdi
lea    0xe52(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1209 <test_hashmap_get_set+0xa9>
lea    0xe66(%rip),%rdi
lea    0xe76(%rip),%rsi
lea    0xe77(%rip),%rdx
lea    0xe77(%rip),%rcx
lea    0xe9a(%rip),%r9
mov    $0x76,%r8d
jmp    133b <test_hashmap_get_set+0x1db>
lea    0xdfc(%rip),%rsi
lea    0xe19(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <hashmap_set@plt>
test   %eax,%eax
je     1253 <test_hashmap_get_set+0xf3>
lea    0xe1c(%rip),%rdi
lea    0xe2c(%rip),%rsi
lea    0xe2d(%rip),%rdx
lea    0xe2d(%rip),%rcx
lea    0xe67(%rip),%r9
mov    $0x7a,%r8d
jmp    133b <test_hashmap_get_set+0x1db>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <hashmap_get@plt>
movslq %eax,%rdi
lea    0xdc2(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     12a5 <test_hashmap_get_set+0x145>
lea    0xdca(%rip),%rdi
lea    0xdda(%rip),%rsi
lea    0xddb(%rip),%rdx
lea    0xddb(%rip),%rcx
lea    0xe29(%rip),%r9
mov    $0x7c,%r8d
jmp    133b <test_hashmap_get_set+0x1db>
lea    0xd6c(%rip),%rsi
lea    0xd89(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <hashmap_set@plt>
test   %eax,%eax
je     12ec <test_hashmap_get_set+0x18c>
lea    0xd80(%rip),%rdi
lea    0xd90(%rip),%rsi
lea    0xd91(%rip),%rdx
lea    0xd91(%rip),%rcx
lea    0xdf6(%rip),%r9
mov    $0x80,%r8d
jmp    133b <test_hashmap_get_set+0x1db>
lea    0xd25(%rip),%rsi
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <hashmap_get@plt>
movslq %eax,%rdi
lea    0xd33(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1350 <test_hashmap_get_set+0x1f0>
lea    0xd2f(%rip),%rdi
lea    0xd3f(%rip),%rsi
lea    0xd40(%rip),%rdx
lea    0xd40(%rip),%rcx
lea    0xdb9(%rip),%r9
mov    $0x82,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <teardown_test@plt>
jmp    1347 <test_hashmap_get_set+0x1e7>

LLVM IR (-O0):
%struct.hashmap = type opaque
@.str = [12 x i8] c"test data 1\00"
@.str.1 = [12 x i8] c"test data 2\00"
@.str.2 = [12 x i8] c"xest data 3\00"
@.str.3 = [12 x i8] c"THE VALUE 1\00"
@.str.4 = [12 x i8] c"THE VALUE 2\00"
@.str.5 = [12 x i8] c"THE VALUE 3\00"
@.str.6 = [23 x i8] c"%sERROR!%s [%s:%d] %s\0A\00"
@.str.7 = [8 x i8] c"\1B[1;31m\00"
@.str.8 = [7 x i8] c"\1B[1;0m\00"
@__func__.test_hashmap_get_set = [21 x i8] c"test_hashmap_get_set\00"
@.str.9 = [21 x i8] c"Failed to set &test!\00"
@.str.10 = [23 x i8] c"Wrong value for test1!\00"
@.str.11 = [20 x i8] c"Failed to set test2\00"
@.str.12 = [23 x i8] c"Wrong value for test2!\00"
@.str.13 = [20 x i8] c"Failed to set test3\00"
@.str.14 = [23 x i8] c"Wrong value for test3!\00"
define i32 @test_hashmap_get_set() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca %struct.hashmap*
%11 = call i32 (...) @setup_test()
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to %struct.hashmap*
store %struct.hashmap* %13, %struct.hashmap** %10
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8** %8
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8** %9
%14 = load %struct.hashmap*, %struct.hashmap** %10
%15 = load i8*, i8** %4
%16 = load i8*, i8** %7
%17 = call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %14, i8* %15, i8* %16)
store i32 %17, i32* %2
br label %18
18: ; preds = %0
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
23: ; preds = %18
br label %24
24: ; preds = %23
%25 = load %struct.hashmap*, %struct.hashmap** %10
%26 = load i8*, i8** %4
%27 = call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %25, i8* %26)
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i8*
store i8* %29, i8** %3
br label %30
30: ; preds = %24
%31 = load i8*, i8** %3
%32 = load i8*, i8** %7
%33 = call i32 @strcmp(i8* %31, i8* %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %30
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 118, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
37: ; preds = %30
br label %38
38: ; preds = %37
%39 = load %struct.hashmap*, %struct.hashmap** %10
%40 = load i8*, i8** %5
%41 = load i8*, i8** %8
%42 = call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %39, i8* %40, i8* %41)
store i32 %42, i32* %2
br label %43
43: ; preds = %38
%44 = load i32, i32* %2
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 122, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
48: ; preds = %43
br label %49
49: ; preds = %48
%50 = load %struct.hashmap*, %struct.hashmap** %10
%51 = load i8*, i8** %5
%52 = call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %50, i8* %51)
%53 = sext i32 %52 to i64
%54 = inttoptr i64 %53 to i8*
store i8* %54, i8** %3
br label %55
55: ; preds = %49
%56 = load i8*, i8** %3
%57 = load i8*, i8** %8
%58 = call i32 @strcmp(i8* %56, i8* %57)
%59 = icmp eq i32 %58, 0
br i1 %59, label %62, label %60
60: ; preds = %55
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 124, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
62: ; preds = %55
br label %63
63: ; preds = %62
%64 = load %struct.hashmap*, %struct.hashmap** %10
%65 = load i8*, i8** %6
%66 = load i8*, i8** %9
%67 = call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %64, i8* %65, i8* %66)
store i32 %67, i32* %2
br label %68
68: ; preds = %63
%69 = load i32, i32* %2
%70 = icmp eq i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %68
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 128, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
73: ; preds = %68
br label %74
74: ; preds = %73
%75 = load %struct.hashmap*, %struct.hashmap** %10
%76 = load i8*, i8** %6
%77 = call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %75, i8* %76)
%78 = sext i32 %77 to i64
%79 = inttoptr i64 %78 to i8*
store i8* %79, i8** %3
br label %80
80: ; preds = %74
%81 = load i8*, i8** %3
%82 = load i8*, i8** %9
%83 = call i32 @strcmp(i8* %81, i8* %82)
%84 = icmp eq i32 %83, 0
br i1 %84, label %87, label %85
85: ; preds = %80
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
store i32 -1, i32* %1
br label %91
87: ; preds = %80
br label %88
88: ; preds = %87
%89 = load %struct.hashmap*, %struct.hashmap** %10
%90 = call i32 (%struct.hashmap*, ...) bitcast (i32 (...)* @teardown_test to i32 (%struct.hashmap*, ...)*)(%struct.hashmap* %89)
store i32 0, i32* %1
br label %91
91: ; preds = %88, %85, %71, %60, %46, %35, %21
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
%struct.hashmap = type opaque
@.str = [12 x i8] c"test data 1\00"
@.str.1 = [12 x i8] c"test data 2\00"
@.str.2 = [12 x i8] c"xest data 3\00"
@.str.3 = [12 x i8] c"THE VALUE 1\00"
@.str.4 = [12 x i8] c"THE VALUE 2\00"
@.str.5 = [12 x i8] c"THE VALUE 3\00"
@.str.6 = [23 x i8] c"%sERROR!%s [%s:%d] %s\0A\00"
@.str.7 = [8 x i8] c"\1B[1;31m\00"
@.str.8 = [7 x i8] c"\1B[1;0m\00"
@__func__.test_hashmap_get_set = [21 x i8] c"test_hashmap_get_set\00"
@.str.9 = [21 x i8] c"Failed to set &test!\00"
@.str.10 = [23 x i8] c"Wrong value for test1!\00"
@.str.11 = [20 x i8] c"Failed to set test2\00"
@.str.12 = [23 x i8] c"Wrong value for test2!\00"
@.str.13 = [20 x i8] c"Failed to set test3\00"
@.str.14 = [23 x i8] c"Wrong value for test3!\00"
define i32 @test_hashmap_get_set() {
%1 = tail call i32 (...) @setup_test()
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to %struct.hashmap*
%4 = tail call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
br label %44
8: ; preds = %0
%9 = tail call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 118, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
br label %44
16: ; preds = %8
%17 = tail call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 122, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
br label %44
21: ; preds = %16
%22 = tail call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%23 = sext i32 %22 to i64
%24 = inttoptr i64 %23 to i8*
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %24, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %21
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 124, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
br label %44
29: ; preds = %21
%30 = tail call i32 (%struct.hashmap*, i8*, i8*, ...) bitcast (i32 (...)* @hashmap_set to i32 (%struct.hashmap*, i8*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %29
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 128, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
br label %44
34: ; preds = %29
%35 = tail call i32 (%struct.hashmap*, i8*, ...) bitcast (i32 (...)* @hashmap_get to i32 (%struct.hashmap*, i8*, ...)*)(%struct.hashmap* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%36 = sext i32 %35 to i64
%37 = inttoptr i64 %36 to i8*
%38 = tail call i32 @strcmp(i8* dereferenceable(1) %37, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %34
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @__func__.test_hashmap_get_set, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
br label %44
42: ; preds = %34
%43 = tail call i32 (%struct.hashmap*, ...) bitcast (i32 (...)* @teardown_test to i32 (%struct.hashmap*, ...)*)(%struct.hashmap* %3)
br label %44
44: ; preds = %42, %40, %32, %27, %19, %14, %6
%45 = phi i32 [ 0, %42 ], [ -1, %40 ], [ -1, %32 ], [ -1, %27 ], [ -1, %19 ], [ -1, %14 ], [ -1, %6 ]
ret i32 %45
}