Skip to content

Commit 4f05d4d

Browse files
proxima424kariy
authored andcommitted
feat: fixed some minor typos (lambdaclass#1319)
1 parent 5d2fc97 commit 4f05d4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/python_vm/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The memory itself is a list of continuous segments, the size of each segment may
2020

2121
The different segments:
2222
* Program Segment: Contains cairo bytecode. pc starts at the beginning of this segment
23-
* Execution Segment: Where data is generated during the run of a Cairo program. Lenght is variable(depends on program input). Allocation Pointer (ap) and Frame Pointer (fp) start here.
23+
* Execution Segment: Where data is generated during the run of a Cairo program. Length is variable(depends on program input). Allocation Pointer (ap) and Frame Pointer (fp) start here.
2424
* Builtin Segment: Each builtin has its own continuous area in memory. Length is variable
2525

2626
## Registers
@@ -53,14 +53,14 @@ The [VirtualMachine](https://github.com/starkware-libs/cairo-lang/blob/b614d1867
5353
* [`run_context`](#context)
5454
* `program` : [ProgramBase](#progbase)
5555
* `program_base` : Optional(MaybeRelocatable)(if none, it is set to run_context.pc)
56-
* `builtin_runners` (Optional Dict or set to {})
57-
* `hint_locals` (Dict)
58-
* `static_locals`(Optional Dict)
56+
* `builtin_runners` : (Optional Dict or set to {})
57+
* `hint_locals` : (Dict)
58+
* `static_locals` : (Optional Dict)
5959
VirtualMachineBase's init is used to set these values (plus other ones), the next ones are exclusive to the VirtualMachine:
60-
* `accessed_addresses` (Set that keeps track of memory adresses accessed by cairo instructions)
61-
* `trace` (List of TraceEntry, that each contain the run_context's pc, ap and fp at that moment. A TraceEntry is added after every instruction (Before update_registers is called))
62-
* `current_step` (initialized with 0)
63-
* `skip_instruction_execution` (= False), used by hints to skip execution of current step
60+
* `accessed_addresses` : (Set that keeps track of memory adresses accessed by cairo instructions)
61+
* `trace` : (List of TraceEntry, that each contain the run_context's pc, ap and fp at that moment. A TraceEntry is added after every instruction (Before update_registers is called))
62+
* `current_step` : (initialized with 0)
63+
* `skip_instruction_execution` : (= False), used by hints to skip execution of current step
6464

6565
Functions:
6666
* `[update_registers(instruction, operands)]`(https://github.com/starkware-libs/cairo-lang/blob/b614d1867c64f3fb2cf4a4879348cfcf87c3a5a7/src/starkware/cairo/lang/vm/vm_core.py#L143): Updates fp, ap, and pc, based on the instruction's [FpUpdate, ApUpdate and PcUpdate](#updatereg)

0 commit comments

Comments
 (0)