pascalkuthe / OpenVAF

An innovative Verilog-A compiler
https://openvaf.semimod.de/
GNU General Public License v3.0
113 stars 15 forks source link

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

Open gjcoram opened 1 week ago

gjcoram commented 1 week ago

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() {