feat: adopt marqdo 3.0.0-rc.4 public analysis boundary
This commit is contained in:
1 parent
769550b14b
commit
fe18df6c4b
74 files changed
+7618
-5368
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
## @exec main
|
||||
|
||||
在内外两层循环中分别检查控制跳转。
|
||||
|
||||
- `while false`:先判定外层条件。
|
||||
|
||||
1. `if false`:进入首臂时继续外层循环。
|
||||
|
||||
`continue`
|
||||
|
||||
2. `else if true`:进入次臂时停止内层循环。
|
||||
|
||||
- `while true`:内层循环只读取一次。
|
||||
|
||||
`break`
|
||||
|
||||
`end`
|
||||
|
||||
3. `else`:进入末臂时先继续内层循环,再到外层关闭处。
|
||||
|
||||
- `while false`:内层条件成立时才跳转。
|
||||
|
||||
`continue`
|
||||
|
||||
`end`
|
||||
|
||||
`break`
|
||||
|
||||
`end`
|
||||
|
||||
`end`
|
||||
|
||||
*return 0*
|
||||
|
||||
返回扫描结果。
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
## @exec main
|
||||
|
||||
根据输入条件依次选择一个结果。
|
||||
|
||||
1. `if false`:首个条件。
|
||||
*return 1*
|
||||
2. `else if true`:后续条件可以是字面量。
|
||||
*return 2*
|
||||
3. `else if false`:最后一个条件。
|
||||
*return 3*
|
||||
4. `else`:前面的条件全部不成立时返回默认值。
|
||||
*return 4*
|
||||
|
||||
`end`
|
||||
Reference in new issue
Block a user