Commit ec18c303 authored by Christian Würdig's avatar Christian Würdig
Browse files

fixed arity and node attribute init when reg_req missing

parent cb7d9c5f
......@@ -66,7 +66,7 @@ foreach my $op (keys(%nodes)) {
my $n_res = 0;
# determine arity from in requirements
$arity = 0;
$arity = exists($n{"arity"}) ? $n{"arity"} : 0;
if (exists($n{"reg_req"}) && exists($n{"reg_req"}{"in"})) {
$arity = scalar(@{ $n{"reg_req"}{"in"} });
}
......@@ -251,6 +251,10 @@ foreach my $op (keys(%nodes)) {
$out_param = "NULL, 0";
}
}
else {
$in_param = "NULL";
$out_param = "NULL, 0";
}
$temp .= "\n /* create node */\n";
my $mode = "mode";
if ($tuple == 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment