Write out a collection of AIGs into an AIGER file, directly, without going through aignet.
(aiger-write fname &optional latch-aigs out-aigs bad-aigs cnstr-aigs (state 'state)) → (mv pis state)
See also
Function:
(defun aiger-write-fn (fname latch-aigs out-aigs bad-aigs cnstr-aigs state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (stringp fname) (true-listp latch-aigs) (true-listp out-aigs) (true-listp bad-aigs) (true-listp cnstr-aigs)))) (let ((__function__ 'aiger-write)) (declare (ignorable __function__)) (b* (((mv channel state) (open-output-channel! fname :byte state)) ((unless channel) (ec-call (aiger-write-binary latch-aigs out-aigs bad-aigs cnstr-aigs channel state))) ((mv pis state) (aiger-write-binary latch-aigs out-aigs bad-aigs cnstr-aigs channel state)) (state (close-output-channel channel state))) (mv pis state))))