#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*/ isdigit(char);
void make_date_time_between_compatable(char **to_date, char **from_time,
                                       char **to_time, char *from_date) {
  if (!**to_date || !isdigit(**to_date)) {
    *to_date = from_date;
  }
  if (!**from_time || !isdigit(**from_time)) {
    *from_time = "0000";
  }
  if (!**to_time || !isdigit(**to_time)) {
    *to_time = "2359";
  }
}


x86 assembly (clang, -O0):
<make_date_time_between_compatable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     1150 <make_date_time_between_compatable+0x40>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
jne    115b <make_date_time_between_compatable+0x4b>
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     1183 <make_date_time_between_compatable+0x73>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
jne    1191 <make_date_time_between_compatable+0x81>
mov    -0x10(%rbp),%rax
lea    0xe72(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     11b9 <make_date_time_between_compatable+0xa9>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
jne    11c7 <make_date_time_between_compatable+0xb7>
mov    -0x18(%rbp),%rax
lea    0xe41(%rip),%rcx
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_date_time_between_compatable>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%r12
mov    %rdi,%rbx
mov    (%rdi),%rax
mov    (%rax),%al
test   %al,%al
je     1139 <make_date_time_between_compatable+0x29>
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
jne    113c <make_date_time_between_compatable+0x2c>
mov    %r15,(%rbx)
mov    (%r12),%rax
mov    (%rax),%al
test   %al,%al
je     1152 <make_date_time_between_compatable+0x42>
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
jne    115d <make_date_time_between_compatable+0x4d>
lea    0xea7(%rip),%rax
mov    %rax,(%r12)
mov    (%r14),%rax
mov    (%rax),%al
test   %al,%al
je     1172 <make_date_time_between_compatable+0x62>
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
jne    117c <make_date_time_between_compatable+0x6c>
lea    0xe8c(%rip),%rax
mov    %rax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"0000\00"
@.str.1 = [5 x i8] c"2359\00"
define void @make_date_time_between_compatable(i8** %0, i8** %1, i8** %2, i8* %3) {
%5 = alloca i8**
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8*
store i8** %0, i8*** %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
store i8* %3, i8** %8
%9 = load i8**, i8*** %5
%10 = load i8*, i8** %9
%11 = load i8, i8* %10
%12 = icmp ne i8 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %4
%14 = load i8**, i8*** %5
%15 = load i8*, i8** %14
%16 = load i8, i8* %15
%17 = call i32 @isdigit(i8 signext %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %13, %4
%20 = load i8*, i8** %8
%21 = load i8**, i8*** %5
store i8* %20, i8** %21
br label %22
22: ; preds = %19, %13
%23 = load i8**, i8*** %6
%24 = load i8*, i8** %23
%25 = load i8, i8* %24
%26 = icmp ne i8 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load i8**, i8*** %6
%29 = load i8*, i8** %28
%30 = load i8, i8* %29
%31 = call i32 @isdigit(i8 signext %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %27, %22
%34 = load i8**, i8*** %6
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %34
br label %35
35: ; preds = %33, %27
%36 = load i8**, i8*** %7
%37 = load i8*, i8** %36
%38 = load i8, i8* %37
%39 = icmp ne i8 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %35
%41 = load i8**, i8*** %7
%42 = load i8*, i8** %41
%43 = load i8, i8* %42
%44 = call i32 @isdigit(i8 signext %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %40, %35
%47 = load i8**, i8*** %7
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %47
br label %48
48: ; preds = %46, %40
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"0000\00"
@.str.1 = [5 x i8] c"2359\00"
define void @make_date_time_between_compatable(i8** nocapture %0, i8** nocapture %1, i8** nocapture %2, i8* %3) {
%5 = load i8*, i8** %0
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %4
%9 = tail call i32 @isdigit(i8 signext %6)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %8, %4
store i8* %3, i8** %0
br label %12
12: ; preds = %11, %8
%13 = load i8*, i8** %1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = tail call i32 @isdigit(i8 signext %14)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16, %12
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %1
br label %20
20: ; preds = %19, %16
%21 = load i8*, i8** %2
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %20
%25 = tail call i32 @isdigit(i8 signext %22)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24, %20
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %28
28: ; preds = %27, %24
ret void
}