#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 */
struct l_class_OC___gnu_cxx_KD__KD___normal_iterator {
  int dummy;
};

/* Variables and functions */
unsigned int ***
_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(
    struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *);
unsigned long long
_ZN9__gnu_cxxmiIPPiSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(
    struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe___lhs,
    struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe___rhs) {
  unsigned long long llvm_cbe_retval;
  struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe___lhs_2e_addr;
  struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe___rhs_2e_addr;
  struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe_tmp;
  unsigned int ***llvm_cbe_call;
  unsigned int **llvm_cbe_tmp1;
  struct l_class_OC___gnu_cxx_KD__KD___normal_iterator *llvm_cbe_tmp2;
  unsigned int ***llvm_cbe_call3;
  unsigned int **llvm_cbe_tmp4;
  unsigned long long llvm_cbe_tmp__28;
  *(&llvm_cbe___lhs_2e_addr) = llvm_cbe___lhs;
  *(&llvm_cbe___rhs_2e_addr) = llvm_cbe___rhs;
  llvm_cbe_tmp = *(&llvm_cbe___lhs_2e_addr);
  llvm_cbe_call =
      _ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(
          llvm_cbe_tmp);
  llvm_cbe_tmp1 = *llvm_cbe_call;
  llvm_cbe_tmp2 = *(&llvm_cbe___rhs_2e_addr);
  llvm_cbe_call3 =
      _ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(
          llvm_cbe_tmp2);
  llvm_cbe_tmp4 = *llvm_cbe_call3;
  *(&llvm_cbe_retval) = (((
      signed long long)(((signed long long)(((
                            unsigned long long)(((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp1))) -
                                                ((unsigned long long)((
                                                    (unsigned long long)(unsigned long)
                                                        llvm_cbe_tmp4))))))) /
                        ((signed long long)8ull))));
  llvm_cbe_tmp__28 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__28;
}


x86 assembly (clang, -O0):
<_ZN9__gnu_cxxmiIPPiSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   1030 <_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
call   1030 <_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x58(%rbp),%rcx
sub    %rcx,%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ZN9__gnu_cxxmiIPPiSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
call   1030 <_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv@plt>
mov    (%rax),%rbx
mov    %r14,%rdi
call   1030 <_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv@plt>
mov    (%rax),%rax
mov    %rbx,%rcx
sub    %rax,%rcx
neg    %rax
add    %rbx,%rax
add    $0x7,%rax
test   %rcx,%rcx
cmovns %rcx,%rax
sar    $0x3,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator = type { i32 }
define i64 @_ZN9__gnu_cxxmiIPPiSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %0, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %1) {
%3 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%4 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%5 = alloca i64
%6 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%7 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%8 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%9 = alloca i32***
%10 = alloca i32**
%11 = alloca %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*
%12 = alloca i32***
%13 = alloca i32**
%14 = alloca i64
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %0, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %3
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %1, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %4
%15 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %3
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %15, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %6
%16 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %4
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %16, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %7
%17 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %6
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %17, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %8
%18 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %8
%19 = call i32*** @_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %18)
store i32*** %19, i32**** %9
%20 = load i32***, i32**** %9
%21 = load i32**, i32*** %20
store i32** %21, i32*** %10
%22 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %7
store %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %22, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %11
%23 = load %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator*, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator** %11
%24 = call i32*** @_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %23)
store i32*** %24, i32**** %12
%25 = load i32***, i32**** %12
%26 = load i32**, i32*** %25
store i32** %26, i32*** %13
%27 = load i32**, i32*** %10
%28 = ptrtoint i32** %27 to i64
%29 = load i32**, i32*** %13
%30 = ptrtoint i32** %29 to i64
%31 = sub i64 %28, %30
%32 = sdiv i64 %31, 8
store i64 %32, i64* %5
%33 = load i64, i64* %5
store i64 %33, i64* %14
%34 = load i64, i64* %14
ret i64 %34
}

LLVM IR (-O2):
%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator = type { i32 }
define i64 @_ZN9__gnu_cxxmiIPPiSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %0, %struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %1) {
%3 = tail call i32*** @_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %0)
%4 = load i32**, i32*** %3
%5 = tail call i32*** @_ZNK9__gnu_cxx17__normal_iteratorIPPiSt6vectorIS1_SaIS1_EEE4baseEv(%struct.l_class_OC___gnu_cxx_KD__KD___normal_iterator* %1)
%6 = load i32**, i32*** %5
%7 = ptrtoint i32** %4 to i64
%8 = ptrtoint i32** %6 to i64
%9 = sub i64 %7, %8
%10 = sdiv i64 %9, 8
ret i64 %10
}