MCPcopy Create free account

hub / github.com/NethermindEth/cairo-vm-go / functions

Functions1,195 in github.com/NethermindEth/cairo-vm-go

↓ 2 callersFunctionnewMemEnterScopeHint
MemEnterScope hint enters a new scope for the memory copy/set operation with a specified value `newMemEnterScopeHint` takes 2 operanders as arguments
pkg/hintrunner/zero/zerohint_others.go:139
↓ 2 callersFunctionnewPackedSha256Hint
PackedSha256 hint computes the sha2 compress operation on some input and writes the new state at `output` address `newPackedSha256Hint` takes 2 opera
pkg/hintrunner/zero/zerohint_sha256.go:18
↓ 2 callersFunctionnewSha256ChunkHint
Sha256Chunk hint computes the sha2 compress operation on some input using a given state and writes the new state at `output` address `newSha256ChunkH
pkg/hintrunner/zero/zerohint_sha256.go:104
↓ 2 callersFunctionnewSplitXXHint
SplitXX computes the square root of a 256-bit integer modulo the prime 2^255 - 19, ensures the result is even, and splits it into two 128-bit integers
pkg/hintrunner/zero/zerohint_uint256.go:707
↓ 2 callersFunctionnewUsortEnterScopeHint
UsortEnterScope hint enters a new scope with `__usort_max_size` value `newUsortEnterScopeHint` doesn't take any operander as argument `newUsortEnter
pkg/hintrunner/zero/zerohint_usort.go:21
↓ 2 callersFunctionnewUsortVerifyHint
UsortVerify hint prepares for verifying the presence of duplicates of a specific value in the sorted output (array of fields) `newUsortVerifyHint` ta
pkg/hintrunner/zero/zerohint_usort.go:232
↓ 2 callersFunctionnewVerifyECDSASignatureHint
VerifyECDSASignature hint writes an ECDSA signature to a given address `newVerifyECDSASignatureHint` takes 3 operanders as arguments - `ecdsaPtr` is
pkg/hintrunner/zero/zerohint_signature.go:181
↓ 2 callersMethodonCurve
returns true if a point `p` belongs to the `ec` curve ruled by the params `alpha` and `beta`. In other words, true if y^2 = x^3 + alpha * x + beta
pkg/vm/builtins/ecop.go:129
↓ 2 callersMethodopcodeAssertions
( instruction *asmb.Instruction, dstAddr *mem.MemoryAddress, op0Addr *mem.MemoryAddress, res *mem.MemoryVa
pkg/vm/vm.go:401
↓ 2 callersMethodpushCommentLine
(format string, args ...any)
pkg/disasm/disassembler.go:136
↓ 2 callersMethodreadInputs
Reads the inputs to the builtin (p, p_values, values_ptr, offsets_ptr, n) from the memory at address = addr. Returns an instance of ModBuiltinInputs a
pkg/vm/builtins/modulo.go:161
↓ 2 callersFunctionrunAndTestCairoZeroFile
(t *testing.T, path string, name string, benchmarkMap map[string][]int, benchmark bool, errorExpected bool)
integration_tests/cairo0_test.go:17
↓ 2 callersFunctionrunVM
( program runner.Program, proofmode bool, maxsteps uint64, entrypointOffset uint64, collectTrace bool, t
cmd/cli/main.go:245
↓ 2 callersFunctionrunVmCairo1
given a path to a compiled cairo1 file, execute it using our vm
integration_tests/cairo1_test.go:319
↓ 2 callersFunctionsign
(n *big.Int)
pkg/utils/math.go:199
↓ 2 callersFunctionsignedOffset
(neg bool, value int)
pkg/assembler/grammar.go:184
↓ 2 callersMethodupdateFp
(instruction *asmb.Instruction, dstAddr *mem.MemoryAddress)
pkg/vm/vm.go:524
↓ 2 callersFunctionupdateMemoryWithValues
(memory *mem.Memory, valuesToWrite []memoryWrite)
pkg/vm/vm_test.go:1374
↓ 2 callersFunctionvarValueNotInScope
(varName string)
pkg/hintrunner/zero/zerohint_utils_test.go:162
↓ 1 callersMethodAddReference
(name string, v hinter.Reference)
pkg/hintrunner/zero/hint_reference_resolver.go:19
↓ 1 callersMethodAddRelocationRule
(segmentIndex int, addr MemoryAddress)
pkg/vm/memory/memory.go:464
↓ 1 callersMethodAddressPc
()
pkg/vm/vm.go:52
↓ 1 callersMethodAllocateEmptyTemporarySegment
Allocates an empty temporary segment and returns its index
pkg/vm/memory/memory.go:258
↓ 1 callersFunctionAsIntBig
(value *big.Int)
pkg/hintrunner/utils/math_utils.go:46
↓ 1 callersFunctionAssembleProgram
(cairoProgram *starknet.StarknetProgram, userArgs []starknet.CairoFuncArgs, availableGas uint64, proofmode boo
pkg/runner/runner.go:99
↓ 1 callersMethodBuildMemory
BuildMemory relocates the memory and returns it
pkg/runner/runner.go:567
↓ 1 callersMethodBuildTrace
BuildTrace relocates the trace and returns it
pkg/runner/runner.go:572
↓ 1 callersFunctionBuiltinTypeFromName
(name string)
pkg/vm/builtins/builtin_runner.go:62
↓ 1 callersMethodBuiltinsFinalStackFromStackPointerDict
(builtinNameToStackPointer map[builtins.BuiltinType]uint64)
pkg/vm/vm.go:683
↓ 1 callersFunctionCheckOnlyArrayFeltInputAndReturntValue
(mainFunc starknet.EntryPointByFunction)
pkg/runner/runner.go:918
↓ 1 callersMethodCheckWrite
(segment *Segment, offset uint64, value *MemoryValue)
pkg/vm/memory/memory.go:12
↓ 1 callersFunctionConvertToByteData
ConvertToByteData converts a slice of uint64 to a slice of byte.
pkg/utils/keccak.go:35
↓ 1 callersMethodDisassemble
()
pkg/disasm/disassembler.go:26
↓ 1 callersMethodExecute
(vm *VM.VirtualMachine, _ *hinter.HintRunnerContext)
pkg/hintrunner/core/hint.go:831
↓ 1 callersMethodExecute
(vm *VM.VirtualMachine, ctx *hinter.HintRunnerContext)
pkg/hintrunner/core/hint.go:1632
↓ 1 callersMethodExpression
()
pkg/assembler/grammar.go:93
↓ 1 callersFunctionFeltMod
FeltMod implements `a % b` operation.
pkg/utils/math.go:77
↓ 1 callersFunctionFillMemory
Fills the memory with inputs to the builtin instances based on the inputs to the first instance, pads the offsets table to fit the number of operation
pkg/vm/builtins/modulo.go:486
↓ 1 callersMethodFinalizeBuiltins
()
pkg/runner/runner.go:901
↓ 1 callersMethodGet
(vm *VM.VirtualMachine)
pkg/hintrunner/hinter/operand.go:32
↓ 1 callersMethodGet
(vm *VM.VirtualMachine)
pkg/hintrunner/hinter/operand.go:62
↓ 1 callersMethodGet
(vm *VM.VirtualMachine)
pkg/hintrunner/hinter/operand.go:91
↓ 1 callersMethodGet
(vm *VM.VirtualMachine)
pkg/hintrunner/hinter/operand.go:117
↓ 1 callersMethodGetAirMemorySegmentsAddresses
()
pkg/runner/runner.go:946
↓ 1 callersMethodGetAirPrivateInput
(tracePath, memoryPath string)
pkg/runner/air_input.go:69
↓ 1 callersMethodGetAirPublicInput
(relocatedMemory []*fp.Element, publicMemoryAddresses []vm.PublicMemoryAddress)
pkg/runner/air_input.go:9
↓ 1 callersFunctionGetBuiltinAllocatedInstances
GetBuiltinAllocatedInstances calculates the number of instances of given builtin for current step and builtin ratio. Ratio parameter defines the ratio
pkg/vm/builtins/builtin_runner.go:102
↓ 1 callersFunctionGetCairoPrime
()
pkg/hintrunner/utils/math_utils.go:112
↓ 1 callersFunctionGetEntryCodeInstructions
Function derived from the cairo-lang-runner crate. https://github.com/starkware-libs/cairo/blob/40a7b60687682238f7f71ef7c59c986cc5733915/crates/cairo-
pkg/runner/runner.go:634
↓ 1 callersFunctionGetFooterInstructions
()
pkg/runner/runner.go:895
↓ 1 callersFunctionGetHintByName
(hint starknet.Hint)
pkg/hintrunner/core/cairo_hintparser.go:91
↓ 1 callersFunctionGetHintFromCode
(program *zero.ZeroProgram, rawHint zero.Hint)
pkg/hintrunner/zero/zerohint.go:51
↓ 1 callersFunctionGetLayout
(layout string)
pkg/vm/builtins/layouts.go:129
↓ 1 callersMethodGetOutputPublicMemory
(outputSegment memory.Segment)
pkg/vm/builtins/output.go:53
↓ 1 callersMethodGetPublicMemoryAddresses
(segmentOffsets []uint64)
pkg/runner/runner.go:964
↓ 1 callersMethodGetRangeCheckUsage
GetRangeCheckUsage returns the min and max values used in the range check segment. Since each range check instance consists of 16-bit parts, the min a
pkg/vm/builtins/range_check.go:76
↓ 1 callersMethodGetStopPointer
()
pkg/vm/memory/memory.go:16
↓ 1 callersFunctionGetUint256ExpandAsFelts
(vm *VM.VirtualMachine, ref hinter.Reference)
pkg/hintrunner/zero/zerohint_utils.go:51
↓ 1 callersFunctionGetUint512AsFelts
(vm *VM.VirtualMachine, ref hinter.Reference)
pkg/hintrunner/zero/zerohint_utils.go:81
↓ 1 callersMethodInferValue
(segment *Segment, offset uint64)
pkg/vm/memory/memory.go:13
↓ 1 callersMethodInitNumber
Returns the initialization number when the dictionary was created
pkg/hintrunner/hinter/dict.go:38
↓ 1 callersFunctionInitializeDefaultContext
()
pkg/hintrunner/hinter/hinter.go:26
↓ 1 callersFunctionInitializeDictionaryManager
(ctx *HintRunnerContext, useTemporarySegments bool)
pkg/hintrunner/hinter/dict.go:50
↓ 1 callersMethodInsert
It adds another index to the list of indices associated to the given key If the key is not present, it creates a new entry
pkg/hintrunner/hinter/dict.go:138
↓ 1 callersFunctionIsQuadResidue
(x *fp.Element)
pkg/hintrunner/utils/math_utils.go:69
↓ 1 callersFunctionKeccakAddU256BE
(keccakInput []uint64, value *uint256.Int)
pkg/utils/keccak.go:167
↓ 1 callersFunctionKeccakU256sBEInputs
(inputs []uint256.Int)
pkg/utils/keccak.go:182
↓ 1 callersFunctionKeccakU256sLEInputs
1 initializes an array (u64) 2 converting input into array 3 adds padding to the array 4 put that array into keccak hashing
pkg/utils/keccak.go:143
↓ 1 callersMethodKnownValue
Given a segment index and offset returns true if the value at that address is known
pkg/vm/memory/memory.go:397
↓ 1 callersMethodKnownValueAtAddress
Given an address returns true if it contains a known value
pkg/vm/memory/memory.go:415
↓ 1 callersFunctionLoadCairoProgram
(cairoProgram *sn.StarknetProgram)
pkg/runner/program.go:71
↓ 1 callersMethodMarshalJSON
()
pkg/parsers/starknet/starknet.go:77
↓ 1 callersFunctionNewReferenceResolver
()
pkg/hintrunner/zero/hint_reference_resolver.go:14
↓ 1 callersMethodPopIndex
It pops out smallest index associated with the smallest key
pkg/hintrunner/hinter/dict.go:192
↓ 1 callersMethodPopKey
It pops out the smallest key in the key list
pkg/hintrunner/hinter/dict.go:156
↓ 1 callersFunctionPoseidonPerm
(x, y, z *fp.Element)
pkg/vm/builtins/poseidon_math.go:59
↓ 1 callersFunctionRecoverY
(x, beta, fieldPrime *big.Int)
pkg/hintrunner/utils/math_utils.go:104
↓ 1 callersMethodRelocateAllDictionaries
Relocates all dictionaries into a single segment if proofmode is enabled In LambdaClass VM there is add_relocation_rule() used, which is used only to
pkg/hintrunner/hinter/dict.go:106
↓ 1 callersMethodRelocateTemporarySegments
()
pkg/runner/runner.go:609
↓ 1 callersMethodResolve
(vm *VM.VirtualMachine)
pkg/hintrunner/hinter/operand.go:95
↓ 1 callersMethodResolveAsBigInt5
(valAddr MemoryAddress)
pkg/vm/memory/memory_value.go:412
↓ 1 callersFunctionRunBenchmarks
(pkgSubstr, testSubstr string)
scripts/benchmark.go:15
↓ 1 callersMethodRunEntryPoint
RunEntryPoint is like Run, but it executes the program starting from the given PC offset. This PC offset is expected to be a start from some function
pkg/runner/runner.go:161
↓ 1 callersMethodRunHint
(vm *VirtualMachine)
pkg/vm/vm.go:25
↓ 1 callersMethodRunInstruction
(instruction *asmb.Instruction)
pkg/vm/vm.go:176
↓ 1 callersFunctionSIGMA
()
pkg/utils/blake.go:18
↓ 1 callersFunctionSafeDivUint64
(x, y uint64)
pkg/utils/math.go:146
↓ 1 callersMethodSetEnd
(end mem.MemoryAddress)
pkg/hintrunner/hinter/dict.go:33
↓ 1 callersMethodSetFreeOffset
Given a memory address and a freeOffset, it sets the freeOffset field of dictionary to it.
pkg/hintrunner/hinter/zero_dict.go:136
↓ 1 callersMethodSetStopPointer
(stopPointer uint64)
pkg/vm/memory/memory.go:17
↓ 1 callersMethodSize
()
pkg/assembler/instruction.go:173
↓ 1 callersFunctionSqrt
(x, p *big.Int)
pkg/hintrunner/utils/math_utils.go:91
↓ 1 callersFunctionStarknetProgramFromFile
(pathToFile string)
pkg/parsers/starknet/starknet.go:94
↓ 1 callersMethodString
()
pkg/hintrunner/core/hint.go:406
↓ 1 callersMethodString
func (segment *Segment) String() string { repr := make([]string, len(segment.Data)) for i, cell := range segment.Data { if i < len(segment.Data)-5
pkg/vm/memory/memory.go:193
↓ 1 callersMethodString
()
pkg/vm/memory/memory_value.go:350
↓ 1 callersMethodSubAddress
(other *MemoryAddress)
pkg/vm/memory/memory_value.go:53
↓ 1 callersFunctionZeroProgramFromFile
(filepath string)
pkg/parsers/zero/zero.go:115
↓ 1 callersFunctionaddRoundKeys
(state []fp.Element, round int)
pkg/vm/builtins/poseidon_math.go:19
↓ 1 callersMethodat
Gets the memory value at certain key
pkg/hintrunner/hinter/zero_dict.go:21
← previousnext →401–500 of 1,195, ranked by callers