(matchresult-in-bounds x) → *
Function:
(defun matchresult-in-bounds (x) (declare (xargs :guard (matchresult-p x))) (let ((__function__ 'matchresult-in-bounds)) (declare (ignorable __function__)) (b* (((matchresult x))) (and (mbe :logic (<= (+ x.loc x.len) (strlen x.str)) :exec (if x.loc (<= (+ x.loc x.len) (strlen x.str)) (<= x.len (strlen x.str)))) (backref-alist-in-bounds x.backrefs x.str)))))
Theorem:
(defthm matchresult-in-bounds-of-matchresult-fix-x (equal (matchresult-in-bounds (matchresult-fix x)) (matchresult-in-bounds x)))
Theorem:
(defthm matchresult-in-bounds-matchresult-equiv-congruence-on-x (implies (matchresult-equiv x x-equiv) (equal (matchresult-in-bounds x) (matchresult-in-bounds x-equiv))) :rule-classes :congruence)