Skip to content

Commit 85987d1

Browse files
committed
Minor changes
1 parent 0790382 commit 85987d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/SPECS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ After executing the cairo program and relocating the memory of the runner, that
271271

272272
#### Temporary Memory
273273

274-
During execution, temporary segments are stored separated from the memory data and their segment indexes are represented with negative numbers. For their relocation, we use rules that will tell us how to map them to a memory segment.
274+
During execution, temporary segments are stored separated from the memory data and their segment indexes are represented with negative numbers. For their relocation, we use rules that will tell us how to map them to a real memory segment.
275275

276276
> [!NOTE]
277277
> Relocation rules start at index 0 and temp data segment index start at -1. So for the mapping, segment_index = -1 maps to key 0, segment_index = -2 to key 1, and so on.
@@ -284,18 +284,18 @@ To satisfy requirement 1, Cairo organizes its memory into segments. In our VM we
284284
- `segment_sizes`: A HashMap that contains the size of each segment
285285
- `segment_used_sizes`: A Vector of each segment size. Item on index i is the segment size of segment i
286286
- `memory`: The memory itself, containing the data, temporary data, relocation rules, among other things
287-
- `public_memory_offsets`: ????????
288-
- `zero_segment_index`: ????????
289-
- `zero_segment_size`: ????????
287+
- `public_memory_offsets`: A HashMap that maps a segment index to a list of offsets for memory cells that represent the public memory
288+
- `zero_segment_index`: The index of the zero segment that is used for builtins
289+
- `zero_segment_size`: Size of the zero segment
290290

291291
#### Memory
292292

293293
The VM memory containing:
294294
- `data`: A vector of vectors. Each vector representing a different `segment` with its own data
295295
- `temp_data`: A vector of vectors. Each vector representing a `temporary segment`
296296
- `relocation_rules`: A hashmap that tells how a temporary segment maps to a to a memory segment
297-
- `validated_addresses`: ??????
298-
- `validation_rules`: ??????
297+
- `validated_addresses`: A vector of `BitVec`
298+
- `validation_rules`: A vector containing the validation rules
299299

300300
Some methods:
301301
- `insert(key, val)`:

0 commit comments

Comments
 (0)