Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openvaf crash with $limit(V(a,b)) #133

Open
gjcoram opened this issue Jun 22, 2024 · 0 comments
Open

openvaf crash with $limit(V(a,b)) #133

gjcoram opened this issue Jun 22, 2024 · 0 comments

Comments

@gjcoram
Copy link

gjcoram commented Jun 22, 2024

If you don't specify a limiting function (either a "string" for a built-in or an analog function identifier), then openvaf will crash when compiling the module.
The problem is this line in openvaf/hir_ty/src/inference.rs:
infere_args = &args[0..2];
and then later:
if let Some(Ty::UserFunction(func)) = self.result.expr_types.get(args[1]).cloned() {

gjcoram added a commit to gjcoram/OpenVAF that referenced this issue Jun 22, 2024
gjcoram referenced this issue Jul 8, 2024
Crash took place when compiling $limit().
It was caused by an incorrect assert.
arpadbuermen pushed a commit to arpadbuermen/OpenVAF that referenced this issue Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant