Skip to content

crash in your test case #2

Description

@dengzailin

Hi
I meet a coredump in your case

main spice_files/mux_2_1.sp

SPICE STD-CELL TIMING ARCS EXTRACTOR
[UNDER DEVELOPMENT]

Subcircuit:sky130_fd_sc_hs__mux2_1

Inputs & Outputs

input:A0
input:A1
input:S
output:X

PUN Expressions:
X=a_304_74#
a_27_112#=S
a_304_74#=((A1+a_27_112#)*(S+A0))

PDN Expressions:
X=a_304_74#
a_27_112#=S
a_304_74#=((a_27_112#A0)+(A1S))
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)
Abort (core dumped)

I find your function flatten_expression have some bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions