SAWCore maxNat
has the wrong definition
#1502
Labels
subsystem: saw-core
Issues related to the saw-core representation or the saw-core subsystem
saw-script/saw-core/prelude/Prelude.sawcore
Lines 860 to 864 in 7d8bf6b
This defines the incorrect function. The final case should actually be
(Succ sub_xy)
. The naming makes me suspect this is a copy-paste error from the prior definition ofsubNat
. We mostly haven't noticed this problem becausemaxNat
is overridden in the simulators with a correct definition. However, for Coq extraction, we are directly translating this recursive definition and computing the wrong answers.The text was updated successfully, but these errors were encountered: