(vl-integer-arithclass->exprsign x) → sign
Function:
(defun vl-integer-arithclass->exprsign$inline (x) (declare (xargs :guard (vl-arithclass-p x))) (declare (xargs :guard (vl-integer-arithclass-p x))) (let ((__function__ 'vl-integer-arithclass->exprsign)) (declare (ignorable __function__)) (if (vl-arithclass-equiv x :vl-signed-int-class) :vl-signed :vl-unsigned)))
Theorem:
(defthm vl-exprsign-p-of-vl-integer-arithclass->exprsign (b* ((sign (vl-integer-arithclass->exprsign$inline x))) (vl-exprsign-p sign)) :rule-classes :rewrite)
Theorem:
(defthm vl-integer-arithclass->exprsign$inline-of-vl-arithclass-fix-x (equal (vl-integer-arithclass->exprsign$inline (vl-arithclass-fix x)) (vl-integer-arithclass->exprsign$inline x)))
Theorem:
(defthm vl-integer-arithclass->exprsign$inline-vl-arithclass-equiv-congruence-on-x (implies (vl-arithclass-equiv x x-equiv) (equal (vl-integer-arithclass->exprsign$inline x) (vl-integer-arithclass->exprsign$inline x-equiv))) :rule-classes :congruence)