Created
May 23, 2015 04:55
-
-
Save beala/9f89fbbe5f5134ceedcb to your computer and use it in GitHub Desktop.
smt scheduling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.SBV | |
sched :: SInteger -> SInteger -> SInteger -> SInteger -> SInteger -> SInteger -> SBool | |
sched t_11 t_12 t_21 t_22 t_31 t_32 = (t_11 .>= 0) &&& (t_12 .>= t_11 + 2) &&& (t_12 + 1 .<= 8) &&& | |
(t_21 .>= 0) &&& (t_22 .>= t_21 + 3) &&& (t_22 + 1 .<= 8) &&& | |
(t_31 .>= 0) &&& (t_32 .>= t_31 + 2) &&& (t_32 + 3 .<= 8) &&& | |
((t_11 .>= t_21 + 3) ||| (t_21 .>= t_11 + 2)) &&& | |
((t_11 .>= t_31 + 2) ||| (t_31 .>= t_11 + 2)) &&& | |
((t_21 .>= t_31 + 2) ||| (t_31 .>= t_21 + 3)) &&& | |
((t_12 .>= t_22 + 1) ||| (t_22 .>= t_12 + 1)) &&& | |
((t_12 .>= t_32 + 3) ||| (t_32 .>= t_12 + 1)) &&& | |
((t_22 .>= t_32 + 3) ||| (t_22 .>= t_22 + 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment