Convert a vl-genblock into a vl-genblob.
(vl-genblock->genblob x) → blob
Function:
(defun vl-genblock->genblob (x) (declare (xargs :guard (vl-genblock-p x))) (let ((__function__ 'vl-genblock->genblob)) (declare (ignorable __function__)) (b* (((vl-genblock x))) (vl-sort-genelements x.elems :scopetype :vl-genblock :id x.name))))
Theorem:
(defthm vl-genblob-p-of-vl-genblock->genblob (b* ((blob (vl-genblock->genblob x))) (vl-genblob-p blob)) :rule-classes :rewrite)
Theorem:
(defthm vl-genblock->genblob-of-vl-genblock-fix-x (equal (vl-genblock->genblob (vl-genblock-fix x)) (vl-genblock->genblob x)))
Theorem:
(defthm vl-genblock->genblob-vl-genblock-equiv-congruence-on-x (implies (vl-genblock-equiv x x-equiv) (equal (vl-genblock->genblob x) (vl-genblock->genblob x-equiv))) :rule-classes :congruence)