Check if a translation unit has formal dynamic semantics.
(transunit-formalp tunit) → yes/no
All its external declarations must be supported.
Function:
(defun transunit-formalp (tunit) (declare (xargs :guard (transunitp tunit))) (declare (xargs :guard (transunit-unambp tunit))) (let ((__function__ 'transunit-formalp)) (declare (ignorable __function__)) (extdecl-list-formalp (transunit->decls tunit))))
Theorem:
(defthm booleanp-of-transunit-formalp (b* ((yes/no (transunit-formalp tunit))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm transunit-formalp-of-transunit-fix-tunit (equal (transunit-formalp (transunit-fix tunit)) (transunit-formalp tunit)))
Theorem:
(defthm transunit-formalp-transunit-equiv-congruence-on-tunit (implies (transunit-equiv tunit tunit-equiv) (equal (transunit-formalp tunit) (transunit-formalp tunit-equiv))) :rule-classes :congruence)