[Question][Hw4] How the filter works? #298
Replies: 4 comments
-
We should consider all possibilities when we want soundness. |
Beta Was this translation helpful? Give feedback.
-
Oh, it seems that I confused soundess with completness. |
Beta Was this translation helpful? Give feedback.
-
Yes. the resulting interval of filter <= [1, 10] [1, 10] is still [1,10]. Thus, no refinement was made here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your replies! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Name: Doam Lee
I've read the README.md of hw4, and couldn't understand how the filter works.
It says "
filter pred v1 v2
will return a sound refinement of abstract numerical valuev1
with respect to predicatepred
and abstract numerical valuev2
".And for example, it argues that
filter < [1, 10] [3, 5]
will soundly refine the left interval to[1, 4]
, butfilter <= [1, 10] [1, 10]
will return[1, 10]
because no refinement is possible.But since it has to be sound, the refined intervals shouldn't be
[1, 2]
and[1]
?I'm not sure how it works.
Beta Was this translation helpful? Give feedback.
All reactions