# Logic Mapper Implementation Assignment

## Requirements
  Implement a logic mapping tool that maps BLIF format logic networks to k-input lookup tables (k-LUTs). 
  You must compile an executable named `map` in this directory.

## Code Organization
  - Please put your code in the `src` directory
  - Complete the makefile in the root directory
  - We will compile your program using the `make` command in the root directory
  
## Reference Implementation
  - The `map` binary in the current directory is provided as a reference implementation
  - You can use it to understand the expected behavior of your program

## Compilation
  make          # Compiles and generates the 'map' executable
  make clean    # Removes compiled files

## Usage
  ./map -k <k_input_sizes> <input_file_path> <output_file_path>
  Example: ./map -k 4 ./public_cases/10aoi_9symml.blif ./output/10aoi_9symml.blif

## Testing and Evaluation
  - You can use `./test.sh` to test your implementation
  - The script runs your program, generates output files in `output/`, and checks equivalence, levels, and number of LUTs using ABC
  - Public test cases are available in `public_cases/` for debugging
  - Hidden test cases will be used for final grading
  - The k values will range from 2 to 10
  - We will use the product of level and LUT count as the cost function: cost = level * |LUTs|. The lowest cost for each test case will receive 100 points, and each student's score will be calculated as Score = cost_min / cost_yours * 100 for each test case.

## Submission
  - Use the provided tar.sh script to create your submission file:
      ./tar.sh <student_ID>
      Example: ./tar.sh 112062873
  - This will generate a file named <student_ID>.tar.gz
  - Upload this file to the eeclass platform