#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*/ internalCheckFail(char *, char *, int);
int /*<<< orphan*/ putLexCompacted(int, char **);
void putLexPosition(int file, int line, int column, char **writePointer) {
  {
    if (!(file >= 0 && file < 50000))
      internalCheckFail("file>=0 && file<50000",
                        "/scratch/repos/new/home/jordi_armengol_estape/"
                        "c-scraper/outputs/2022-01-22/02-19-57/repos/thoni56/"
                        "c-xrefactory/refs/heads/main/src/lexembuffer.c",
                        133);
  };
  putLexCompacted(file, writePointer);
  putLexCompacted(line, writePointer);
  putLexCompacted(column, writePointer);
}


x86 assembly (clang, -O0):
<putLexPosition>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     114c <putLexPosition+0x2c>
cmpl   $0xc350,-0x4(%rbp)
jl     1164 <putLexPosition+0x44>
lea    0xead(%rip),%rdi
lea    0xebc(%rip),%rsi
mov    $0x85,%edx
call   1040 <internalCheckFail@plt>
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <putLexCompacted@plt>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <putLexCompacted@plt>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1030 <putLexCompacted@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putLexPosition>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%rbx
mov    %edx,%r14d
mov    %esi,%r15d
mov    %edi,%ebp
cmp    $0xc350,%edi
jb     1152 <putLexPosition+0x32>
lea    0xebf(%rip),%rdi
lea    0xece(%rip),%rsi
mov    $0x85,%edx
call   1040 <internalCheckFail@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <putLexCompacted@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
call   1030 <putLexCompacted@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putLexCompacted@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"file>=0 && file<50000\00"
@.str.1 = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/thoni56/c-xrefactory/refs/heads/main/src/lexembuffer.c\00"
define void @putLexPosition(i32 %0, i32 %1, i32 %2, i8** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8**
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8** %3, i8*** %8
%9 = load i32, i32* %5
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load i32, i32* %5
%13 = icmp slt i32 %12, 50000
br i1 %13, label %16, label %14
14: ; preds = %11, %4
%15 = call i32 @internalCheckFail(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.1, i64 0, i64 0), i32 133)
br label %16
16: ; preds = %14, %11
%17 = load i32, i32* %5
%18 = load i8**, i8*** %8
%19 = call i32 @putLexCompacted(i32 %17, i8** %18)
%20 = load i32, i32* %6
%21 = load i8**, i8*** %8
%22 = call i32 @putLexCompacted(i32 %20, i8** %21)
%23 = load i32, i32* %7
%24 = load i8**, i8*** %8
%25 = call i32 @putLexCompacted(i32 %23, i8** %24)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"file>=0 && file<50000\00"
@.str.1 = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/thoni56/c-xrefactory/refs/heads/main/src/lexembuffer.c\00"
define void @putLexPosition(i32 %0, i32 %1, i32 %2, i8** %3) {
%5 = icmp ult i32 %0, 50000
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = tail call i32 @internalCheckFail(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.1, i64 0, i64 0), i32 133)
br label %8
8: ; preds = %4, %6
%9 = tail call i32 @putLexCompacted(i32 %0, i8** %3)
%10 = tail call i32 @putLexCompacted(i32 %1, i8** %3)
%11 = tail call i32 @putLexCompacted(i32 %2, i8** %3)
ret void
}