#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*/ hc_weak_enforce_pair(unsigned int, unsigned int, char,
                                        char *, unsigned int, unsigned int,
                                        int *);
void hc_enforce_pair(unsigned int i, unsigned int j, char c_option, char *hc,
                     unsigned int length, unsigned int min_loop_size,
                     int *index) {
  hc_weak_enforce_pair(i, j, c_option, hc, length, min_loop_size, index);
  hc[index[i] + i] = 0;
  hc[index[j] + j] = 0;
}


x86 assembly (clang, -O0):
<hc_enforce_pair>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dl,%al
mov    0x10(%rbp),%rdx
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x9(%rbp),%dl
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    0x10(%rbp),%rax
movsbl %dl,%edx
mov    %rax,(%rsp)
call   1030 <hc_weak_enforce_pair@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rbp),%rcx
mov    -0x4(%rbp),%edx
mov    (%rcx,%rdx,4),%ecx
add    -0x4(%rbp),%ecx
mov    %ecx,%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
mov    0x10(%rbp),%rcx
mov    -0x8(%rbp),%edx
mov    (%rcx,%rdx,4),%ecx
add    -0x8(%rbp),%ecx
mov    %ecx,%ecx
movb   $0x0,(%rax,%rcx,1)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hc_enforce_pair>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %esi,%r15d
mov    %edi,%ebx
mov    0x30(%rsp),%r12
mov    %r12,(%rsp)
call   1030 <hc_weak_enforce_pair@plt>
mov    %ebx,%eax
add    (%r12,%rax,4),%ebx
movb   $0x0,(%r14,%rbx,1)
mov    %r15d,%eax
add    (%r12,%rax,4),%r15d
movb   $0x0,(%r14,%r15,1)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @hc_enforce_pair(i32 %0, i32 %1, i8 signext %2, i8* %3, i32 %4, i32 %5, i32* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32*
store i32 %0, i32* %8
store i32 %1, i32* %9
store i8 %2, i8* %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32* %6, i32** %14
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load i8, i8* %10
%18 = load i8*, i8** %11
%19 = load i32, i32* %12
%20 = load i32, i32* %13
%21 = load i32*, i32** %14
%22 = call i32 @hc_weak_enforce_pair(i32 %15, i32 %16, i8 signext %17, i8* %18, i32 %19, i32 %20, i32* %21)
%23 = load i8*, i8** %11
%24 = load i32*, i32** %14
%25 = load i32, i32* %8
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i32, i32* %24, i64 %26
%28 = load i32, i32* %27
%29 = load i32, i32* %8
%30 = add i32 %28, %29
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %23, i64 %31
store i8 0, i8* %32
%33 = load i8*, i8** %11
%34 = load i32*, i32** %14
%35 = load i32, i32* %9
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i32, i32* %34, i64 %36
%38 = load i32, i32* %37
%39 = load i32, i32* %9
%40 = add i32 %38, %39
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %33, i64 %41
store i8 0, i8* %42
ret void
}

LLVM IR (-O2):
define void @hc_enforce_pair(i32 %0, i32 %1, i8 signext %2, i8* %3, i32 %4, i32 %5, i32* %6) {
%8 = tail call i32 @hc_weak_enforce_pair(i32 %0, i32 %1, i8 signext %2, i8* %3, i32 %4, i32 %5, i32* %6)
%9 = zext i32 %0 to i64
%10 = getelementptr inbounds i32, i32* %6, i64 %9
%11 = load i32, i32* %10
%12 = add i32 %11, %0
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %3, i64 %13
store i8 0, i8* %14
%15 = zext i32 %1 to i64
%16 = getelementptr inbounds i32, i32* %6, i64 %15
%17 = load i32, i32* %16
%18 = add i32 %17, %1
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %3, i64 %19
store i8 0, i8* %20
ret void
}