MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / expected_value

Function expected_value

unittests/multithreaded_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <chaiscript/language/chaiscript_parser.hpp>
10
11int expected_value(int num_iters)
12{
13 int i = 0;
14 for (int k = 0; k<num_iters * 10; ++k)
15 {
16 i += k;
17 }
18
19 return i;
20}
21
22void do_work(chaiscript::ChaiScript_Basic &c, const size_t id)
23{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected