diff --git a/03-analysis.html b/03-analysis.html index 365cbac..131242e 100644 --- a/03-analysis.html +++ b/03-analysis.html @@ -205,9 +205,9 @@
(let expr1 (Add (Var "y") (Add (Num two) (Var "x"))))
(let expr2 (Add (Add (Add (Var "x") (Var "y")) (Num one)) (Num two)))
-(fail (check (leq e1 e2)))
+(fail (check (leq expr1 expr2)))
(run-schedule (saturate (run)))
-(check (leq e1 e2)) ; should pass
+(check (leq expr1 expr2)) ; should pass
A useful special case of the leq analysis is if an expression is upper bounded or lower bounded by certain numbers, i.e., interval analysis:
(function upper-bound (Expr) BigRat :merge (min old new))
@@ -334,4 +334,4 @@ # E-class analysis
Generated from 03-analysis.egg | The egglog project