Skip to content

Commit

Permalink
bounded by &ub
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Apr 23, 2024
1 parent 8f79eff commit f878ba5
Show file tree
Hide file tree
Showing 2 changed files with 282 additions and 282 deletions.
4 changes: 2 additions & 2 deletions src/Conjure/Process/Streamlining.hs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ matrixByRowBucket innerStreamliner x = do
concatForM [0..9] $ \ (bucketInt :: Integer) -> let bucket = fromInt bucketInt in
forM innerConstraints $ \ (innerConstraint, grps) ->
attachGroup (("MatrixByRowBucket-" ++ show bucketInt) : grps) [essence|
forAll &pat : int(&lb + &bucket * &bucketSize .. &lb + (&bucket+1) * &bucketSize) . &innerConstraint
forAll &pat : int(&lb + &bucket * &bucketSize .. min([&ub, &lb + (&bucket+1) * &bucketSize])) . &innerConstraint
|]
_ -> noStreamliner

Expand Down Expand Up @@ -413,7 +413,7 @@ matrixByColBucket innerStreamliner x = do
forM innerConstraints $ \ (innerConstraint, grps) ->
attachGroup (("MatrixByColBucket-" ++ show bucketInt) : grps) [essence|
forAll &patO : &outerIndex .
forAll &pat : int(&lb + &bucket * &bucketSize .. &lb + (&bucket+1) * &bucketSize) .
forAll &pat : int(&lb + &bucket * &bucketSize .. min([&ub, &lb + (&bucket+1) * &bucketSize])) .
&innerConstraint
|]
_ -> noStreamliner
Expand Down
Loading

0 comments on commit f878ba5

Please sign in to comment.