Skip to content
Snippets Groups Projects
Commit cc318189 authored by Régis Blanc's avatar Régis Blanc
Browse files

new testcase

parent cb4d9d00
No related branches found
No related tags found
No related merge requests found
import leon.Utils._
object ScaleWeight {
def sw(weight: Int): (Int, Int, Int, Int) = choose((w4:Int,w3:Int,w2:Int,w1:Int) => (
w1 + 3 * w2 + 9 * w3 + 27 * w4 == weight
&& -1 <= w1 && w1 <= 1
&& -1 <= w2 && w2 <= 1
&& -1 <= w3 && w3 <= 1
&& -1 <= w4 && w4 <= 1
))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment