PA1 2025 - NTU-ALComLab/LSV-PA GitHub Wiki
Tips
-
We already created an external package
ext-lsv
and an example commandlsv_print_node
under the directorysrc/ext-lsv
. Feel free to start your programming assignment by modifying this command or creating a new command in the function init(). -
The function
Abc_NtkForEachObj()
iterates through all the objects (from the smallest ID to the largest ID). After "strash", the nodes in AIG are ordered as follows:
- constant zero node
- primary input nodes
- primary output nodes
- internal AND nodes (sorted in topological order)
- Using STL containers (specifically vector and set) in C++ will make things a lot easier.