#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 */
scalar_t__ strcmp(char *, char *);
void hydrology_library_get_clean_begin_end_time(char **begin_time_string,
                                                char **end_time_string) {
  if (!*begin_time_string || !**begin_time_string ||
      strcmp(*begin_time_string, "begin_time") == 0) {
    *begin_time_string = "0000";
  }
  if (!*end_time_string || !**end_time_string ||
      strcmp(*end_time_string, "end_time") == 0) {
    *end_time_string = "2359";
  }
}


x86 assembly (clang, -O0):
<hydrology_library_get_clean_begin_end_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     115b <hydrology_library_get_clean_begin_end_time+0x4b>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     115b <hydrology_library_get_clean_begin_end_time+0x4b>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    0xeb4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1169 <hydrology_library_get_clean_begin_end_time+0x59>
mov    -0x8(%rbp),%rax
lea    0xea5(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     11a4 <hydrology_library_get_clean_begin_end_time+0x94>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     11a4 <hydrology_library_get_clean_begin_end_time+0x94>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe7b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11b2 <hydrology_library_get_clean_begin_end_time+0xa2>
mov    -0x10(%rbp),%rax
lea    0xe6a(%rip),%rcx
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hydrology_library_get_clean_begin_end_time>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1138 <hydrology_library_get_clean_begin_end_time+0x28>
cmpb   $0x0,(%rdi)
je     1138 <hydrology_library_get_clean_begin_end_time+0x28>
lea    0xed2(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    1142 <hydrology_library_get_clean_begin_end_time+0x32>
lea    0xecc(%rip),%rax
mov    %rax,(%rbx)
mov    (%r14),%rdi
test   %rdi,%rdi
je     1160 <hydrology_library_get_clean_begin_end_time+0x50>
cmpb   $0x0,(%rdi)
je     1160 <hydrology_library_get_clean_begin_end_time+0x50>
lea    0xeba(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    116a <hydrology_library_get_clean_begin_end_time+0x5a>
lea    0xeb2(%rip),%rax
mov    %rax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"begin_time\00"
@.str.1 = [5 x i8] c"0000\00"
@.str.2 = [9 x i8] c"end_time\00"
@.str.3 = [5 x i8] c"2359\00"
define void @hydrology_library_get_clean_begin_end_time(i8** %0, i8** %1) {
%3 = alloca i8**
%4 = alloca i8**
store i8** %0, i8*** %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %3
%6 = load i8*, i8** %5
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load i8**, i8*** %3
%10 = load i8*, i8** %9
%11 = load i8, i8* %10
%12 = icmp ne i8 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load i8**, i8*** %3
%15 = load i8*, i8** %14
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13, %8, %2
%19 = load i8**, i8*** %3
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %19
br label %20
20: ; preds = %18, %13
%21 = load i8**, i8*** %4
%22 = load i8*, i8** %21
%23 = icmp ne i8* %22, null
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load i8**, i8*** %4
%26 = load i8*, i8** %25
%27 = load i8, i8* %26
%28 = icmp ne i8 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = load i8**, i8*** %4
%31 = load i8*, i8** %30
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29, %24, %20
%35 = load i8**, i8*** %4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %35
br label %36
36: ; preds = %34, %29
ret void
}

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