百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

stack

> 编程语言
开源

用于识别不稳定代码的静态检查器。

366 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于识别不稳定代码的静态检查器。

See INSTALL for build instructions. Make sure STACK binaries are in the PATH.

Preparation

STACK works on LLVM bitcode. To analyze a software project, the first step is to generate LLVM bitcode. STACK provides a script called stack-build, which both calls gcc (or g++) and in parallel uses Clang to obtain LLVM bitcode from your source code, stored in .ll files. For example:

$ cd /path/to/your/project
$ stack-build ./configure
$ stack-build make

or if analyzing a project that is configured using CMake:

$ cd /path/to/your/project
$ stack-build cmake
$ stack-build make

Unstable code checker

To find unstable code that can be eliminated due to undefined behavior, simply run the following command in the project directory after building LLVM bitcode:

$ poptck

You can find bug reports in pstack.txt, in the YAML format.

Here's one example:

bug: anti-simplify
model: |
  %tobool = icmp ne i8* %p, null, !dbg !14
  -->  true
stack: 
  - p.c:4:0
ncore: 1
core: 
  - p.c:3:0
    - null pointer dereference

This means the null pointer check at line 4 ("stack:") may be simplified into true ("model:") due to the pointer dereference at line 3 ("core:").

Contact

If you find any bugs in STACK, feel free to contact us: you can send us email at [email protected].

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言