Commit Graph

14 Commits

Author SHA1 Message Date
Gwynne Raskind
09b4159cb2 Global replace of "assertEquals" with "assertEqual" in compliance with deprecation of assertEquals name in Python 2.7 2019-01-16 04:06:38 -06:00
Graydon Hoare
71da5ec519 Fix flake8 warning W605 invalid escape sequence. 2018-11-06 11:38:39 -08:00
Erik Eckstein
39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Michael Gottesman
b77a47ed83 [bug_reducer] Update/fix for mangling/bitrot.
rdar://31044019
2018-06-03 18:50:35 -07:00
Hugh Bellamy
fa3543d3c5 Fix some pylint errors for double whitespace after class/function 2017-02-17 15:37:19 +07:00
practicalswift
92ccc44b3a [gardening] Fix recently introduced PEP-8 deviations 2017-01-22 22:02:33 +01:00
Michael Gottesman
5d3f47f118 [bug-reducer] Rename bug_reducer_utils.py => swift_tools.py 2017-01-10 22:38:25 -08:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
Michael Gottesman
0403feba82 [bug-reducer-tester] Add support for causing a miscompile instead of just asserting.
Previously, bug reducer tester would just assert when it saw a direct apply to
its target function. Now we add support for also causing a miscompile by just
deleting the apply. This is tested by eliminating an apply to putchar to ensure
we are not dependent on any stdlib details.
2017-01-04 15:21:30 -08:00
Michael Gottesman
4ce78fd082 [bug-reducer] When invoking, emit a command line that outputs sib. When printing a commandline for reproduction purposes by the user, drop -emit-sib so sil-opt emits textual sil.
Just a cleanup while I am using this.
2017-01-04 13:18:27 -08:00
practicalswift
1ff3b76b75 [gardening] PEP-8 fixes. 2016-12-20 10:10:29 +01:00
practicalswift
31676caa20 [gardening] PEP-8 cleanups. 2016-12-18 09:48:30 +01:00
practicalswift
ddedf240ec [gardening] Use correct Swift URLs. 2016-12-17 22:33:09 +01:00
Michael Gottesman
59746ecfa5 [sil-bug-reducer] Add function reducing functionality.
Now once you have a pass list using:

  ./bug-reducer opt ...

You can take the pass list and give it and the output file to bug-reducer func:

  ./bug-reducer func ...

which will reduce the function list for you given a pass list. This is kept
separate to allow for testing and orthogonality. In a future commit, I am going
to add an option to ./bug-reducer opt that will invoke the function reducer
automagically.
2016-12-15 00:40:28 -08:00