Parse
(vl-parse-property-declaration &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
property_declaration ::= 'property property_identifier' [ '(' [ property_port_list ] ')' ] ';' { assertion_variable_declaration } property_spec [ ';' ] 'endproperty' [ ':' property_identifier ] property_port_list ::= property_port_item { ',' property_port_item } property_identifier ::= identifier
Function:
(defun vl-parse-property-declaration-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-property-declaration)) (declare (ignorable __function__)) (seq tokstream (:= (vl-match-token :vl-kwd-property)) (name := (vl-match-token :vl-idtoken)) (when (vl-is-token? :vl-lparen) (:= (vl-match)) (when (not (vl-is-token? :vl-rparen)) (ports := (vl-parse-1+-property-port-items))) (:= (vl-match-token :vl-rparen))) (:= (vl-match-token :vl-semi)) (decls := (vl-parse-0+-assertion-variable-declarations)) (spec := (vl-parse-property-spec)) (when (vl-is-token? :vl-semi) (:= (vl-match))) (:= (vl-match-token :vl-kwd-endproperty)) (:= (vl-parse-endblock-name (vl-idtoken->name name) "property/endproperty")) (return (make-vl-property :name (vl-idtoken->name name) :ports ports :decls decls :spec spec :loc (vl-token->loc name))))))
Theorem:
(defthm vl-parse-property-declaration-fails-gracefully (implies (mv-nth 0 (vl-parse-property-declaration)) (not (mv-nth 1 (vl-parse-property-declaration)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-property-declaration (iff (vl-warning-p (mv-nth 0 (vl-parse-property-declaration))) (mv-nth 0 (vl-parse-property-declaration))))
Theorem:
(defthm vl-parse-property-declaration-result (implies (and t) (equal (vl-property-p (mv-nth 1 (vl-parse-property-declaration))) (not (mv-nth 0 (vl-parse-property-declaration))))))
Theorem:
(defthm vl-parse-property-declaration-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-property-declaration))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-property-declaration))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-property-declaration))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))