Skip to content

Commit fa64da3

Browse files
committed
Export Reduce1 function.
1 parent 38b758e commit fa64da3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reduce.go

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ func Subst(p Process, vs, xs []Name) error {
5959
return nil
6060
}
6161

62+
// Reduce1 performs a single step of reduction for Process p.
63+
func Reduce1(p Process) (changed bool, err error) {
64+
changed, err = reduceOnce(p)
65+
return changed, errors.Wrap(err, "cannot reduce process")
66+
}
67+
6268
// reduceOnce performs a single step of reduction.
6369
//
6470
// This reduction combines multiple congruence relations

0 commit comments

Comments
 (0)