Simple solver for the searching of area of curvilinear triangle. To describe the task the following format is used:
- In the first line are written the bounds of segment, in which vertices of the triangle should be searched.
- In following lines are written curves, which constrain the triangle, in reverse polish notation. Examples can be found in examples/ directory, samples of generated assembly code also are situated there.
To build:
make
Executables can be found in directory out/ or run with command:
make run
Test can be performed with the following command:
make tests
To build using compiler written in Haskell use:
COMPILER=compiler-haskell make
To build using compiler written in Rust use:
COMPILER=compiler-rust make
Note: for this compiler optimizations are not implemented, so code will be less effective.