@@ -177,13 +177,15 @@ void CodegenNeuronAccVisitor::print_net_send_call(const ast::FunctionCall& node)
177177 } else {
178178 const auto & t = get_variable_name (" t" );
179179 printer->add_text (" net_send_buffering(" );
180- std::string weight_ptr = weight_index == " 0" ? " 0" : fmt::format (" (intptr_t){}" , weight_index);
181- printer->fmt_text (" nt, ml, ml->_net_send_buffer, 0, (intptr_t)&{}, {}, "
182- " (intptr_t){}, {}+" ,
183- tqitem,
184- weight_ptr,
185- point_process,
186- t);
180+ std::string weight_ptr = weight_index == " 0" ? " 0"
181+ : fmt::format (" (intptr_t){}" , weight_index);
182+ printer->fmt_text (
183+ " nt, ml, ml->_net_send_buffer, 0, (intptr_t)&{}, {}, "
184+ " (intptr_t){}, {}+" ,
185+ tqitem,
186+ weight_ptr,
187+ point_process,
188+ t);
187189 }
188190 print_vector_elements (arguments, " , " );
189191 printer->add_text (' )' );
@@ -203,10 +205,11 @@ void CodegenNeuronAccVisitor::print_net_move_call(const ast::FunctionCall& node)
203205 return ;
204206 }
205207 printer->add_text (" net_send_buffering(" );
206- printer->fmt_text (" nt, ml, ml->_net_send_buffer, 2, (intptr_t)&{}, (intptr_t)-1, "
207- " (intptr_t){}, " ,
208- tqitem,
209- point_process);
208+ printer->fmt_text (
209+ " nt, ml, ml->_net_send_buffer, 2, (intptr_t)&{}, (intptr_t)-1, "
210+ " (intptr_t){}, " ,
211+ tqitem,
212+ point_process);
210213 print_vector_elements (node.get_arguments (), " , " );
211214 printer->add_text (" , 0.0, 0.0" );
212215 printer->add_text (" )" );
@@ -222,9 +225,10 @@ void CodegenNeuronAccVisitor::print_net_event_call(const ast::FunctionCall& node
222225 }
223226 const auto & point_process = get_variable_name (naming::POINT_PROCESS_VARIABLE , false );
224227 printer->add_text (" net_send_buffering(" );
225- printer->fmt_text (" nt, ml, ml->_net_send_buffer, 1, (intptr_t)-1, (intptr_t)-1, "
226- " (intptr_t){}, " ,
227- point_process);
228+ printer->fmt_text (
229+ " nt, ml, ml->_net_send_buffer, 1, (intptr_t)-1, (intptr_t)-1, "
230+ " (intptr_t){}, " ,
231+ point_process);
228232 print_vector_elements (arguments, " , " );
229233 printer->add_text (" , 0.0, 0.0" );
230234 printer->add_text (" )" );
0 commit comments