Skip to content

Commit a6896fe

Browse files
Jozef Kovaljozanek
authored andcommitted
Organize imports.
1 parent 5df5ec0 commit a6896fe

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

sc/shared/src/main/scala/sigma/compiler/ir/GraphBuilding.scala

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
package sigma.compiler.ir
22

33
import org.ergoplatform._
4-
import sigma.ast.SType.tT
5-
import sigma.{SigmaException, VersionContext, ast}
64
import sigma.Evaluation.stypeToRType
5+
import sigma.SigmaException
6+
import sigma.VersionContext
7+
import sigma.ast.{Ident, Select, Val}
78
import sigma.ast.SType.tT
8-
import sigma.{SigmaException, VersionContext, ast}
99
import sigma.ast.TypeCodes.LastConstantCode
1010
import sigma.ast.Value.Typed
1111
import sigma.ast.syntax.{SValue, ValueOps}
1212
import sigma.ast._
1313
import sigma.compiler.ir.core.MutableLazy
1414
import sigma.crypto.EcPointType
15-
import sigma.VersionContext
1615
import sigma.data.ExactIntegral.{ByteIsExactIntegral, IntIsExactIntegral, LongIsExactIntegral, ShortIsExactIntegral}
1716
import sigma.data.ExactOrdering.{ByteIsExactOrdering, IntIsExactOrdering, LongIsExactOrdering, ShortIsExactOrdering}
1817
import sigma.data.{CSigmaDslBuilder, ExactIntegral, ExactNumeric, ExactOrdering, Lazy, Nullable}
19-
import sigma.util.Extensions.ByteOps
20-
import sigmastate.interpreter.Interpreter.ScriptEnv
21-
import sigma.ast.{Ident, Select, Val}
2218
import sigma.data.UnsignedBigIntNumericOps.{UnsignedBigIntIsExactIntegral, UnsignedBigIntIsExactOrdering}
2319
import sigma.exceptions.GraphBuildingException
2420
import sigma.serialization.OpCodes
25-
import sigma.{SigmaException, ast}
26-
import sigma.VersionContext
21+
import sigma.util.Extensions.ByteOps
22+
import sigmastate.interpreter.Interpreter.ScriptEnv
2723

2824
import scala.collection.mutable.ArrayBuffer
2925

@@ -514,10 +510,10 @@ trait GraphBuilding extends Base with DefRewriting { IR: IRContext =>
514510
case Ident(n, _) =>
515511
env.getOrElse(n, !!!(s"Variable $n not found in environment $env"))
516512

517-
case ast.Upcast(Constant(value, _), toTpe: SNumericType) =>
513+
case sigma.ast.Upcast(Constant(value, _), toTpe: SNumericType) =>
518514
eval(mkConstant(toTpe.upcast(value.asInstanceOf[AnyVal]), toTpe))
519515

520-
case ast.Downcast(Constant(value, _), toTpe: SNumericType) =>
516+
case sigma.ast.Downcast(Constant(value, _), toTpe: SNumericType) =>
521517
eval(mkConstant(toTpe.downcast(value.asInstanceOf[AnyVal]), toTpe))
522518

523519
// Rule: col.size --> SizeOf(col)
@@ -740,7 +736,7 @@ trait GraphBuilding extends Base with DefRewriting { IR: IRContext =>
740736
val res = sigmaDslBuilder.sha256(inputV)
741737
res
742738

743-
case ast.SizeOf(In(xs)) =>
739+
case SizeOf(In(xs)) =>
744740
xs.elem.asInstanceOf[Any] match {
745741
case _: CollElem[a,_] =>
746742
val xsV = asRep[Coll[a]](xs)
@@ -934,11 +930,11 @@ trait GraphBuilding extends Base with DefRewriting { IR: IRContext =>
934930
val values = colBuilder.fromItems(vs: _*)(eAny)
935931
values
936932

937-
case ast.Upcast(In(input), tpe) =>
933+
case sigma.ast.Upcast(In(input), tpe) =>
938934
val elem = stypeToElem(tpe.asNumType)
939935
upcast(input)(elem)
940936

941-
case ast.Downcast(In(input), tpe) =>
937+
case sigma.ast.Downcast(In(input), tpe) =>
942938
val elem = stypeToElem(tpe.asNumType)
943939
downcast(input)(elem)
944940

0 commit comments

Comments
 (0)