void return_vc_string_test(int _i __attribute__((unused))) {
  tcase_fn_start(""
                 "return_vc_string_test",
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/DistributedClocks/CVector/"
                 "refs/heads/master/src/test/vclock_test.c",
                 96);
  {
    struct vectorClock *testClock = ((void *)0);
    set(&testClock, "Proc1", 1);
    set(&testClock, "Proc5", 6);
    set(&testClock, "Proc2", 2);
    set(&testClock, "", 0);
    char *resultString = return_vc_string(testClock);
    char *expectedString = "{\"Proc1\":1, \"Proc5\":6, \"Proc2\":2, \"\":1}";
    do {
      const char *_ck_x = (resultString);
      const char *_ck_y = (expectedString);
      const char *_ck_x_s;
      const char *_ck_y_s;
      const char *_ck_x_q;
      const char *_ck_y_q;
      if (_ck_x != ((void *)0)) {
        _ck_x_q = "\"";
        _ck_x_s = _ck_x;
      } else {
        _ck_x_q = "";
        _ck_x_s = "(null)";
      }
      if (_ck_y != ((void *)0)) {
        _ck_y_q = "\"";
        _ck_y_s = _ck_y;
      } else {
        _ck_y_q = "";
        _ck_y_s = "(null)";
      }
      ((0 && (_ck_x == ((void *)0)) && (_ck_y == ((void *)0))) ||
       (0 && ((_ck_x == ((void *)0)) || (_ck_y == ((void *)0))) &&
        (_ck_x != _ck_y)) ||
       ((_ck_x != ((void *)0)) && (_ck_y != ((void *)0)) &&
        (0 == strcmp(_ck_y, _ck_x))))
          ? _mark_point(
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/DistributedClocks/CVector/"
                "refs/heads/master/src/test/vclock_test.c",
                104)
          : _ck_assert_failed(
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/DistributedClocks/CVector/"
                "refs/heads/master/src/test/vclock_test.c",
                104,
                "Assertion '"
                "(0 && (_ck_x == NULL) && (_ck_y == NULL)) || (0 && ((_ck_x == "
                "NULL) || (_ck_y == NULL)) && (_ck_x != _ck_y)) || ((_ck_x != "
                "NULL) && (_ck_y != NULL) && (0 == strcmp(_ck_y, _ck_x)))"
                "' failed",
                "Assertion '%s' failed: %s == %s%s%s, %s == %s%s%s",
                "resultString"
                " "
                "=="
                " "
                "expectedString",
                "resultString", _ck_x_q, _ck_x_s, _ck_x_q, "expectedString",
                _ck_y_q, _ck_y_s, _ck_y_q, ((void *)0));
    } while (0);
    free(resultString);
  }
}


x86 assembly (clang, -O0):
<return_vc_string_test>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %edi,-0x2c(%rbp)
lea    0xe72(%rip),%rdi
lea    0xe81(%rip),%rsi
mov    $0x60,%edx
mov    $0x0,%al
call   1030 <tcase_fn_start@plt>
movq   $0x0,-0x38(%rbp)
lea    -0x38(%rbp),%rdi
lea    0xeff(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1090 <set@plt>
lea    -0x38(%rbp),%rdi
lea    0xeee(%rip),%rsi
mov    $0x6,%edx
mov    $0x0,%al
call   1090 <set@plt>
lea    -0x38(%rbp),%rdi
lea    0xedd(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1090 <set@plt>
lea    -0x38(%rbp),%rdi
lea    0xef5(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1090 <set@plt>
mov    -0x38(%rbp),%rdi
mov    $0x0,%al
call   1050 <return_vc_string@plt>
cltq
mov    %rax,-0x40(%rbp)
lea    0xeab(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1251 <return_vc_string_test+0xe1>
lea    0xead(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x60(%rbp)
jmp    1267 <return_vc_string_test+0xf7>
lea    0xe96(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    0xe8c(%rip),%rax
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     128a <return_vc_string_test+0x11a>
lea    0xe74(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    12a0 <return_vc_string_test+0x130>
lea    0xe5d(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe53(%rip),%rax
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     12e7 <return_vc_string_test+0x177>
cmpq   $0x0,-0x58(%rbp)
je     12e7 <return_vc_string_test+0x177>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1070 <strcmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    12e7 <return_vc_string_test+0x177>
lea    0xd40(%rip),%rdi
mov    $0x68,%esi
mov    $0x0,%al
call   1080 <_mark_point@plt>
jmp    1363 <return_vc_string_test+0x1f3>
mov    -0x70(%rbp),%r12
mov    -0x60(%rbp),%r15
mov    -0x70(%rbp),%r14
mov    -0x78(%rbp),%r11
mov    -0x68(%rbp),%r10
mov    -0x78(%rbp),%rax
lea    0xd10(%rip),%rdi
mov    $0x68,%esi
lea    0xde4(%rip),%rdx
lea    0xea4(%rip),%rcx
lea    0xecf(%rip),%r8
lea    0xee7(%rip),%r9
lea    0xed1(%rip),%rbx
xor    %r13d,%r13d
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movq   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <_ck_assert_failed@plt>
mov    -0x40(%rbp),%rdi
call   1040 <free@plt>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<return_vc_string_test>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xe81(%rip),%rdi
lea    0xe90(%rip),%rsi
mov    $0x60,%edx
xor    %eax,%eax
call   1030 <tcase_fn_start@plt>
movq   $0x0,(%rsp)
lea    0xf12(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    $0x1,%edx
xor    %eax,%eax
call   1090 <set@plt>
lea    0xeff(%rip),%rsi
mov    %r14,%rdi
mov    $0x6,%edx
xor    %eax,%eax
call   1090 <set@plt>
lea    0xeef(%rip),%rsi
mov    %r14,%rdi
mov    $0x2,%edx
xor    %eax,%eax
call   1090 <set@plt>
lea    0xf08(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1090 <set@plt>
mov    (%rsp),%rdi
xor    %eax,%eax
call   1050 <return_vc_string@plt>
movslq %eax,%r14
lea    0xee5(%rip),%r15
test   %r14d,%r14d
cmovne %r14,%r15
lea    0xed5(%rip),%r12
cmovne %r12,%rbx
je     1231 <return_vc_string_test+0xc1>
lea    0xea0(%rip),%rdi
mov    %r14,%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1282 <return_vc_string_test+0x112>
lea    0xe8d(%rip),%r10
lea    0xfc0(%rip),%r11
lea    0xdd0(%rip),%rdi
lea    0xea9(%rip),%rdx
lea    0xf69(%rip),%rcx
lea    0xf94(%rip),%r8
lea    0xfac(%rip),%r9
mov    $0x68,%esi
xor    %eax,%eax
push   $0x0
push   %r12
push   %r10
push   %r12
push   %r11
push   %rbx
push   %r15
push   %rbx
call   1060 <_ck_assert_failed@plt>
add    $0x40,%rsp
jmp    1295 <return_vc_string_test+0x125>
lea    0xd8d(%rip),%rdi
mov    $0x68,%esi
xor    %eax,%eax
call   1080 <_mark_point@plt>
mov    %r14,%rdi
call   1040 <free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.vectorClock = type opaque
@.str = [22 x i8] c"return_vc_string_test\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/DistributedClocks/CVector/refs/heads/master/src/test/vclock_test.c\00"
@.str.2 = [6 x i8] c"Proc1\00"
@.str.3 = [6 x i8] c"Proc5\00"
@.str.4 = [6 x i8] c"Proc2\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [40 x i8] c"{\22Proc1\22:1, \22Proc5\22:6, \22Proc2\22:2, \22\22:1}\00"
@.str.7 = [2 x i8] c"\22\00"
@.str.8 = [7 x i8] c"(null)\00"
@.str.9 = [199 x i8] c"Assertion '(0 && (_ck_x == NULL) && (_ck_y == NULL)) || (0 && ((_ck_x == NULL) || (_ck_y == NULL)) && (_ck_x != _ck_y)) || ((_ck_x != NULL) && (_ck_y != NULL) && (0 == strcmp(_ck_y, _ck_x)))' failed\00"
@.str.10 = [50 x i8] c"Assertion '%s' failed: %s == %s%s%s, %s == %s%s%s\00"
@.str.11 = [31 x i8] c"resultString == expectedString\00"
@.str.12 = [13 x i8] c"resultString\00"
@.str.13 = [15 x i8] c"expectedString\00"
define void @return_vc_string_test(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.vectorClock*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
store i32 %0, i32* %2
%12 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @tcase_fn_start to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 96)
store %struct.vectorClock* null, %struct.vectorClock** %3
%13 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 1)
%14 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 6)
%15 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2)
%16 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i32 0)
%17 = load %struct.vectorClock*, %struct.vectorClock** %3
%18 = call i32 (%struct.vectorClock*, ...) bitcast (i32 (...)* @return_vc_string to i32 (%struct.vectorClock*, ...)*)(%struct.vectorClock* %17)
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %4
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8** %5
br label %21
21: ; preds = %1
%22 = load i8*, i8** %4
store i8* %22, i8** %6
%23 = load i8*, i8** %5
store i8* %23, i8** %7
%24 = load i8*, i8** %6
%25 = icmp ne i8* %24, null
br i1 %25, label %26, label %28
26: ; preds = %21
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %10
%27 = load i8*, i8** %6
store i8* %27, i8** %8
br label %29
28: ; preds = %21
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %8
br label %29
29: ; preds = %28, %26
%30 = load i8*, i8** %7
%31 = icmp ne i8* %30, null
br i1 %31, label %32, label %34
32: ; preds = %29
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %11
%33 = load i8*, i8** %7
store i8* %33, i8** %9
br label %35
34: ; preds = %29
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %9
br label %35
35: ; preds = %34, %32
%36 = load i8*, i8** %6
%37 = icmp ne i8* %36, null
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = load i8*, i8** %7
%40 = icmp ne i8* %39, null
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i8*, i8** %7
%43 = load i8*, i8** %6
%44 = call i32 @strcmp(i8* %42, i8* %43)
%45 = icmp eq i32 0, %44
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @_mark_point to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 104)
br label %56
48: ; preds = %41, %38, %35
%49 = load i8*, i8** %10
%50 = load i8*, i8** %8
%51 = load i8*, i8** %10
%52 = load i8*, i8** %11
%53 = load i8*, i8** %9
%54 = load i8*, i8** %11
%55 = call i32 (i8*, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @_ck_assert_failed to i32 (i8*, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([199 x i8], [199 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8* %49, i8* %50, i8* %51, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %52, i8* %53, i8* %54, i8* null)
br label %56
56: ; preds = %48, %46
%57 = phi i32 [ %47, %46 ], [ %55, %48 ]
br label %58
58: ; preds = %56
%59 = load i8*, i8** %4
ret void
}

LLVM IR (-O2):
%struct.vectorClock = type opaque
@.str = [22 x i8] c"return_vc_string_test\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/DistributedClocks/CVector/refs/heads/master/src/test/vclock_test.c\00"
@.str.2 = [6 x i8] c"Proc1\00"
@.str.3 = [6 x i8] c"Proc5\00"
@.str.4 = [6 x i8] c"Proc2\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [40 x i8] c"{\22Proc1\22:1, \22Proc5\22:6, \22Proc2\22:2, \22\22:1}\00"
@.str.7 = [2 x i8] c"\22\00"
@.str.8 = [7 x i8] c"(null)\00"
@.str.9 = [199 x i8] c"Assertion '(0 && (_ck_x == NULL) && (_ck_y == NULL)) || (0 && ((_ck_x == NULL) || (_ck_y == NULL)) && (_ck_x != _ck_y)) || ((_ck_x != NULL) && (_ck_y != NULL) && (0 == strcmp(_ck_y, _ck_x)))' failed\00"
@.str.10 = [50 x i8] c"Assertion '%s' failed: %s == %s%s%s, %s == %s%s%s\00"
@.str.11 = [31 x i8] c"resultString == expectedString\00"
@.str.12 = [13 x i8] c"resultString\00"
@.str.13 = [15 x i8] c"expectedString\00"
define void @return_vc_string_test(i32 %0) {
%2 = alloca %struct.vectorClock*
%3 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @tcase_fn_start to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 96)
%4 = bitcast %struct.vectorClock** %2 to i8*
store %struct.vectorClock* null, %struct.vectorClock** %2
%5 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 1)
%6 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 6)
%7 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2)
%8 = call i32 (%struct.vectorClock**, i8*, i32, ...) bitcast (i32 (...)* @set to i32 (%struct.vectorClock**, i8*, i32, ...)*)(%struct.vectorClock** %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i32 0)
%9 = load %struct.vectorClock*, %struct.vectorClock** %2
%10 = call i32 (%struct.vectorClock*, ...) bitcast (i32 (...)* @return_vc_string to i32 (%struct.vectorClock*, ...)*)(%struct.vectorClock* %9)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i8*
%13 = icmp eq i32 %10, 0
%14 = select i1 %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* %12
%15 = select i1 %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0)
br i1 %13, label %21, label %16
16: ; preds = %1
%17 = call i32 @strcmp(i8* dereferenceable(40) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %12)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @_mark_point to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 104)
br label %23
21: ; preds = %16, %1
%22 = call i32 (i8*, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @_ck_assert_failed to i32 (i8*, i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([199 x i8], [199 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8* %15, i8* %14, i8* %15, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* null)
br label %23
23: ; preds = %21, %19
ret void
}