#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 */
typedef scalar_t__ int64_t;

/* Variables and functions */
int __pmp_schedule_next(int, scalar_t__ *, scalar_t__ *, scalar_t__ *);
int __ompc_schedule_next_4(int global_id, int *lower, int *upper, int *inc) {
  int result;
  int64_t l;
  int64_t u;
  int64_t i;
  ;
  result = __pmp_schedule_next(global_id, &l, &u, &i);
  *lower = (int)l;
  *upper = (int)u;
  *inc = (int)i;
  return result;
}


x86 assembly (clang, -O0):
<__ompc_schedule_next_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x30(%rbp),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1030 <__pmp_schedule_next@plt>
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x38(%rbp),%rax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x40(%rbp),%rax
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ompc_schedule_next_4>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1030 <__pmp_schedule_next@plt>
mov    0x18(%rsp),%ecx
mov    %ecx,(%rbx)
mov    0x10(%rsp),%ecx
mov    %ecx,(%r15)
mov    0x8(%rsp),%ecx
mov    %ecx,(%r14)
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @__ompc_schedule_next_4(i32 %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%13 = load i32, i32* %5
%14 = call i32 @__pmp_schedule_next(i32 %13, i64* %10, i64* %11, i64* %12)
store i32 %14, i32* %9
%15 = load i64, i64* %10
%16 = trunc i64 %15 to i32
%17 = load i32*, i32** %6
store i32 %16, i32* %17
%18 = load i64, i64* %11
%19 = trunc i64 %18 to i32
%20 = load i32*, i32** %7
store i32 %19, i32* %20
%21 = load i64, i64* %12
%22 = trunc i64 %21 to i32
%23 = load i32*, i32** %8
store i32 %22, i32* %23
%24 = load i32, i32* %9
ret i32 %24
}

LLVM IR (-O2):
define i32 @__ompc_schedule_next_4(i32 %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = bitcast i64* %5 to i8*
%9 = bitcast i64* %6 to i8*
%10 = bitcast i64* %7 to i8*
%11 = call i32 @__pmp_schedule_next(i32 %0, i64* %5, i64* %6, i64* %7)
%12 = load i64, i64* %5
%13 = trunc i64 %12 to i32
store i32 %13, i32* %1
%14 = load i64, i64* %6
%15 = trunc i64 %14 to i32
store i32 %15, i32* %2
%16 = load i64, i64* %7
%17 = trunc i64 %16 to i32
store i32 %17, i32* %3
ret i32 %11
}