#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 */
unsigned short **__ctype_b_loc();
int _all_whitespace(char const *);
int tolower(int);
int _is_command_terminator(char const *zLine) {
  unsigned short const **tmp;
  int tmp___0;
  int tmp___1;
  int tmp___2;
  int tmp___3;
  unsigned char *__cil_tmp7;
  unsigned char __cil_tmp8;
  int __cil_tmp9;
  unsigned short const *__cil_tmp10;
  unsigned short const *__cil_tmp11;
  unsigned short __cil_tmp12;
  int __cil_tmp13;
  char const *__cil_tmp14;
  char __cil_tmp15;
  int __cil_tmp16;
  char const *__cil_tmp17;
  char const *__cil_tmp18;
  char __cil_tmp19;
  int __cil_tmp20;
  char const *__cil_tmp21;
  char __cil_tmp22;
  int __cil_tmp23;
  char const *__cil_tmp24;
  {
    {
      while (1) {
      while_55_continue:;
        { tmp = __ctype_b_loc(); }
        {
          __cil_tmp7 = (unsigned char *)zLine;
          __cil_tmp8 = *__cil_tmp7;
          __cil_tmp9 = (int)__cil_tmp8;
          __cil_tmp10 = *tmp;
          __cil_tmp11 = __cil_tmp10 + __cil_tmp9;
          __cil_tmp12 = *__cil_tmp11;
          __cil_tmp13 = (int const)__cil_tmp12;
          if (__cil_tmp13 & 8192) {
          } else {
            goto while_55_break;
          }
        }
        zLine = zLine + 1;
      }
    while_55_break:;
    }
    {
      __cil_tmp14 = zLine + 0;
      __cil_tmp15 = *__cil_tmp14;
      __cil_tmp16 = (int const)__cil_tmp15;
      if (__cil_tmp16 == 47) {
        {
          __cil_tmp17 = zLine + 1;
          tmp___0 = _all_whitespace(__cil_tmp17);
        }
        if (tmp___0) {
          return (1);
        } else {
        }
      } else {
      }
    }
    {
      __cil_tmp18 = zLine + 0;
      __cil_tmp19 = *__cil_tmp18;
      __cil_tmp20 = (int)__cil_tmp19;
      tmp___1 = tolower(__cil_tmp20);
    }
    if (tmp___1 == 103) {
      {
        __cil_tmp21 = zLine + 1;
        __cil_tmp22 = *__cil_tmp21;
        __cil_tmp23 = (int)__cil_tmp22;
        tmp___2 = tolower(__cil_tmp23);
      }
      if (tmp___2 == 111) {
        {
          __cil_tmp24 = zLine + 2;
          tmp___3 = _all_whitespace(__cil_tmp24);
        }
        if (tmp___3) {
          return (1);
        } else {
        }
      } else {
      }
    } else {
    }
    return (0);
  }
}


x86 assembly (clang, -O0):
<_is_command_terminator>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
jmp    1144 <_is_command_terminator+0x14>
mov    $0x0,%al
call   1050 <__ctype_b_loc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
shl    $0x1,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%ax
mov    %ax,-0x4a(%rbp)
movzwl -0x4a(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     11ad <_is_command_terminator+0x7d>
jmp    11b2 <_is_command_terminator+0x82>
jmp    11c3 <_is_command_terminator+0x93>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    113f <_is_command_terminator+0xf>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x59(%rbp)
movsbl -0x59(%rbp),%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x2f,-0x60(%rbp)
jne    121d <_is_command_terminator+0xed>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
call   1040 <_all_whitespace@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1213 <_is_command_terminator+0xe3>
movl   $0x1,-0x4(%rbp)
jmp    12e0 <_is_command_terminator+0x1b0>
jmp    1218 <_is_command_terminator+0xe8>
jmp    1222 <_is_command_terminator+0xf2>
jmp    1222 <_is_command_terminator+0xf2>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x71(%rbp)
movsbl -0x71(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%edi
call   1030 <tolower@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x67,-0x20(%rbp)
jne    12d4 <_is_command_terminator+0x1a4>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x81(%rbp)
movsbl -0x81(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%edi
call   1030 <tolower@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x6f,-0x24(%rbp)
jne    12ca <_is_command_terminator+0x19a>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rdi
call   1040 <_all_whitespace@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     12c0 <_is_command_terminator+0x190>
movl   $0x1,-0x4(%rbp)
jmp    12e0 <_is_command_terminator+0x1b0>
jmp    12c5 <_is_command_terminator+0x195>
jmp    12cf <_is_command_terminator+0x19f>
jmp    12cf <_is_command_terminator+0x19f>
jmp    12d9 <_is_command_terminator+0x1a9>
jmp    12d9 <_is_command_terminator+0x1a9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_is_command_terminator>:
push   %rbx
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1050 <__ctype_b_loc@plt>
movzbl (%rbx),%ecx
mov    (%rax),%rax
add    $0x1,%rbx
testb  $0x20,0x1(%rax,%rcx,2)
jne    1140 <_is_command_terminator+0x10>
cmp    $0x2f,%cl
jne    1175 <_is_command_terminator+0x45>
mov    %rbx,%rdi
call   1040 <_all_whitespace@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
je     1172 <_is_command_terminator+0x42>
pop    %rbx
ret
mov    -0x1(%rbx),%cl
movsbl %cl,%edi
call   1030 <tolower@plt>
cmp    $0x67,%eax
jne    11a6 <_is_command_terminator+0x76>
movsbl (%rbx),%edi
call   1030 <tolower@plt>
cmp    $0x6f,%eax
jne    11a6 <_is_command_terminator+0x76>
add    $0x1,%rbx
mov    %rbx,%rdi
call   1040 <_all_whitespace@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
jne    1170 <_is_command_terminator+0x40>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @_is_command_terminator(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i16**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = alloca i16
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8
%18 = alloca i32
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8
%22 = alloca i32
%23 = alloca i8*
%24 = alloca i8
%25 = alloca i32
%26 = alloca i8*
store i8* %0, i8** %3
br label %27
27: ; preds = %1, %50
br label %28
28: ; preds = %27
%29 = call i16** (...) @__ctype_b_loc()
store i16** %29, i16*** %4
%30 = load i8*, i8** %3
store i8* %30, i8** %9
%31 = load i8*, i8** %9
%32 = load i8, i8* %31
store i8 %32, i8* %10
%33 = load i8, i8* %10
%34 = zext i8 %33 to i32
store i32 %34, i32* %11
%35 = load i16**, i16*** %4
%36 = load i16*, i16** %35
store i16* %36, i16** %12
%37 = load i16*, i16** %12
%38 = load i32, i32* %11
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i16, i16* %37, i64 %39
store i16* %40, i16** %13
%41 = load i16*, i16** %13
%42 = load i16, i16* %41
store i16 %42, i16* %14
%43 = load i16, i16* %14
%44 = zext i16 %43 to i32
store i32 %44, i32* %15
%45 = load i32, i32* %15
%46 = and i32 %45, 8192
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %28
br label %50
49: ; preds = %28
br label %53
50: ; preds = %48
%51 = load i8*, i8** %3
%52 = getelementptr inbounds i8, i8* %51, i64 1
store i8* %52, i8** %3
br label %27
53: ; preds = %49
%54 = load i8*, i8** %3
%55 = getelementptr inbounds i8, i8* %54, i64 0
store i8* %55, i8** %16
%56 = load i8*, i8** %16
%57 = load i8, i8* %56
store i8 %57, i8* %17
%58 = load i8, i8* %17
%59 = sext i8 %58 to i32
store i32 %59, i32* %18
%60 = load i32, i32* %18
%61 = icmp eq i32 %60, 47
br i1 %61, label %62, label %72
62: ; preds = %53
%63 = load i8*, i8** %3
%64 = getelementptr inbounds i8, i8* %63, i64 1
store i8* %64, i8** %19
%65 = load i8*, i8** %19
%66 = call i32 @_all_whitespace(i8* %65)
store i32 %66, i32* %5
%67 = load i32, i32* %5
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %62
store i32 1, i32* %2
br label %109
70: ; preds = %62
br label %71
71: ; preds = %70
br label %73
72: ; preds = %53
br label %73
73: ; preds = %72, %71
%74 = load i8*, i8** %3
%75 = getelementptr inbounds i8, i8* %74, i64 0
store i8* %75, i8** %20
%76 = load i8*, i8** %20
%77 = load i8, i8* %76
store i8 %77, i8* %21
%78 = load i8, i8* %21
%79 = sext i8 %78 to i32
store i32 %79, i32* %22
%80 = load i32, i32* %22
%81 = call i32 @tolower(i32 %80)
store i32 %81, i32* %6
%82 = load i32, i32* %6
%83 = icmp eq i32 %82, 103
br i1 %83, label %84, label %107
84: ; preds = %73
%85 = load i8*, i8** %3
%86 = getelementptr inbounds i8, i8* %85, i64 1
store i8* %86, i8** %23
%87 = load i8*, i8** %23
%88 = load i8, i8* %87
store i8 %88, i8* %24
%89 = load i8, i8* %24
%90 = sext i8 %89 to i32
store i32 %90, i32* %25
%91 = load i32, i32* %25
%92 = call i32 @tolower(i32 %91)
store i32 %92, i32* %7
%93 = load i32, i32* %7
%94 = icmp eq i32 %93, 111
br i1 %94, label %95, label %105
95: ; preds = %84
%96 = load i8*, i8** %3
%97 = getelementptr inbounds i8, i8* %96, i64 2
store i8* %97, i8** %26
%98 = load i8*, i8** %26
%99 = call i32 @_all_whitespace(i8* %98)
store i32 %99, i32* %8
%100 = load i32, i32* %8
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %95
store i32 1, i32* %2
br label %109
103: ; preds = %95
br label %104
104: ; preds = %103
br label %106
105: ; preds = %84
br label %106
106: ; preds = %105, %104
br label %108
107: ; preds = %73
br label %108
108: ; preds = %107, %106
store i32 0, i32* %2
br label %109
109: ; preds = %108, %102, %69
%110 = load i32, i32* %2
ret i32 %110
}

LLVM IR (-O2):
define i32 @_is_command_terminator(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %12, %2 ]
%4 = tail call i16** (...) @__ctype_b_loc()
%5 = load i8, i8* %3
%6 = load i16*, i16** %4
%7 = zext i8 %5 to i64
%8 = getelementptr inbounds i16, i16* %6, i64 %7
%9 = load i16, i16* %8
%10 = and i16 %9, 8192
%11 = icmp eq i16 %10, 0
%12 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %11, label %13, label %2
13: ; preds = %2
%14 = icmp eq i8 %5, 47
br i1 %14, label %15, label %20
15: ; preds = %13
%16 = tail call i32 @_all_whitespace(i8* %12)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %35
18: ; preds = %15
%19 = load i8, i8* %3
br label %20
20: ; preds = %18, %13
%21 = phi i8 [ %19, %18 ], [ %5, %13 ]
%22 = sext i8 %21 to i32
%23 = tail call i32 @tolower(i32 %22)
%24 = icmp eq i32 %23, 103
br i1 %24, label %25, label %34
25: ; preds = %20
%26 = load i8, i8* %12
%27 = sext i8 %26 to i32
%28 = tail call i32 @tolower(i32 %27)
%29 = icmp eq i32 %28, 111
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = getelementptr inbounds i8, i8* %3, i64 2
%32 = tail call i32 @_all_whitespace(i8* %31)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %20, %30, %25
br label %35
35: ; preds = %30, %15, %34
%36 = phi i32 [ 0, %34 ], [ 1, %15 ], [ 1, %30 ]
ret i32 %36
}