Is there a tool for verifying that a statement lik...
# getting-started
s
Is there a tool for verifying that a statement like
day == 28 && leapYear || day == 29 && !leapYear
is equivalent to
day == if(leapYear) 28 else 29
?
a
You can use a SMT solver (Z3 is one of the best) to perform such kind of reasoning
a
Perhaps property based testing could help https://kotest.io/docs/proptest/property-based-testing.html