MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / visitFor

Method visitFor

src/simulate/simulate_visit.cpp:941–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939 }
940
941 SimNode * SimNode_ForBase::visitFor ( SimVisitor & vis, int totalC, const char * loopName ) {
942 char nbuf[32];
943 V_BEGIN_CR();
944 auto result = fmt::format_to(nbuf, FMT_STRING("{}_{}"), loopName, total); *result = 0;
945 vis.op(nbuf);
946 for ( int t=0; t!=totalC; ++t ) {
947 result = fmt::format_to(nbuf, FMT_STRING("stackTop[{}]"), t); *result = 0;
948 vis.sp(stackTop[t],nbuf);
949 result = fmt::format_to(nbuf, FMT_STRING("strides[{}]"), t); *result = 0;
950 vis.arg(strides[t],nbuf);
951 sources[t] = vis.sub(sources[t]);
952 }
953 vis.sub(list,total,"list");
954 V_FINAL();
955 V_END();
956 }
957
958 SimNode * SimNode_ForWithIteratorBase::visitFor ( SimVisitor & vis, int totalC ) {
959 char nbuf[32];

Callers 1

visitMethod · 0.45

Calls 5

format_toFunction · 0.50
opMethod · 0.45
spMethod · 0.45
argMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected