Determine sizes for a top-level or self-determined expression.
(vl-expr-size lhs-size x ss ctx warnings) → (mv successp warnings new-x)
This function implements the two-phase algorithm described in
expression-sizing. That is, it first determines the maximum
size of any operand in
Theorem:
(defthm return-type-of-vl-expr-size.successp (b* (((mv ?successp ?warnings ?new-x) (vl-expr-size lhs-size x ss ctx warnings))) (booleanp successp)) :rule-classes :type-prescription)
Theorem:
(defthm return-type-of-vl-expr-size.warnings (b* (((mv ?successp ?warnings ?new-x) (vl-expr-size lhs-size x ss ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-expr-size.new-x (b* (((mv ?successp ?warnings ?new-x) (vl-expr-size lhs-size x ss ctx warnings))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-size.successp (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-size x ss ctx warnings))) (booleanp successp)) :rule-classes :type-prescription)
Theorem:
(defthm return-type-of-vl-exprlist-size.warnings (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-size x ss ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-size.new-x (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-size x ss ctx warnings))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-expandsizes.successp (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-expandsizes x finalwidth finaltype ss ctx warnings))) (booleanp successp)) :rule-classes :type-prescription)
Theorem:
(defthm return-type-of-vl-exprlist-expandsizes.warnings (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-expandsizes x finalwidth finaltype ss ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-expandsizes.new-x (b* (((mv ?successp ?warnings ?new-x) (vl-exprlist-expandsizes x finalwidth finaltype ss ctx warnings))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-expr-expandsizes.successp (b* (((mv ?successp ?warnings ?new-x) (vl-expr-expandsizes x finalwidth finaltype ss ctx warnings))) (booleanp successp)) :rule-classes :type-prescription)
Theorem:
(defthm return-type-of-vl-expr-expandsizes.warnings (b* (((mv ?successp ?warnings ?new-x) (vl-expr-expandsizes x finalwidth finaltype ss ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-expr-expandsizes.new-x (b* (((mv ?successp ?warnings ?new-x) (vl-expr-expandsizes x finalwidth finaltype ss ctx warnings))) (vl-expr-p new-x)) :rule-classes :rewrite)