Add cpu_arch

This commit is contained in:
Nigel Tao committed 2021-01-15 10:26:55 +11:00
1 parent 6124fda77f
commit 020b8e6903
15 files changed
+353 -77

No files matched your search

+12
View File
@@ -370,6 +370,18 @@ func (q *checker) hasIsErrorFact(id t.ID) bool {
return false
}
func (q *checker) bcheckFuncAssert(n *a.Assert) error {
if n.IsChooseCPUArch() {
b := bounds{zero, one}
cond := n.Condition()
cond.SetMBounds(b)
cond.LHS().AsExpr().SetMBounds(b)
cond.RHS().AsExpr().SetMBounds(b)
return nil
}
return fmt.Errorf("check: function assertions are not supported yet")
}
func (q *checker) bcheckAssert(n *a.Assert) error {
if err := n.DropExprCachedMBounds(); err != nil {
return err