GithubHelp home page GithubHelp logo

Comments (5)

jeremydubreil avatar jeremydubreil commented on April 20, 2024

Thanks for reporting this. Cast operations are not all translated yet. This output corresponds to missing cases in: https://github.com/facebook/infer/blob/master/infer/src/clang/cTrans_utils.ml#L365.

Do you know how we could reproduce these issues ?

from infer.

xjia1 avatar xjia1 commented on April 20, 2024

I was compiling net/ipv4/tcp_ipv4.c in the LLVM Linux kernel source tree.

Actually I couldn't get infer -- make to work properly, so I manually executed clang to get the AST tree, and then executed InferClang.

from infer.

xjia1 avatar xjia1 commented on April 20, 2024

Detail steps:

git clone git://git.linuxfoundation.org/llvmlinux/kernel.git llvmlinux
cd llvmlinux/
make defconfig
make prepare

~/infer-linux64-v0.1.0/infer/infer/lib/clang/clang_wrapper -Xclang -load -Xclang ~/infer-linux64-v0.1.0/infer/infer/lib/clang/../../../../facebook-clang-plugin/libtooling/build/FacebookClangPlugin.dylib -Xclang -add-plugin -Xclang YojsonASTExporter -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-strict-aliasing -fno-common -std=gnu89 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -O2 --param=allow-store-data-races=0 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-overflow -c -o net/ipv4/tcp_ipv4.o net/ipv4/tcp_ipv4.c >ast.json

InferClang -debug -headers -c net/ipv4/tcp_ipv4.c -results_dir infer-out -project_root . -x c <ast.json
InferAnalyze -results_dir infer-out -html

from infer.

dulmarod avatar dulmarod commented on April 20, 2024

Thanks for reporting this. Yes, the clang frontend is still in development and a few constructs are not translated yet. In general, this doesn't represent a problem to an accurate analysis, because we skip the functions that contain untranslated constructs to avoid inconsistencies in the analysis.
We will continue working on the frontend and also encourage contributions :)

from infer.

jvillard avatar jvillard commented on April 20, 2024

These messages do not show up anymore except when debugging infer. They are harmless as the translation skips over these constructs which is the right thing to do.

from infer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.