Skip to content

Commit

Permalink
optimizing imports, polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Sep 3, 2024
1 parent 5a983b3 commit 2e8d8f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions core/shared/src/main/scala/sigma/SigmaDsl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ trait BigInt {
def or(that: BigInt): BigInt
def |(that: BigInt): BigInt = or(that)

/**
* @return a big integer whose value is `this xor that`
*/
def xor(that: BigInt): BigInt

def shiftLeft(bits: Int): BigInt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import debox.cfor
import sigma.VersionContext
import sigma.ast.SCollectionType.{CollectionTypeCode, NestedCollectionTypeCode}
import sigma.ast._
import sigma.serialization.{CoreByteReader, CoreByteWriter, InvalidTypePrefix}
import sigma.util.safeNewArray
import sigma.validation.ValidationRules.{CheckPrimitiveTypeCode, CheckTypeCode}

Expand Down Expand Up @@ -215,7 +214,6 @@ class TypeSerializer {
STypeParam(ident.asInstanceOf[STypeVar])
}
SFunc(tDom, tRange, tpeParams)
// todo: serialize tParams
case _ =>
// todo: 6.0: replace 1008 check with identical behavior but other opcode, to activate
// ReplacedRule(1008 -> new opcode) during 6.0 activation
Expand Down
1 change: 0 additions & 1 deletion data/shared/src/main/scala/sigma/ast/methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.ergoplatform.validation._
import sigma._
import sigma.ast.SCollection.{SBooleanArray, SBoxArray, SByteArray, SByteArray2, SHeaderArray}
import sigma.ast.SMethod.{MethodCallIrBuilder, MethodCostFunc, javaMethodOf}
import sigma.ast.SNumericTypeMethods.BitwiseAndMethod
import sigma.ast.SType.TypeCode
import sigma.ast.syntax.{SValue, ValueOps}
import sigma.data.ExactIntegral.{ByteIsExactIntegral, IntIsExactIntegral, LongIsExactIntegral, ShortIsExactIntegral}
Expand Down
6 changes: 1 addition & 5 deletions data/shared/src/main/scala/sigma/data/ExactNumeric.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
package sigma.data

import debox.cfor
import sigma.Evaluation.stypeToRType
import sigma.{BigInt, Coll, Colls}
import sigma.{Coll, Colls}
import sigma.data.ExactIntegral._
import sigma.data.RType.SomeType

import scala.collection.mutable

/** Numeric operations with overflow checks.
* Raise exception when overflow is detected.
Expand Down

0 comments on commit 2e8d8f4

Please sign in to comment.