Sort Options

For optimization and analysis purposes, it is often useful to sort the compiled output of a logic table in a number of different ways. The logic engineer can control how the code is generated by the LogicGem Compiler by using the options in the Sort sub-menu of the Compiler menu. A checkmark in the Sort sub-menu indicates which sort option is in effect during the compilation process. Only one sort option is in effect at a time.
 
NOTE: The Compiler sort options are quite different from the logic table sort functions available with the Toolbar icons, and Table menu options. These options physically sort (move within the table) rules, while the Compiler sort options only affect the generated code. Due to its inherent nature, the Compiler sort option is generally only appropriate for the Nested If/Else structure.
 
Sort Option Description
Yes Before No Yes columns are coded before the No columns
No Before Yes No columns are coded before the Yes columns
Lease Costly First Rules are coded according to their increasing value assigned in the Cost option
Most Frequent First Rules are coded according to their decreasing value assigned in the Frequency option
Cost / Frequency Heuristic Rules are coded according to their decreasing value of combined cost-frequency ratio
No Sort The rules are code as they are listed
 
You may select the desired sort option using the following method: 
 
Click on the Compiler menu function.
 
Click on the Sort sub-menu to display the list of available options.
 
Click on the desired sort option. The Compiler menu disappears after a selection is made. The next time you select the Sort sub-menu, the sort option you selected will have a check mark.