#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 */
int /*<<< orphan*/ MySAR_macro_print_msg(char *, int, int, char *, char *,
                                         char *);
scalar_t__ strlen(char *);
int MySAR_config_isblank(char *param, char *value) {
  if ((strlen(value) == 0) && (!(*value)))
    MySAR_macro_print_msg(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/coffnix/mysar-ng/refs/heads/master/bin/"
        "mysar-binary-importer/src/config.c",
        165, 0x02,
        "ERROR: Bad value in configuration file! %s%s  (cannot be blank)\n",
        param, value);
  ;
  return 1;
}


x86 assembly (clang, -O0):
<MySAR_config_isblank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
jne    1175 <MySAR_config_isblank+0x55>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1175 <MySAR_config_isblank+0x55>
mov    -0x8(%rbp),%r8
mov    -0x10(%rbp),%r9
lea    0xea1(%rip),%rdi
mov    $0xa5,%esi
mov    $0x2,%edx
lea    0xf34(%rip),%rcx
call   1040 <MySAR_macro_print_msg@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MySAR_config_isblank>:
push   %rax
cmpb   $0x0,(%rsi)
jne    1139 <MySAR_config_isblank+0x29>
mov    %rsi,%r9
mov    %rdi,%r8
lea    0xedd(%rip),%rdi
lea    0xf7a(%rip),%rcx
mov    $0xa5,%esi
mov    $0x2,%edx
call   1030 <MySAR_macro_print_msg@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/coffnix/mysar-ng/refs/heads/master/bin/mysar-binary-importer/src/config.c\00"
@.str.1 = [65 x i8] c"ERROR: Bad value in configuration file! %s%s (cannot be blank)\0A\00"
define i32 @MySAR_config_isblank(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i64 @strlen(i8* %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = load i8, i8* %9
%11 = icmp ne i8 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %8
%13 = load i8*, i8** %3
%14 = load i8*, i8** %4
%15 = call i32 @MySAR_macro_print_msg(i8* getelementptr inbounds ([164 x i8], [164 x i8]* @.str, i64 0, i64 0), i32 165, i32 2, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i8* %13, i8* %14)
br label %16
16: ; preds = %12, %8, %2
ret i32 1
}

LLVM IR (-O2):
@.str = [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/coffnix/mysar-ng/refs/heads/master/bin/mysar-binary-importer/src/config.c\00"
@.str.1 = [65 x i8] c"ERROR: Bad value in configuration file! %s%s (cannot be blank)\0A\00"
define i32 @MySAR_config_isblank(i8* %0, i8* %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @MySAR_macro_print_msg(i8* getelementptr inbounds ([164 x i8], [164 x i8]* @.str, i64 0, i64 0), i32 165, i32 2, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1)
br label %7
7: ; preds = %5, %2
ret i32 1
}