Skip to content

Instantly share code, notes, and snippets.

@okutane
Created March 12, 2018 07:35
Show Gist options
  • Save okutane/54ed9ffdcea93cadd9c3a8e34acb74dd to your computer and use it in GitHub Desktop.
Save okutane/54ed9ffdcea93cadd9c3a8e34acb74dd to your computer and use it in GitHub Desktop.
docker run -d -p 8888:8080 sanitytool/bitreader-service
echo "int i = 5;" > test.c
clang test.c -c -emit-llvm -femit-all-decls -g -o result.bc
curl --header "Content-Type:application/octet-stream" --trace-ascii debugdump.txt --data-binary @result.bc http://localhost:8888/parse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment