# US 2023/0065867 A1 · Memory optimization for storing objects in nested hash maps used in electronic design automation systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0065867 A1
- Document ID: US20230065867A1
- Status: Published application
- Kind: A1
- Application number: 17/894,557
- Filed: 2022-08-24
- Published: 2023-03-02
- Earliest claimed: 2021-08-27
- Assignees: Synopsys, Inc.
- Applicants: Synopsys, Inc.
- Inventors: Brijesh Agrawal; Abhishek Verma; Deepak Ahuja; Paras Mal Jain
- Web page: https://patentgrep.com/patent/US20230065867A1

## CPC

- G06F 16/9014: {hash tables}
- G06F 30/394: Routing (G06F30/396 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Sets of objects may be received which are desired to be stored using a nested hash map, where the nested hash map may include multiple levels, and where each set of objects in the sets of objects may correspond to a level in the nested hash map. The nested hash map may be created from a bottom level of the nested hash map to a top level of the nested hash map, which may include: creating a first hash map at a first level of the nested hash map, creating a first shared pointer which points to the first hash map, and creating a second hash map at a second level which is immediately above the first level, where the second hash map maps at least one object to the first shared pointer.

## Claims

### Claim 1

A method, comprising:
receiving sets of objects which are desired to be stored using a nested hash map, wherein the nested hash map includes multiple levels, and wherein each set of objects in the sets of objects corresponds to a level in the nested hash map; and
creating the nested hash map from a bottom level of the nested hash map to a top level of the nested hash map, wherein the creating comprises:
creating a first hash map at a first level of the nested hash map,
creating a first shared pointer which points to the first hash map, and
creating a second hash map at a second level which is immediately above the first level, wherein the second hash map maps at least one object to the first shared pointer.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first shared pointer is associated with a first reference count which is equal to a count of hash map entries which map to the first shared pointer.

### Claim 3 (depends on 2)

The method of claim 2, further comprising incrementing the first reference count when an additional entry in a hash map maps to the first shared pointer.

### Claim 4 (depends on 2)

The method of claim 2, further comprising decrementing the first reference count when an entry in a hash map no longer maps to the first shared pointer.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
creating a copy of the first hash map;
modifying the copy of the first hash map to obtain a modified copy of the first hash map;
creating a second shared pointer which points to the modified copy of the first hash map; and
creating a third hash map which is at the second level, wherein the third hash map maps at least one object to the second shared pointer.

### Claim 6 (depends on 5)

The method of claim 5, further comprising decrementing the first reference count.

### Claim 7 (depends on 1)

The method of claim 1, wherein the sets of objects specify a set of paths in an integrated circuit (IC) design.

### Claim 8

A non-transitory computer-readable medium comprising stored instructions, which when executed by a processor, cause the processor to:
receive sets of objects which are desired to be stored using a nested hash map, wherein the nested hash map includes multiple levels, wherein each set of objects in the sets of objects corresponds to a level in the nested hash map, and wherein the sets of objects specify a set of paths in an integrated circuit (IC) design; and
create the nested hash map from a bottom level of the nested hash map to a top level of the nested hash map, wherein the creating comprises:
creating a first hash map at a first level of the nested hash map,
creating a first shared pointer which points to the first hash map, and
creating a second hash map at a second level which is immediately above the first level, wherein the second hash map maps at least one object to the first shared pointer.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the first shared pointer is associated with a first reference count which is equal to a count of hash map entries which map to the first shared pointer.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the stored instructions, which when executed by the processor, cause the processor to increment the first reference count when an additional entry in a hash map maps to the first shared pointer.

### Claim 11 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the stored instructions, which when executed by the processor, cause the processor to decrement the first reference count when an entry in a hash map no longer maps to the first shared pointer.

### Claim 12 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the stored instructions, which when executed by the processor, cause the processor to:
create a copy of the first hash map;
modify the copy of the first hash map to obtain a modified copy of the first hash map;
create a second shared pointer which points to the modified copy of the first hash map; and
create a third hash map which is at the second level, wherein the third hash map maps at least one object to the second shared pointer.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the stored instructions, which when executed by the processor, cause the processor to decrement the first reference count.

### Claim 14

An apparatus, comprising:
a memory storing instructions; and
a processor, coupled with the memory and to execute the instructions, the instructions when executed causing the processor to:
receive sets of objects which are desired to be stored using a nested hash map, wherein the nested hash map includes multiple levels, wherein each set of objects in the sets of objects corresponds to a level in the nested hash map; and
create the nested hash map from a bottom level of the nested hash map to a top level of the nested hash map, wherein the creating comprises:
creating a first hash map at a first level of the nested hash map,
creating a first shared pointer which points to the first hash map, and
creating a second hash map at a second level which is immediately above the first level, wherein the second hash map maps at least one object to the first shared pointer.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the first shared pointer is associated with a first reference count which is equal to a count of hash map entries which map to the first shared pointer.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the stored instructions, which when executed by the processor, cause the processor to increment the first reference count when an additional entry in a hash map maps to the first shared pointer.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the stored instructions, which when executed by the processor, cause the processor to decrement the first reference count when an entry in a hash map no longer maps to the first shared pointer.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein the stored instructions, which when executed by the processor, cause the processor to:
create a copy of the first hash map;
modify the copy of the first hash map to obtain a modified copy of the first hash map;
create a second shared pointer which points to the modified copy of the first hash map; and
create a third hash map which is at the second level, wherein the third hash map maps at least one object to the second shared pointer.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the stored instructions, which when executed by the processor, cause the processor to decrement the first reference count.

### Claim 20 (depends on 14)

The apparatus of claim 14, wherein the sets of objects specify a set of paths in an integrated circuit (IC) design.
