#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 const_Matrix_T {
  int dummy;
};
struct const_Matrix_R {
  int dummy;
};
struct Matrix_T {
  int dummy;
};
typedef int /*<<< orphan*/ ptrdiff_t;

/* Variables and functions */
struct const_Matrix_T *
constructor_copy_const_Matrix_T_Matrix_R(struct const_Matrix_R const *);
int /*<<< orphan*/
destructor_const_Matrix_T(struct const_Matrix_T const *const);
int /*<<< orphan*/
set_block_Matrix_T(struct Matrix_T *, int /*<<< orphan*/ const,
                   int /*<<< orphan*/ const, struct const_Matrix_T const *const,
                   int /*<<< orphan*/ const, int /*<<< orphan*/ const,
                   int /*<<< orphan*/ const, int /*<<< orphan*/ const,
                   char const);
void set_block_Matrix_T_R(struct Matrix_T *dest, const ptrdiff_t row0_d,
                          const ptrdiff_t col0_d,
                          const struct const_Matrix_R *src,
                          const ptrdiff_t row0_s, const ptrdiff_t col0_s,
                          const ptrdiff_t ext_0, const ptrdiff_t ext_1,
                          const char set_type) {
  const struct const_Matrix_T *const src_c =
      constructor_copy_const_Matrix_T_Matrix_R(src);
  set_block_Matrix_T(dest, row0_d, col0_d, src_c, row0_s, col0_s, ext_0, ext_1,
                     set_type);
  destructor_const_Matrix_T(src_c);
}


x86 assembly (clang, -O0):
<set_block_Matrix_T_R>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%al
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <constructor_copy_const_Matrix_T_Matrix_R@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    0x18(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
movsbl 0x20(%rbp),%eax
mov    %eax,0x10(%rsp)
call   1050 <set_block_Matrix_T@plt>
mov    -0x28(%rbp),%rdi
call   1030 <destructor_const_Matrix_T@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_block_Matrix_T_R>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0x4(%rsp)
mov    %r8d,%r15d
mov    %edx,%r12d
mov    %esi,%r13d
mov    %rdi,%rbx
mov    0x50(%rsp),%eax
mov    %rax,0x10(%rsp)
mov    0x58(%rsp),%eax
mov    %rax,0x8(%rsp)
movsbl 0x60(%rsp),%r14d
mov    %rcx,%rdi
call   1040 <constructor_copy_const_Matrix_T_Matrix_R@plt>
mov    %rax,%rbp
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r12d,%edx
mov    %rax,%rcx
mov    %r15d,%r8d
mov    0xc(%rsp),%r9d
push   %r14
push   0x18(%rsp)
push   0x28(%rsp)
call   1050 <set_block_Matrix_T@plt>
add    $0x20,%rsp
mov    %rbp,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <destructor_const_Matrix_T@plt>

LLVM IR (-O0):
%struct.Matrix_T = type { i32 }
%struct.const_Matrix_R = type { i32 }
%struct.const_Matrix_T = type { i32 }
define void @set_block_Matrix_T_R(%struct.Matrix_T* %0, i32 %1, i32 %2, %struct.const_Matrix_R* %3, i32 %4, i32 %5, i32 %6, i32 %7, i8 signext %8) {
%10 = alloca %struct.Matrix_T*
%11 = alloca i32
%12 = alloca i32
%13 = alloca %struct.const_Matrix_R*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8
%19 = alloca %struct.const_Matrix_T*
store %struct.Matrix_T* %0, %struct.Matrix_T** %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store %struct.const_Matrix_R* %3, %struct.const_Matrix_R** %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i8 %8, i8* %18
%20 = load %struct.const_Matrix_R*, %struct.const_Matrix_R** %13
%21 = call %struct.const_Matrix_T* @constructor_copy_const_Matrix_T_Matrix_R(%struct.const_Matrix_R* %20)
store %struct.const_Matrix_T* %21, %struct.const_Matrix_T** %19
%22 = load %struct.Matrix_T*, %struct.Matrix_T** %10
%23 = load i32, i32* %11
%24 = load i32, i32* %12
%25 = load %struct.const_Matrix_T*, %struct.const_Matrix_T** %19
%26 = load i32, i32* %14
%27 = load i32, i32* %15
%28 = load i32, i32* %16
%29 = load i32, i32* %17
%30 = load i8, i8* %18
%31 = call i32 @set_block_Matrix_T(%struct.Matrix_T* %22, i32 %23, i32 %24, %struct.const_Matrix_T* %25, i32 %26, i32 %27, i32 %28, i32 %29, i8 signext %30)
%32 = load %struct.const_Matrix_T*, %struct.const_Matrix_T** %19
%33 = call i32 @destructor_const_Matrix_T(%struct.const_Matrix_T* %32)
ret void
}

LLVM IR (-O2):
%struct.Matrix_T = type { i32 }
%struct.const_Matrix_R = type { i32 }
%struct.const_Matrix_T = type { i32 }
define void @set_block_Matrix_T_R(%struct.Matrix_T* %0, i32 %1, i32 %2, %struct.const_Matrix_R* %3, i32 %4, i32 %5, i32 %6, i32 %7, i8 signext %8) {
%10 = tail call %struct.const_Matrix_T* @constructor_copy_const_Matrix_T_Matrix_R(%struct.const_Matrix_R* %3)
%11 = tail call i32 @set_block_Matrix_T(%struct.Matrix_T* %0, i32 %1, i32 %2, %struct.const_Matrix_T* %10, i32 %4, i32 %5, i32 %6, i32 %7, i8 signext %8)
%12 = tail call i32 @destructor_const_Matrix_T(%struct.const_Matrix_T* %10)
ret void
}