User-level constructor for internal lexer states.
(vl-lexstate-init config) → st
Function:
(defun vl-lexstate-init (config) (declare (xargs :guard (vl-loadconfig-p config))) (let ((__function__ 'vl-lexstate-init)) (declare (ignorable __function__)) (b* (((vl-loadconfig config) config)) (case config.edition (:verilog-2005 (if config.strictp *vl-2005-strict-lexstate* *vl-2005-lexstate*)) (:system-verilog-2012 (if config.strictp *vl-2012-strict-lexstate* *vl-2012-lexstate*)) (otherwise (progn$ (impossible) *vl-2012-lexstate*))))))
Theorem:
(defthm vl-lexstate-p-of-vl-lexstate-init (b* ((st (vl-lexstate-init config))) (vl-lexstate-p st)) :rule-classes :rewrite)