From 60a68a3a7f2ce6c255bbcbdda13ad32fe74adc12 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Tue, 12 Mar 2019 07:27:05 +1030 Subject: [PATCH] graph/flow: new package for (control) flow analysis This is broken out from path to make room for the additional control flow analysis routines that are currently being worked on. --- graph/{path => flow}/control_flow_bench_test.go | 2 +- graph/{path => flow}/control_flow_lt.go | 2 +- graph/{path => flow}/control_flow_slt.go | 2 +- graph/{path => flow}/control_flow_test.go | 2 +- graph/flow/doc.go | 6 ++++++ 5 files changed, 10 insertions(+), 4 deletions(-) rename graph/{path => flow}/control_flow_bench_test.go (99%) rename graph/{path => flow}/control_flow_lt.go (99%) rename graph/{path => flow}/control_flow_slt.go (99%) rename graph/{path => flow}/control_flow_test.go (99%) create mode 100644 graph/flow/doc.go diff --git a/graph/path/control_flow_bench_test.go b/graph/flow/control_flow_bench_test.go similarity index 99% rename from graph/path/control_flow_bench_test.go rename to graph/flow/control_flow_bench_test.go index 72e16dc0..ae0841dc 100644 --- a/graph/path/control_flow_bench_test.go +++ b/graph/flow/control_flow_bench_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package path +package flow import ( "flag" diff --git a/graph/path/control_flow_lt.go b/graph/flow/control_flow_lt.go similarity index 99% rename from graph/path/control_flow_lt.go rename to graph/flow/control_flow_lt.go index 3c42e0c6..cb7ab1f1 100644 --- a/graph/path/control_flow_lt.go +++ b/graph/flow/control_flow_lt.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package path +package flow import "gonum.org/v1/gonum/graph" diff --git a/graph/path/control_flow_slt.go b/graph/flow/control_flow_slt.go similarity index 99% rename from graph/path/control_flow_slt.go rename to graph/flow/control_flow_slt.go index 1cb0e2f0..b05a58ec 100644 --- a/graph/path/control_flow_slt.go +++ b/graph/flow/control_flow_slt.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package path +package flow import "gonum.org/v1/gonum/graph" diff --git a/graph/path/control_flow_test.go b/graph/flow/control_flow_test.go similarity index 99% rename from graph/path/control_flow_test.go rename to graph/flow/control_flow_test.go index 531c2118..a3685ace 100644 --- a/graph/path/control_flow_test.go +++ b/graph/flow/control_flow_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package path +package flow import ( "reflect" diff --git a/graph/flow/doc.go b/graph/flow/doc.go new file mode 100644 index 00000000..2bef0df7 --- /dev/null +++ b/graph/flow/doc.go @@ -0,0 +1,6 @@ +// Copyright ©2019 The Gonum Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package flow provides control flow analysis functions. +package flow // import "gonum.org/v1/gonum/graph/flow"