Skip to content

Commit

Permalink
Delete debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsc2 committed Sep 29, 2023
1 parent 465cb15 commit d34b0f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions pkg/hints/bigint_hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package hints

import (
"errors"
"fmt"
"math/big"

. "github.com/lambdaclass/cairo-vm.go/pkg/hints/hint_utils"
Expand Down Expand Up @@ -171,16 +170,15 @@ func bigintPackDivMod(vm *VirtualMachine, execScopes *ExecutionScopes, idsData I
if err != nil {
return err
}
x1 := x

yUnpacked, err := BigInt3FromVarName("y", idsData, vm)
if err != nil {
return err
}
x1 := x
y := yUnpacked.Pack86()

res, _ := math_utils.DivMod(&x1, &y, &p)
fmt.Println("x", x.Text(10))

execScopes.AssignOrUpdateVariable("res", *res)
execScopes.AssignOrUpdateVariable("value", *res)
Expand Down
7 changes: 0 additions & 7 deletions pkg/hints/bigint_hint_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package hints_test

import (
"fmt"
"math/big"
"testing"

Expand Down Expand Up @@ -235,12 +234,6 @@ func TestBigintPackDivModHint(t *testing.T) {
}
p := pu.(big.Int)

fmt.Println("")
fmt.Println("")
fmt.Println("")
fmt.Println("")
fmt.Println("")
fmt.Println("")
if res.Cmp(expected) != 0 {
t.Errorf("incorrect res expected: %s, got: %s", expected.Text(10), res.Text(10))
}
Expand Down

0 comments on commit d34b0f2

Please sign in to comment.