#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*/ inhib_save_fill(char *, char *, size_t **);
int /*<<< orphan*/ write(int, char *, int);
int core_inhib(char *str, char *save, size_t (*var)[5]) {
  inhib_save_fill(str, save, var);
  if ((*var)[3] % 2) {
    write(1, "Unmatched \'.\n", 13);
    return (1);
  }
  if ((*var)[4] % 2) {
    write(1, "Unmatched \".\n", 13);
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<core_inhib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <inhib_save_fill@plt>
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%rax
and    $0x1,%rax
cmp    $0x0,%rax
je     117d <core_inhib+0x5d>
mov    $0x1,%edi
lea    0xe99(%rip),%rsi
mov    $0xd,%edx
call   1030 <write@plt>
movl   $0x1,-0x4(%rbp)
jmp    11bc <core_inhib+0x9c>
mov    -0x20(%rbp),%rax
mov    0x20(%rax),%rax
and    $0x1,%rax
cmp    $0x0,%rax
je     11b5 <core_inhib+0x95>
mov    $0x1,%edi
lea    0xe6f(%rip),%rsi
mov    $0xd,%edx
call   1030 <write@plt>
movl   $0x1,-0x4(%rbp)
jmp    11bc <core_inhib+0x9c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<core_inhib>:
push   %rbp
push   %rbx
push   %rax
mov    %rdx,%rbx
call   1040 <inhib_save_fill@plt>
testb  $0x1,0x18(%rbx)
jne    1142 <core_inhib+0x22>
xor    %ebp,%ebp
testb  $0x1,0x20(%rbx)
je     115d <core_inhib+0x3d>
lea    0xece(%rip),%rsi
jmp    1149 <core_inhib+0x29>
lea    0xeb7(%rip),%rsi
mov    $0x1,%ebp
mov    $0x1,%edi
mov    $0xd,%edx
call   1030 <write@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Unmatched '.\0A\00"
@.str.1 = [14 x i8] c"Unmatched \22.\0A\00"
define i32 @core_inhib(i8* %0, i8* %1, [5 x i64]* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [5 x i64]*
store i8* %0, i8** %5
store i8* %1, i8** %6
store [5 x i64]* %2, [5 x i64]** %7
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = load [5 x i64]*, [5 x i64]** %7
%11 = bitcast [5 x i64]* %10 to i64**
%12 = call i32 @inhib_save_fill(i8* %8, i8* %9, i64** %11)
%13 = load [5 x i64]*, [5 x i64]** %7
%14 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i64 0, i64 3
%15 = load i64, i64* %14
%16 = urem i64 %15, 2
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @write(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 13)
store i32 1, i32* %4
br label %29
20: ; preds = %3
%21 = load [5 x i64]*, [5 x i64]** %7
%22 = getelementptr inbounds [5 x i64], [5 x i64]* %21, i64 0, i64 4
%23 = load i64, i64* %22
%24 = urem i64 %23, 2
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @write(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 13)
store i32 1, i32* %4
br label %29
28: ; preds = %20
store i32 0, i32* %4
br label %29
29: ; preds = %28, %26, %18
%30 = load i32, i32* %4
ret i32 %30
}

LLVM IR (-O2):
@.str = [14 x i8] c"Unmatched '.\0A\00"
@.str.1 = [14 x i8] c"Unmatched \22.\0A\00"
define i32 @core_inhib(i8* %0, i8* %1, [5 x i64]* %2) {
%4 = bitcast [5 x i64]* %2 to i64**
%5 = tail call i32 @inhib_save_fill(i8* %0, i8* %1, i64** %4)
%6 = getelementptr inbounds [5 x i64], [5 x i64]* %2, i64 0, i64 3
%7 = load i64, i64* %6
%8 = and i64 %7, 1
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = getelementptr inbounds [5 x i64], [5 x i64]* %2, i64 0, i64 4
%12 = load i64, i64* %11
%13 = and i64 %12, 1
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %10, %3
%16 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %3 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %10 ]
%17 = tail call i32 @write(i32 1, i8* %16, i32 13)
br label %18
18: ; preds = %15, %10
%19 = phi i32 [ 0, %10 ], [ 1, %15 ]
ret i32 %19
}