[PATCH] D40073: [Analyzer] Non-determinism: don't sort indirect goto LabelDecl's by addresses

Aleksei Sidorin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 15 05:19:48 PST 2017


a.sidorin added inline comments.


================
Comment at: test/Analysis/diagnostics/goto-label-determinism.cpp:2
+// RUN: %clang_analyze_cc1 -triple arm-unknown-linux-gnueabi -w -analyzer-checker=debug.ExprInspection %s -verify
+// RUN: for i in {1..100}; do %clang_analyze_cc1 -triple arm-unknown-linux-gnueabi -w -analyzer-checker=debug.ExprInspection -analyzer-config max-nodes=10433 %s -analyzer-output=plist-multi-file -o %t.${i}.plist; done ; for i in {1..100}; do FileCheck --input-file=%t.${i}.plist %s; done ; if [ `md5sum %t.*.plist | awk '{print $1}' | sort -u | wc -l` -gt 1 ] ; then exit 1 ; fi
+
----------------
This will not work on Windows. However, I don't know the common way of writing tests for determinism. Any ideas?


Repository:
  rL LLVM

https://reviews.llvm.org/D40073





More information about the cfe-commits mailing list