Implemented the cut unnecessary or transformation in the cut-unnecessary-or.metta file and added tests to test it in the tests director, cut-unnecessary-or-test.metta.
Motivation and Context
It is one of the transformations that takes place during Reduce to Elegance. It's purpose is to remove redundant OR (or nodes with a single child).
How Has This Been Tested?
Added only two files, the orCut implementation and a test file to test that function in the tests directory. No other changes were made to existing files.
The test file for the orCut function passes all tests.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
Description
Implemented the cut unnecessary or transformation in the
cut-unnecessary-or.metta
file and added tests to test it in the tests director,cut-unnecessary-or-test.metta
.Motivation and Context
It is one of the transformations that takes place during Reduce to Elegance. It's purpose is to remove redundant OR (or nodes with a single child).
How Has This Been Tested?
Added only two files, the orCut implementation and a test file to test that function in the tests directory. No other changes were made to existing files. The test file for the orCut function passes all tests.
Types of changes
Checklist: