<commit_before>#ifndef _OSECPU_H_
#define _OSECPU_H_

#include <inttypes.h>

#define ERROR_INVALID_INSTRUCTION	1
#define ERROR_INVALID_ARGUMENT		2
#define ERROR_DIVISION_BY_ZERO		3
#define ERROR_INVALID_B32_CODE		4
#define ERROR_UNEXPECTED_EOC		5

#define IS_VALID_REGISTER_ID(regid)((regid) >= 0 || (regid) <= 0x3f)
#define IS_VALID_PREGISTER_ID(regid)((regid) >= 0 || (regid) <= 0x3f)
#define IS_VALID_DREGISTER_ID(regid)((regid) >= 0 || (regid) <= 4)

enum InstructionId
{
	NOP		= 0x00,
	LB		= 0x01,
	LIMM	= 0x02,
	PLIMM	= 0x03,
	CND		= 0x04,
	LMEM	= 0x08,
	SMEM	= 0x09,
	PADD	= 0x0e,
	OR		= 0x10,
	XOR		= 0x11,
	AND		= 0x12,
	SBX		= 0x13,
	ADD		= 0x14,
	SUB		= 0x15,
	MUL		= 0x16,
	SHL		= 0x18,
	SAR		= 0x19,
	DIV		= 0x1a,
	MOD		= 0x1b,
	PCP		= 0x1e,
	CMPE	= 0x20,
	CMPNE	= 0x21,
	CMPL	= 0x22,
	CMPGE	= 0x23,
	CMPLE	= 0x24,
	CMPG	= 0x25,
	TSTZ	= 0x26,<commit_msg>fix IS_VALID_{,P,D}REGISTER_ID macro<commit_after>#ifndef _OSECPU_H_
#define _OSECPU_H_

#include <inttypes.h>

#define ERROR_INVALID_INSTRUCTION	1
#define ERROR_INVALID_ARGUMENT		2
#define ERROR_DIVISION_BY_ZERO		3
#define ERROR_INVALID_B32_CODE		4
#define ERROR_UNEXPECTED_EOC		5

#define IS_VALID_REGISTER_ID(regid) ((regid) >= 0 && (regid) <= 0x3f)
#define IS_VALID_PREGISTER_ID(regid) ((regid) >= 0 && (regid) <= 0x3f)
#define IS_VALID_DREGISTER_ID(regid) ((regid) >= 0 && (regid) <= 4)

enum InstructionId
{
	NOP		= 0x00,
	LB		= 0x01,
	LIMM	= 0x02,
	PLIMM	= 0x03,
	CND		= 0x04,
	LMEM	= 0x08,
	SMEM	= 0x09,
	PADD	= 0x0e,
	OR		= 0x10,
	XOR		= 0x11,
	AND		= 0x12,
	SBX		= 0x13,
	ADD		= 0x14,
	SUB		= 0x15,
	MUL		= 0x16,
	SHL		= 0x18,
	SAR		= 0x19,
	DIV		= 0x1a,
	MOD		= 0x1b,
	PCP		= 0x1e,
	CMPE	= 0x20,
	CMPNE	= 0x21,
	CMPL	= 0x22,
	CMPGE	= 0x23,
	CMPLE	= 0x24,
	CMPG	= 0x25,
	TSTZ	= 0x26,
{'fraction_non_alphanumeric': 0.1318181818181818, 'fraction_numerical': 0.10454545454545454, 'mean_word_length': 3.837912087912088, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3759736', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1004, 'n_words': 188}