#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 */
void CheckFailed(char *, char *, int);
char *TfLiteVersion();
int /*<<< orphan*/ printf(char *, char const *);
void TestVersion(void) {
  const char *version = TfLiteVersion();
  printf("Version = %s\n", version);
  ((version[0] != '\0')
       ? (void)0
       : CheckFailed("version[0] != '\\0'",
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/Intel-tensorflow/"
                     "tensorflow/refs/heads/main/tensorflow/lite/c/c_test.c",
                     60));
}


x86 assembly (clang, -O0):
<TestVersion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <TfLiteVersion@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1168 <TestVersion+0x38>
jmp    1180 <TestVersion+0x50>
lea    0xe9f(%rip),%rdi
lea    0xeab(%rip),%rsi
mov    $0x3c,%edx
call   1050 <CheckFailed@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestVersion>:
push   %rbx
xor    %eax,%eax
call   1040 <TfLiteVersion@plt>
mov    %rax,%rbx
lea    0xebe(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
cmpb   $0x0,(%rbx)
je     1151 <TestVersion+0x21>
pop    %rbx
ret
lea    0xeb6(%rip),%rdi
lea    0xec2(%rip),%rsi
mov    $0x3c,%edx
pop    %rbx
jmp    1050 <CheckFailed@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"Version = %s\0A\00"
@.str.1 = [19 x i8] c"version[0] != '\\0'\00"
@.str.2 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Intel-tensorflow/tensorflow/refs/heads/main/tensorflow/lite/c/c_test.c\00"
define void @TestVersion() {
%1 = alloca i8*
%2 = call i8* (...) @TfLiteVersion()
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %1
%6 = getelementptr inbounds i8, i8* %5, i64 0
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %0
br label %12
11: ; preds = %0
br label %12
12: ; preds = %11, %10
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"Version = %s\0A\00"
@.str.1 = [19 x i8] c"version[0] != '\\0'\00"
@.str.2 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Intel-tensorflow/tensorflow/refs/heads/main/tensorflow/lite/c/c_test.c\00"
define void @TestVersion() {
%1 = tail call i8* (...) @TfLiteVersion()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
tail call void @CheckFailed(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.2, i64 0, i64 0), i32 60)
br label %6
6: ; preds = %0, %5
ret void
}