(vl-preprocess-debug filename preprocessed st state) → (mv preprocessed state)
Function:
(defun vl-preprocess-debug (filename preprocessed st state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (stringp filename) (vl-echarlist-p preprocessed) (vl-loadstate-p st)))) (let ((__function__ 'vl-preprocess-debug)) (declare (ignorable __function__)) (b* (((vl-loadstate st)) ((vl-loadconfig st.config)) (preprocessed (vl-echarlist-fix preprocessed)) ((unless st.config.debugp) (mv preprocessed state)) ((mv debug-filename state) (time$ (vl-write-preprocessor-debug-file filename preprocessed state) :msg "; ~s0: write preprocessor debug file: ~st sec, ~sa bytes~%" :args (list filename) :mintime st.config.mintime)) ((unless debug-filename) (mv preprocessed state)) ((mv okp contents ?len state) (time$ (vl-read-file debug-filename) :msg "; ~s0: re-read preprocessor debug file: ~st sec, ~sa bytes~%" :args (list filename) :mintime st.config.mintime)) ((unless okp) (cw "Error: reading debug-file failed: ~s0~%" debug-filename) (mv preprocessed state)) ((unless (equal (vl-echarlist->string preprocessed) (vl-echarlist->string contents))) (cw "Error: wrong contents in debug-file: ~s0~%" debug-filename) (mv preprocessed state))) (mv contents state))))
Theorem:
(defthm vl-echarlist-p-of-vl-preprocess-debug.preprocessed (b* (((mv ?preprocessed acl2::?state) (vl-preprocess-debug filename preprocessed st state))) (vl-echarlist-p preprocessed)) :rule-classes :rewrite)
Theorem:
(defthm state-p1-of-vl-preprocess-debug.state (implies (force (state-p1 state)) (b* (((mv ?preprocessed acl2::?state) (vl-preprocess-debug filename preprocessed st state))) (state-p1 state))) :rule-classes :rewrite)