1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

support multidef

This commit is contained in:
schaeff 2021-05-14 12:47:15 +02:00
parent e028f7b006
commit 43b7457ec9
2 changed files with 2 additions and 3 deletions

View file

@ -299,8 +299,7 @@ impl<'ast, 'a, T: Field> ResultFolder<'ast, T> for Reducer<'ast, 'a, T> {
.map(|a| self.fold_expression(a))
.collect::<Result<_, _>>()?;
unimplemented!("multi def needs to be put in blocks");
// multidef inlined calls do not need to be put into a block, because they are always executed
match inline_call(
key,
generics,

View file

@ -1,6 +1,6 @@
use crate::zir::identifier::Identifier;
use crate::zir::types::UBitwidth;
use crate::zir::{BooleanExpression, ZirStatement};
use crate::zir::BooleanExpression;
use zokrates_field::Field;
impl<'ast, T: Field> UExpression<'ast, T> {