Recognize calls of the
(vl-$random-expr-p x) → *
The
random_function ::= $random[ '(' seed ')' ]
Note that the
Function:
(defun vl-$random-expr-p (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-$random-expr-p)) (declare (ignorable __function__)) (or (vl-0ary-syscall-p "$random" x) (vl-unary-syscall-p "$random" x))))
Theorem:
(defthm vl-expr-kind-when-vl-$random-expr-p (implies (vl-$random-expr-p x) (vl-expr-case x :vl-call x.systemp :otherwise nil)) :rule-classes ((:forward-chaining)))
Theorem:
(defthm vl-$random-expr-p-of-vl-expr-fix-x (equal (vl-$random-expr-p (vl-expr-fix x)) (vl-$random-expr-p x)))
Theorem:
(defthm vl-$random-expr-p-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-$random-expr-p x) (vl-$random-expr-p x-equiv))) :rule-classes :congruence)