mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Add cpu_arch
This commit is contained in:
1 parent
6124fda77f
commit
020b8e6903
15 files changed
+353
-77
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user