N. Engelhardt
d87bd7ca3f
Merge pull request #3887 from kivikakk/env-bash
...
tests: use /usr/bin/env for bash.
2023-12-18 16:33:35 +01:00
Jannis Harder
2f82e8eaed
Merge pull request #3906 from DanielG/fix-fstGetUint32-mips64el
2023-08-28 16:11:53 +02:00
Daniel Gröber
e4189ddfd1
Fix fstGetUint32 crash on mips64el due to misaligned access
...
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025307
2023-08-27 15:05:41 +02:00
Daniel Gröber
e017f6603c
Fix i386 FP excess-precision issue in fstapi ( Fixes : #3898 )
...
Likely related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323#c225
Thanks to @jix for digging this up
2023-08-27 11:32:53 +02:00
Charlotte
d130f7fca2
tests: use /usr/bin/env for bash.
2023-08-12 11:59:39 +10:00
Miodrag Milanovic
05218ec900
Add dlfcn library for win32
2022-10-28 16:15:30 +02:00
Lloyd Parkes
7dcc9c664e
And another place we need to lseek() after dup().
2022-10-16 12:50:49 +13:00
Lloyd Parkes
635aa2a3fc
Forcibly set the current seek location of gz files that we are accessing
...
via dup(fileno());gzdopen() because stdio might have buffered data from
the underlying file meaning that the underlying seek position isn't what
we think it is.
2022-10-16 12:36:00 +13:00
Josuah Demangeon
793b9ade56
extends the list of platforms without <alloca.h>
...
This permits to fix a compilation bug on OpenBSD
https://www.gnu.org/software/gnulib/manual/html_node/alloca_002eh.html
> This header file is missing on some platforms:
> FreeBSD 6.0, NetBSD 9.0, OpenBSD 6.7, mingw, MSVC 14.
2022-07-18 21:51:18 +02:00
Miodrag Milanovic
0d31aa6008
Proper std::move
2022-05-27 11:04:16 +02:00
Maciej Pasternacki
0302e97ebc
Fix build on FreeBSD, which has no alloca.h
2022-04-24 19:35:50 +02:00
Miodrag Milanovic
4a30c9cb94
Fix Visual Studio build
2022-02-02 11:46:06 +01:00
Miodrag Milanovic
7101df62f8
Fix for limit_range_end when not writing vcd
2022-01-28 12:15:14 +01:00
Miodrag Milanovic
c811a71301
Cleanup of config to support platforms
2022-01-26 09:58:27 +01:00
Miodrag Milanovic
9e9083bbe9
Add FST library
2022-01-25 09:53:41 +01:00
Claire Xenia Wolf
72787f52fc
Fixing old e-mail addresses and deadnames
...
s/((Claire|Xen|Xenia|Clifford)\s+)+(Wolf|Xen)\s+<(claire|clifford)@(symbioticeda.com|clifford.at|yosyshq.com)>/Claire Xenia Wolf <claire@yosyshq.com>/gi;
s/((Nina|Nak|N\.)\s+)+Engelhardt\s+<nak@(symbioticeda.com|yosyshq.com)>/N. Engelhardt <nak@yosyshq.com>/gi;
s/((David)\s+)+Shah\s+<(dave|david)@(symbioticeda.com|yosyshq.com|ds0.me)>/David Shah <dave@ds0.me>/gi;
s/((Miodrag)\s+)+Milanovic\s+<(miodrag|micko)@(symbioticeda.com|yosyshq.com)>/Miodrag Milanovic <micko@yosyshq.com>/gi;
s,https?://www.clifford.at/yosys/,http://yosyshq.net/yosys/,g ;
2021-06-08 00:39:36 +02:00
whitequark
21d44ebec7
minisat: add missing include guard for WASI.
...
Including signal.h used to be allowed in WASI by mistake, but it's
an error since SDK 11.
2020-06-21 21:26:21 +00:00
whitequark
b43c282e4e
Add WASI platform support.
...
This includes the following significant changes:
* Patching ezsat and minisat to disable resource limiting code
on WASM/WASI, since the POSIX functions they use are unavailable.
* Adding a new definition, YOSYS_DISABLE_SPAWN, present if platform
does not support spawning subprocesses (i.e. Emscripten or WASI).
This definition hides the definition of `run_command()`.
* Adding a new Makefile flag, DISABLE_SPAWN, present in the same
condition. This flag disables all passes that require spawning
subprocesses for their function.
2020-04-30 18:56:25 +00:00
Henner Zeller
5c6e681673
Use static constexpr instead of static const where possible.
...
In particular inside class declarations, a static const
assignment is technically not a definition, while constexpr is.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2020-04-14 14:19:38 -07:00
Claire Wolf
65a3ff69bd
Improve ezsat onehot encoding scheme
...
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-02 12:22:28 +02:00
Claire Wolf
f72b65b2a5
Using LFSR counter for ezSAT::manyhot()
...
The only user of this API right now is the puzzle3d benchmark and
it sees a slight reduction in CNF size from this, but the performance
difference is within the noise of measurement on my system.
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-02 11:37:12 +02:00
whitequark
8f2bdff7b9
libs: import json11.
...
This commit imports the code from upstream commit
dropbox/json11@8ccf1f0c5e .
2019-09-30 15:53:11 +00:00
Matthew Daiter
f0ff31ceea
Optimize numberOfPermutations
2019-05-22 17:29:50 -04:00
Clifford Wolf
caad497839
Remove added newline (by re-running minisat 00_UPDATE.sh)
...
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-05-08 11:26:58 +02:00
Kristoffer Ellersgaard Koch
30c762d3a1
Fix all warnings that occurred when compiling with gcc9
2019-05-08 10:27:14 +02:00
whitequark
efa278e232
Fix typographical and grammatical errors and inconsistencies.
...
The initial list of hits was generated with the codespell command
below, and each hit was evaluated and fixed manually while taking
context into consideration.
DIRS="kernel/ frontends/ backends/ passes/ techlibs/"
DIRS="${DIRS} libs/ezsat/ libs/subcircuit"
codespell $DIRS -S *.o -L upto,iff,thru,synopsys,uint
More hits were found by looking through comments and strings manually.
2019-01-02 13:12:17 +00:00
Tim 'mithro' Ansell
1b231b442c
minisat: Make update script executable.
2017-11-25 19:48:26 -08:00
Tim 'mithro' Ansell
34c9fbab53
minisat: Only define __STDC_XXX_MACROS if not already defined.
...
Replace;
#define __STDC_LIMIT_MACROS
#define __STDC_FORMAT_MACROS
With
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
This fixes a compile warning if you are defining these macros in your
CXXFLAGS (as some distros do).
2017-11-25 19:48:26 -08:00
Tim 'mithro' Ansell
8d48b47450
minisat: Remove template with gzFile specialization.
...
All the other gzFile functions have been removed but this template was
still left around.
2017-11-25 19:48:26 -08:00
Tim 'mithro' Ansell
04802e93e8
subcircuit: Class with virtual methods should have virtual destructor.
...
Fixes a compile warning.
* https://stackoverflow.com/questions/1123044/when-should-your-destructor-be-virtual
2017-11-25 19:48:26 -08:00
Clifford Wolf
58ee8e3b8a
Add minisat 00_PATCH_typofixes.patch
2017-03-27 14:37:00 +02:00
Clifford Wolf
71cbe98a09
Remove use of <fpu_control.h> in minisat
2017-03-27 14:32:43 +02:00
Clifford Wolf
0d7fd2585e
Added "int ceil_log2(int)" function
2016-02-13 16:52:16 +01:00
Clifford Wolf
84bf862f7c
Spell check (by Larry Doolittle)
2015-08-14 10:56:05 +02:00
Clifford Wolf
6c84341f22
Fixed trailing whitespaces
2015-07-02 11:14:30 +02:00
Clifford Wolf
893fe87a33
Improved performance in equiv_simple
2015-02-01 22:50:48 +01:00
Clifford Wolf
2a9ad48eb6
Added ENABLE_NDEBUG makefile options
2015-01-24 12:16:46 +01:00
Clifford Wolf
29a555ec7e
Added statehash to ezSAT
2014-12-29 17:10:37 +01:00
Clifford Wolf
df52eedb30
Compile fix for visual studio
2014-12-11 15:27:38 +01:00
SlowRiot
4aae465867
switching from unreliable typedefs to precisely sized uint32_t and uint64_t
2014-11-20 02:03:08 +00:00
SlowRiot
76cc2bf7b4
fixing incorrect buffer size allocation, and unsafe integer size type
2014-11-20 01:58:57 +00:00
Clifford Wolf
84ffe04075
Fixed various VS warnings
2014-10-18 15:20:38 +02:00
Clifford Wolf
b3a6f8f530
More win32 (mxe and vs) build fixes
2014-10-17 16:04:59 +02:00
Clifford Wolf
468ae92374
Various win32 / vs build fixes
2014-10-17 14:01:47 +02:00
William Speirs
31267a1ae8
Header changes so it will compile on VS
2014-10-17 11:41:36 +02:00
Clifford Wolf
cf85aab62f
A few indent fixes
2014-10-15 01:05:08 +02:00
William Speirs
9ee3a4b94f
Changed to explicit heap allocated memory
2014-10-15 00:58:56 +02:00
Clifford Wolf
7df8cbe2a9
Not using std::to_string in ezsat (problems with mingw)
2014-10-11 10:46:50 +02:00
Clifford Wolf
93e6ebe771
Disabled ezminisat timeout feature for Win32
2014-10-11 10:24:46 +02:00
Clifford Wolf
54bf3a95dd
More Win32 build fixes
2014-10-10 18:34:19 +02:00