#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*/ checker(char **, char **);
int /*<<< orphan*/ my_comma_point(char **, char **, char **, int);
int /*<<< orphan*/ my_exec(char **, char *, char **);
int /*<<< orphan*/ my_putstr(char *);
int /*<<< orphan*/ slash(char **, char **);
int my_comma(char **s1, char **s2, char **env, int point) {
  if (s2 == NULL) {
    my_exec(env, s1[0], s1);
    return (0);
  }
  if (env[0] == NULL) {
    if (!(checker(s1, env)) == 1)
      if (!(slash(env, s1)) == 0)
        my_putstr("Env is empty\n");
    if (!(checker(s2, env)) == 1)
      if (!(slash(env, s2)) == 0)
        my_putstr("Env is empty\n");
    return (0);
  } else
    my_comma_point(s1, s2, env, point);
  return (0);
}


x86 assembly (clang, -O0):
<my_comma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1192 <my_comma+0x42>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <my_exec@plt>
movl   $0x0,-0x4(%rbp)
jmp    1275 <my_comma+0x125>
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
jne    125a <my_comma+0x10a>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <checker@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x1,%eax
jne    11f7 <my_comma+0xa7>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <slash@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    11f2 <my_comma+0xa2>
lea    0xe13(%rip),%rdi
call   1050 <my_putstr@plt>
jmp    11f7 <my_comma+0xa7>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <checker@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x1,%eax
jne    124e <my_comma+0xfe>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <slash@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1249 <my_comma+0xf9>
lea    0xdbc(%rip),%rdi
call   1050 <my_putstr@plt>
jmp    124e <my_comma+0xfe>
movl   $0x0,-0x4(%rbp)
jmp    1275 <my_comma+0x125>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
call   1030 <my_comma_point@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_comma>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r15
mov    %rdi,%rbx
test   %rsi,%rsi
je     1179 <my_comma+0x29>
mov    %rsi,%r14
cmpq   $0x0,(%r15)
je     1189 <my_comma+0x39>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <my_comma_point@plt>
jmp    11dd <my_comma+0x8d>
mov    (%rbx),%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1040 <my_exec@plt>
jmp    11dd <my_comma+0x8d>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <checker@plt>
test   %eax,%eax
jne    11b3 <my_comma+0x63>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <slash@plt>
test   %eax,%eax
je     11b3 <my_comma+0x63>
lea    0xe52(%rip),%rdi
call   1050 <my_putstr@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <checker@plt>
test   %eax,%eax
jne    11dd <my_comma+0x8d>
mov    %r15,%rdi
mov    %r14,%rsi
call   1070 <slash@plt>
test   %eax,%eax
je     11dd <my_comma+0x8d>
lea    0xe28(%rip),%rdi
call   1050 <my_putstr@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Env is empty\0A\00"
define i32 @my_comma(i8** %0, i8** %1, i8** %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
store i8** %0, i8*** %6
store i8** %1, i8*** %7
store i8** %2, i8*** %8
store i32 %3, i32* %9
%10 = load i8**, i8*** %7
%11 = icmp eq i8** %10, null
br i1 %11, label %12, label %19
12: ; preds = %4
%13 = load i8**, i8*** %8
%14 = load i8**, i8*** %6
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = load i8**, i8*** %6
%18 = call i32 @my_exec(i8** %13, i8* %16, i8** %17)
store i32 0, i32* %5
br label %70
19: ; preds = %4
%20 = load i8**, i8*** %8
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = icmp eq i8* %22, null
br i1 %23, label %24, label %63
24: ; preds = %19
%25 = load i8**, i8*** %6
%26 = load i8**, i8*** %8
%27 = call i32 @checker(i8** %25, i8** %26)
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
%30 = zext i1 %29 to i32
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %43
32: ; preds = %24
%33 = load i8**, i8*** %8
%34 = load i8**, i8*** %6
%35 = call i32 @slash(i8** %33, i8** %34)
%36 = icmp ne i32 %35, 0
%37 = xor i1 %36, true
%38 = zext i1 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %32
%41 = call i32 @my_putstr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %42
42: ; preds = %40, %32
br label %43
43: ; preds = %42, %24
%44 = load i8**, i8*** %7
%45 = load i8**, i8*** %8
%46 = call i32 @checker(i8** %44, i8** %45)
%47 = icmp ne i32 %46, 0
%48 = xor i1 %47, true
%49 = zext i1 %48 to i32
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %62
51: ; preds = %43
%52 = load i8**, i8*** %8
%53 = load i8**, i8*** %7
%54 = call i32 @slash(i8** %52, i8** %53)
%55 = icmp ne i32 %54, 0
%56 = xor i1 %55, true
%57 = zext i1 %56 to i32
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %51
%60 = call i32 @my_putstr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %61
61: ; preds = %59, %51
br label %62
62: ; preds = %61, %43
store i32 0, i32* %5
br label %70
63: ; preds = %19
%64 = load i8**, i8*** %6
%65 = load i8**, i8*** %7
%66 = load i8**, i8*** %8
%67 = load i32, i32* %9
%68 = call i32 @my_comma_point(i8** %64, i8** %65, i8** %66, i32 %67)
br label %69
69: ; preds = %63
store i32 0, i32* %5
br label %70
70: ; preds = %69, %62, %12
%71 = load i32, i32* %5
ret i32 %71
}

LLVM IR (-O2):
@.str = [14 x i8] c"Env is empty\0A\00"
define i32 @my_comma(i8** %0, i8** %1, i8** %2, i32 %3) {
%5 = icmp eq i8** %1, null
br i1 %5, label %6, label %9
6: ; preds = %4
%7 = load i8*, i8** %0
%8 = tail call i32 @my_exec(i8** %2, i8* %7, i8** %0)
br label %30
9: ; preds = %4
%10 = load i8*, i8** %2
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = tail call i32 @checker(i8** %0, i8** %2)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = tail call i32 @slash(i8** %2, i8** %0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 @my_putstr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %20
20: ; preds = %15, %18, %12
%21 = tail call i32 @checker(i8** %1, i8** %2)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = tail call i32 @slash(i8** %2, i8** %1)
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = tail call i32 @my_putstr(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %30
28: ; preds = %9
%29 = tail call i32 @my_comma_point(i8** %0, i8** %1, i8** %2, i32 %3)
br label %30
30: ; preds = %20, %26, %23, %28, %6
ret i32 0
}