| Crates.io | infmachine_examples |
| lib.rs | infmachine_examples |
| version | 0.1.0 |
| created_at | 2025-05-31 14:19:44.757884+00 |
| updated_at | 2025-05-31 14:19:44.757884+00 |
| description | Examples for the Infinite Machine. |
| homepage | |
| repository | https://github.com/matszpk/infmachine_examples |
| max_upload_size | |
| id | 1696394 |
| size | 251,707 |
There are examples for the Infinite Machine. It provides simple programs that generates machines and data that machines.
Program prefix_op generates machine that make prefix operation. To generate machine enter:
prefix_op machine OP CELL_LEN_BITS DATA_PART_LEN PROC_NUM [MAX_PROC_NUM_BITS]
Arguments are:
OP - operation add for prefix_sum, mul1 for prefix_product, and, or,
xor, min and max.File of machine will be printed to standard output in TOML file format.
To generate data and expected output data run:
prefix_op data_and_exp OP CELL_LEN_BITS DATA_PART_LEN PROC_NUM MAX_VALUE DATA_PATH EXP_PATH
Program generates machine that make simple incrementation of values. To generate machine enter:
simple_inc CELL_LEN_BITS PROC_NUM_BITS [REAL_PROC_NUM_BITS]
File of machine will be printed to standard output in TOML file format.
See to sources to find out how to use that test.
Program that tests utils module that simplify some operations and provides some simple boilerplate routines. See to source to find out about how to run that program.
This module provides some simple routines to manage data.
Mainly, this module provides routine to manage stage of calculations. Machine program is built from stages that can do some operations defined by user.
See to sources of prefix_op and utils_test to find out about how to use that module. See to sources to find out about that module.