函数逻辑报告 |
Source Code:lib\math\prime_numbers.c |
Create Date:2022-07-27 07:41:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:selftest
函数原型:static int selftest(unsigned long max)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | max |
268 | 如果非max则返回:0 |
272 | slow等于slow_is_prime_number(x) |
273 | fast等于s_prime_number - test whether the given number is prime*@x: the number to test* A prime number is an integer greater than 1 that is only divisible by* itself and 1 |
276 | 打印错误信息("inconsistent result for is-prime(%lu): slow=%s, fast=%s!", x, slow ? "yes" : "no", fast ? "yes" : "no") |
278 | 转到:err |
281 | 如果非slow则继续下一循环 |
285 | 打印错误信息("incorrect result for next-prime(%lu): expected %lu, got %lu", last, x, xt_prime_number - return the next prime number*@x: the starting point for searching to test* A prime number is an integer greater than 1 that is only divisible by* itself and 1) |
287 | 转到:err |
293 | 返回:0 |
295 | err : |
296 | dump_primes() |
297 | 返回:负EINVAL |
名称 | 描述 |
---|---|
primes_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |