Skip to content

Commit

Permalink
[ compat ] adjust to upstream changes (#69)
Browse files Browse the repository at this point in the history
* [ compat ] adjust to upstream changes

* [ pack ] back to using main branches
  • Loading branch information
stefan-hoeck authored Dec 20, 2024
1 parent 7965b0f commit 56a21a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Chem/Rings.idr
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ parameters (ps : MArray k (Maybe $ PreRing k))
addRing x = mod1 rs (addFused False x)

findRings : (v : Fin k) -> (curr, prev : PreRing k) -> F1' [ps,rs]

findRings' : List (Fin k) -> (v : Fin k) -> (next, curr, prev : PreRing k) -> F1' [ps,rs]

findRings v curr prev t =
Expand All @@ -103,7 +103,7 @@ parameters (ps : MArray k (Maybe $ PreRing k))
in findRings' xs v next curr prev t
Just pr # t =>
if inPreRing x prev
then
then
let _ # t := addRing (merge next pr) t
in findRings' xs v next curr prev t
else findRings' xs v next curr prev t
Expand All @@ -119,6 +119,6 @@ export
rings : {k : _} -> (g : IGraph k e n) -> List (Bool, Ring k)
rings g =
run1 $ \t =>
let A rs t := ref1 (the (List (Bool, Ring k)) []) t
A ps t := newMArray k (the (Maybe $ PreRing k) Nothing) t
let rs # t := ref1 (the (List (Bool, Ring k)) []) t
ps # t := newMArray k (the (Maybe $ PreRing k) Nothing) t
in findAll ps rs g (allFinsFast k) t

0 comments on commit 56a21a3

Please sign in to comment.