MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl_cpp/samples/benchmark/token_tree/main.cpp:123–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123int main(int argc, char* argv[])
124{
125 int ch, max = 100;
126
127 while ((ch = getopt(argc, argv, "hn:")) > 0)
128 {
129 switch (ch)
130 {
131 case 'h':
132 usage(argv[0]);
133 return 0;
134 case 'n':
135 max = atoi(optarg);
136 break;
137 default:
138 usage(argv[0]);
139 return 0;
140 }
141 }
142
143 test_token_tree_cpp(max);
144 printf("-------------------------------------------------------\r\n");
145 test_token_tree_c(max);
146 printf("-------------------------------------------------------\r\n");
147 test_htable(max);
148 printf("-------------------------------------------------------\r\n");
149 test_stdmap(max);
150 printf("-------------------------------------------------------\r\n");
151
152 return 0;
153}

Callers

nothing calls this directly

Calls 6

test_token_tree_cppFunction · 0.85
test_token_tree_cFunction · 0.85
test_htableFunction · 0.85
test_stdmapFunction · 0.85
usageFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…