Skip to content

Sparsification of Affine Equality Matrix #1625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 279 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
acf5851
Split up vectorMatrix into multiple files; Removed VectorMatrix from …
feniup Nov 20, 2024
32c378d
Merge remote-tracking branch 'origin/master' into file-splitting
feniup Nov 20, 2024
5ce5ee8
Bugfix Matrix.map2i without side effects (different length lists)
kadameit Nov 21, 2024
63506ea
Merge remote-tracking branch 'origin/master' into file-splitting
feniup Nov 21, 2024
7643899
added missing module BatList
feniup Nov 21, 2024
41bb6ed
RenamedFolder; Revealed modules to goblint_lib
feniup Nov 21, 2024
6602d75
Directly revealed modules to goblint_lib
feniup Nov 21, 2024
b7d5c1a
Added missing ArrayVector module to goblint_lib
feniup Nov 21, 2024
b1beb54
Merge pull request #2 from CopperCableIsolator/file-splitting
feniup Nov 21, 2024
8476f95
Vector List
CopperCableIsolator Nov 26, 2024
5fb8041
someMatFuncs
CopperCableIsolator Nov 26, 2024
8c3824f
some functions changed to use vectors
charlotte-brandt Nov 26, 2024
3234896
again
charlotte-brandt Nov 26, 2024
fb3442b
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 26, 2024
251f1c9
Reimplemented some matrix functions to vector
kadameit Nov 26, 2024
67c9ef4
Added find_opt and remove_nth to vector interface
kadameit Nov 26, 2024
19ac2db
pushing is_zero_vec
charlotte-brandt Nov 26, 2024
47f4fa1
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 26, 2024
a0e0f1b
Formatting
kadameit Nov 26, 2024
d768b46
vector functions
charlotte-brandt Nov 26, 2024
74ce9fe
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 26, 2024
422dd54
Removed some _with functions from the AffineEqualityDomain
feniup Nov 26, 2024
6afcb81
Implement inefficient rref functions
kadameit Nov 26, 2024
e7aa151
Merge branch 'master' into affine-equality-domain-without-with
feniup Nov 26, 2024
7b4173a
ocp-indent on sparseMatrix.ml
feniup Nov 26, 2024
c8db710
del_cols and remove_at_indices
charlotte-brandt Nov 26, 2024
24fd057
commiting again for indentation
charlotte-brandt Nov 26, 2024
0e702ee
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 26, 2024
0c9eb46
Vector functions
kadameit Nov 26, 2024
0db8b61
some vector functions
charlotte-brandt Nov 27, 2024
f413d51
Merge branch 'master' into affine-equality-domain-without-with
kadameit Nov 28, 2024
d439b20
vector conversion to array
charlotte-brandt Nov 28, 2024
03fab15
Explicit types on normalize
kadameit Nov 28, 2024
f018a06
map2_preserve_zero
CopperCableIsolator Nov 28, 2024
70dbf4d
exists, vector interface
CopperCableIsolator Nov 28, 2024
215b25e
ups
CopperCableIsolator Nov 28, 2024
fd16be1
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 28, 2024
680e56b
Reimplemented normalize in SparseMatrix, some TODOs missing
kadameit Nov 28, 2024
40996b7
Renamed sparseMatrix.ml to match module name
feniup Nov 28, 2024
cb62292
Merge branch 'master' of github.com:CopperCableIsolator/goblint-spars…
feniup Nov 28, 2024
702f258
builds now + reduce_col
charlotte-brandt Nov 28, 2024
e556c41
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Nov 28, 2024
bec7535
Moved swap, div, sub and normalize to new listMatrix.ml
kadameit Nov 28, 2024
ad34bc7
Renamed tV according to best practices
feniup Nov 28, 2024
bd81ac1
Implement vector findi and minor bugfix in ListMatrix normalize
kadameit Nov 28, 2024
06a32ea
vectorfuncs, foldleftpreservezero
CopperCableIsolator Nov 28, 2024
05a3dc5
Add normalize check for invalid affeq matrix
kadameit Nov 28, 2024
409c01d
Vector function findi_val_opt
kadameit Nov 28, 2024
ad9f618
Adapting normalize and reordering deprecated functions in ListMatrix.ml
kadameit Nov 28, 2024
33b8723
Implement Vector foldleft and apply_with_c
kadameit Nov 28, 2024
785f75d
add column and helper functions
charlotte-brandt Nov 29, 2024
fe9513a
Fix del_cols duplicate edge case chech before comparing length
kadameit Nov 30, 2024
7a8fab9
Fix set_nth in Vector
kadameit Nov 30, 2024
519ee02
Remove double Mpqf definition
kadameit Dec 1, 2024
d3d998d
Renamed SparseMatrix to ListMatrix in goblint_lib.ml
feniup Dec 3, 2024
b339b78
Merge branch 'master' of github.com:CopperCableIsolator/goblint-spars…
feniup Dec 3, 2024
d68c719
Implement is_covered_by structure, but helper function still missing
kadameit Dec 3, 2024
159d07e
bugfix in insert_at and reduce_col_with_vec
charlotte-brandt Dec 3, 2024
1f85d28
Implement more vector functions
kadameit Dec 3, 2024
793df4a
Formatting
kadameit Dec 3, 2024
ffa0b54
Merge branch 'master' into affine-equality-domain-without-with
charlotte-brandt Dec 3, 2024
abdae29
Merge pull request #3 from CopperCableIsolator/affine-equality-domain…
charlotte-brandt Dec 3, 2024
6021c42
Implement is_covered_by
kadameit Dec 3, 2024
97a735b
small bugfixes
charlotte-brandt Dec 4, 2024
b17f33e
Finish normalize first version with dec2D
kadameit Dec 4, 2024
80672a1
bugfix in find_val_opt and lin_independent
charlotte-brandt Dec 5, 2024
418de56
Fixed affeq_rows_are_valid helper for normalize
kadameit Dec 5, 2024
e10493a
better map2pz,better naming
CopperCableIsolator Dec 5, 2024
d2b0be7
small hickup
CopperCableIsolator Dec 5, 2024
859ec26
normalize bug fix
charlotte-brandt Dec 5, 2024
67c1d5c
small naming
CopperCableIsolator Dec 5, 2024
71768be
fold_left2_f_preserves_zero
CopperCableIsolator Dec 5, 2024
0207a73
print for debugging
charlotte-brandt Dec 5, 2024
2bc4b66
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Dec 5, 2024
ef0cc36
Bugfixes in Vector and more Debug prints
kadameit Dec 5, 2024
c038dc7
Bugfix in Vector keep_vals and to_list; Implement set_nth in Vector"
kadameit Dec 6, 2024
92b784a
Bugfix insert_val_at
kadameit Dec 6, 2024
8ba5777
Bugfix Matrix map2i and Vector insert_val_at again
kadameit Dec 6, 2024
f6a415e
Add more debug-prints
kadameit Dec 6, 2024
3e7d3d6
Bugfix in Vector rev and Matrix map2i again
kadameit Dec 6, 2024
0c95dc7
Bugfix in Matrix del_cols and Vector remove_at_indices
kadameit Dec 6, 2024
c72c77d
arraymatrix passes tests again
charlotte-brandt Dec 6, 2024
09054a1
Reduced test suite; Simple normalized test with mxn-Matrix with m!=n;
feniup Dec 6, 2024
99cf805
Merge branch 'master' of github.com:CopperCableIsolator/goblint-spars…
feniup Dec 6, 2024
2968963
Added example source
feniup Dec 6, 2024
4ef3acc
more debugging prints and added remove_zero_rows to rref_vec
charlotte-brandt Dec 7, 2024
968c533
Bugfixes in ListMatrix normalize
kadameit Dec 7, 2024
fe6b2a6
Added a solution vector to the normalize unit test
feniup Dec 9, 2024
18acca5
Normalize test for a shuffeled matrix
feniup Dec 9, 2024
43e042f
Normalize test for row elimination
feniup Dec 9, 2024
ef07123
Normalize tests with different domains
feniup Dec 9, 2024
8d1c548
Normalize tests for idempotency and negation
feniup Dec 9, 2024
d71d7bd
bugfix in add_empty_columns, behavious still differs from arraymatrix
charlotte-brandt Dec 10, 2024
db97f30
add_emtpy_cols uses arraymatrix logic here + bugfix in normalize - on…
charlotte-brandt Dec 10, 2024
315dac6
appending and normalizing in is_covered_by - all tests pass
charlotte-brandt Dec 10, 2024
58e34c0
Normalize tests for empty matrix, two column matrix and a normalized …
feniup Dec 10, 2024
9f7cec9
Added a newline
feniup Dec 10, 2024
6673aae
Changed the assert failure text for when the normalization fails
feniup Dec 10, 2024
fe984fb
Add some is_covered_by tests
kadameit Dec 10, 2024
f44f2eb
Formatting
kadameit Dec 10, 2024
79f890a
Added some comments on the test setup
feniup Dec 10, 2024
4b34fda
Added some comments on the test setup
feniup Dec 10, 2024
586cc38
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
kadameit Dec 10, 2024
1241795
bugfix in insert_zeros and use list funtionality again, uses apron st…
charlotte-brandt Dec 10, 2024
091b9fa
coveredddd
CopperCableIsolator Dec 10, 2024
a7a4e14
Fix normalize tests for floating point and fraction
kadameit Dec 12, 2024
b15b9d2
small tweak in findi_val_opt, could be even a tini tiny bit faster bu…
CopperCableIsolator Dec 12, 2024
0f6509b
removed prints for benchmarking
charlotte-brandt Dec 12, 2024
9ea8cc2
Remove old copies in AffineEqualityDomain
kadameit Dec 12, 2024
ca91d48
Adapt sparseVector functions to tail recursive
kadameit Dec 12, 2024
6883084
added Timingwraps to vector functions and alternative to findivalopt
charlotte-brandt Dec 13, 2024
61caba2
implemented different rref_vec that doesn't use normalize
charlotte-brandt Dec 13, 2024
c9be718
new rref_vec should be faster
charlotte-brandt Dec 13, 2024
fb1f36a
removed files with debug logs that I pushed by accident
charlotte-brandt Dec 13, 2024
0535677
Add apply_with_c_f_preserves_zero
kadameit Dec 13, 2024
c776a2b
Changed some calls in Domain to zero preserving
kadameit Dec 13, 2024
d3b18aa
Change rref_matrix without append and normalize, still have to benchmark
kadameit Dec 14, 2024
eba9d49
Remove some warnings of deprecated code
kadameit Dec 14, 2024
21a839c
Merge branch 'master' into benchmarks
kadameit Dec 15, 2024
dd0000e
Merge branch 'benchmarks' into master
kadameit Dec 17, 2024
2e80b94
removed second remove_nth
charlotte-brandt Dec 17, 2024
1fa998f
Remove deprecated _with functions from Vector and Matrix interface
kadameit Dec 17, 2024
1ea8040
Remove deprecated _with functions from Vector and Matrix interface
kadameit Dec 17, 2024
fd5689a
commenting some functions
charlotte-brandt Dec 17, 2024
335d4ea
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Dec 17, 2024
6186435
is_cons_vec
CopperCableIsolator Dec 17, 2024
d42bf5f
replace the last findi_val_opt
charlotte-brandt Dec 17, 2024
0088812
ein paar maps ausgetauscht
CopperCableIsolator Dec 17, 2024
92802e5
Optimize non zero-preserving Vector.map and Vector.map2i
kadameit Dec 18, 2024
2c8901f
added test from lin2vareq to affeq that found mistake in dim_add
charlotte-brandt Dec 19, 2024
4411280
Implement zero preserving Array Vector functions by calling normal fu…
kadameit Dec 19, 2024
012104f
assert_rref
CopperCableIsolator Dec 19, 2024
37190f4
assert_rref
CopperCableIsolator Dec 19, 2024
d7da9c7
small bugfix assert_rref
CopperCableIsolator Dec 19, 2024
bb15181
Bugfix rref_vec using reduce_col_with_vec
kadameit Dec 19, 2024
0678f66
Change order of functions because of compilation error
kadameit Dec 19, 2024
3b49ba5
Organize Vector and Matrix interface
kadameit Dec 21, 2024
93463f2
Bugfix Vector is_const_vec
kadameit Dec 21, 2024
6ae9bf1
Remove prints in ArrayMatrix
kadameit Dec 21, 2024
b8ba2bb
reordered function in vector so that they match the interface
charlotte-brandt Dec 21, 2024
60f7b67
Reorder listMatrix; Some renaming
kadameit Dec 23, 2024
8c931a7
Optimize get_col for sparse; Some timing_wraps for matrix
kadameit Dec 23, 2024
de6acc7
Fix semantics Matrix.map2, changed Matrix.map2i but might still have …
kadameit Dec 23, 2024
c01b627
comments
CopperCableIsolator Dec 27, 2024
1a33f55
findi_f_false_at_zero
CopperCableIsolator Dec 27, 2024
aaadeaa
Add find2i_f_false_at_zero to ArrayVector and remove duplicate code f…
kadameit Dec 28, 2024
a82e652
Merge remote-tracking branch 'upstream/master'
kadameit Dec 28, 2024
48925db
second version of nth, enable by setting p to false in sparseVector.ml
CopperCableIsolator Jan 7, 2025
7fd6b0b
no more p
CopperCableIsolator Jan 7, 2025
5e29f9c
nevermind nth'
CopperCableIsolator Jan 7, 2025
38d51d9
normalize timing wrap
CopperCableIsolator Jan 7, 2025
8cb9e41
removed some comments
charlotte-brandt Jan 7, 2025
f3ddf02
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 7, 2025
e117432
Remove col variable names in vector
kadameit Jan 7, 2025
af9e10c
Cleanup old Matrix implementations
kadameit Jan 7, 2025
1ab2633
small changes and get_col_rref -- doesn't work?
charlotte-brandt Jan 7, 2025
4de377a
merge
charlotte-brandt Jan 7, 2025
4b2c9a7
Changed if order in get_col_rref and new calls, removed nth timing wrap
kadameit Jan 7, 2025
ebc3412
Changed if order in get_col_rref and new calls, removed nth timing wrap
kadameit Jan 7, 2025
b0fd036
Added old unit tests again
kadameit Jan 9, 2025
6c1e2a7
removed unused functions
CopperCableIsolator Jan 9, 2025
08d1b52
removed unused functions
CopperCableIsolator Jan 9, 2025
4e04aa0
Adapted function descriptions in listMatrix and Remove old comments
kadameit Jan 9, 2025
499b12b
More comments and code style
kadameit Jan 9, 2025
5e5729c
removed TODO and comments for add_empty_cols
charlotte-brandt Jan 9, 2025
5de1ea0
Adapted assert_ref to validate pivot positions
kadameit Jan 9, 2025
c9ad687
Remove assert_rref
kadameit Jan 9, 2025
440e7a1
comments
CopperCableIsolator Jan 9, 2025
db480ca
Made to_list tail recursive
kadameit Jan 9, 2025
971268d
Removed unused functions in arrayVector
kadameit Jan 9, 2025
34bb6a5
minor change to to_list, fix comments
CopperCableIsolator Jan 9, 2025
c4be7e6
List :: codestyle
kadameit Jan 9, 2025
a8589e3
comment changes, changed raised error
CopperCableIsolator Jan 9, 2025
3355536
Delete list.txt
kadameit Jan 10, 2025
c836b63
comments and naming changes
CopperCableIsolator Jan 13, 2025
470e791
small comment changes
CopperCableIsolator Jan 13, 2025
9627e38
ArrayMatrix get_col_upper_triangular is normal get_col and rref_vec o…
kadameit Jan 13, 2025
68910d4
Update listMatrix.ml
CopperCableIsolator Jan 13, 2025
c8f8155
Update regtest.sh to old --html
kadameit Jan 14, 2025
a3988d4
comments
charlotte-brandt Jan 14, 2025
e08a09a
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 14, 2025
68ea9d8
Merge remote-tracking branch 'upstream/master'
charlotte-brandt Jan 14, 2025
e5a0f8a
Removed unused arrayimplementation
charlotte-brandt Jan 21, 2025
9555ab0
Update tests/unit/cdomains/affineEqualityDomain/sparseImplementation/…
kadameit Jan 21, 2025
07d9d5c
Update comment for add_empy_columns
kadameit Jan 21, 2025
0aa86a7
Change comments about _with suffixes
charlotte-brandt Jan 21, 2025
2af2769
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 21, 2025
8d80046
Change order of starting_from_nth parameters. Add comments for some f…
kadameit Jan 21, 2025
9ecb30b
Formatting
kadameit Jan 21, 2025
4890a03
Optimize to_const_opt with find_first_non_zero
charlotte-brandt Jan 21, 2025
0f16126
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 21, 2025
1ec9fbe
Update SparseVector.show to be sparse
kadameit Jan 21, 2025
5e16985
Remove V.nth from map2 - not better?
charlotte-brandt Jan 22, 2025
af9104e
Update src/cdomains/affineEquality/sparseImplementation/sparseVector.ml
charlotte-brandt Jan 22, 2025
9e15571
Update src/cdomains/affineEquality/sparseImplementation/sparseVector.ml
charlotte-brandt Jan 22, 2025
5c45990
Update src/cdomains/affineEquality/sparseImplementation/sparseVector.ml
charlotte-brandt Jan 22, 2025
b0feb2a
Use Bat functions to improve readability
charlotte-brandt Jan 22, 2025
52a100c
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 22, 2025
bc2cad0
Remove references in comments to missing not-zero-preserving functions
kadameit Jan 22, 2025
dc0da87
Add comments to some vector functions and add some field punning for …
kadameit Jan 22, 2025
fd70b72
Update src/cdomains/affineEquality/sparseImplementation/sparseVector.ml
charlotte-brandt Jan 23, 2025
426d739
Optimize get_pivot_positions to also return the row itself
kadameit Jan 24, 2025
6fef812
Punning and List.rev_map
kadameit Jan 24, 2025
335832c
Change SparseVector.of_array to BatList.fold_righti
kadameit Jan 24, 2025
6819b4a
Update sparseVector exists
kadameit Jan 24, 2025
15d2fb7
Split up interface and restore old domain and array implementation
charlotte-brandt Jan 24, 2025
b3fb4bc
Add rref_vec timing wraps and comments
kadameit Jan 24, 2025
6e5332b
Rename AbstractMatrix and AbstractVector and clean up unused function…
charlotte-brandt Jan 25, 2025
5f9ae05
Remove sorting for add_empty_columns and del_cols; Remove some List.l…
kadameit Jan 25, 2025
1bca083
Change add_empty_columns to use List.group and List.map
kadameit Jan 28, 2025
0a13546
Clean up unused sparseVector functions
charlotte-brandt Jan 28, 2025
9c94901
Update sparseVector to_list
kadameit Jan 28, 2025
69a4655
Update sparseVector nth
kadameit Jan 28, 2025
c6b1006
Remove insert_val_at from ListMatrix since it is uncalled
charlotte-brandt Jan 28, 2025
6d4c154
Correct comments in ArrayMatrix
charlotte-brandt Jan 28, 2025
3232935
Merge branch 'interface-splitting'
kadameit Jan 28, 2025
16071d9
Change Timing.wrap to timing_wrap
kadameit Jan 28, 2025
5e3f21a
Update rref_vec to filter non-relevant pivots
kadameit Jan 28, 2025
9f5b2d2
Remove duplicate SparseMatrixTests from unit tests
kadameit Jan 28, 2025
96e6e6d
Remove unnecessary rev in affeq domain
kadameit Jan 30, 2025
edbf0ec
Changed map2 back to version without V.nth
charlotte-brandt Jan 30, 2025
9ab456b
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Jan 30, 2025
35b5644
Add comment explaining type t of sparseVector
kadameit Jan 30, 2025
52f29ed
Add and Implement compare_num_rows to Matrix, SparseMatrix, ArrayMatrix
kadameit Jan 30, 2025
1f4fdf4
Merge remote-tracking branch 'upstream/master'
kadameit Jan 30, 2025
165fc7a
Update find_first_non_zero
kadameit Feb 4, 2025
0a4e299
Replace more Timing.wrap
charlotte-brandt Feb 5, 2025
2e4b115
Remove execution of affeq unit tests in test file
kadameit Feb 13, 2025
3d422cd
Add comment to domains explaining NoSideEffect domain
kadameit Feb 13, 2025
431c69a
Change matrix tests such that they don't run themselves
charlotte-brandt Feb 18, 2025
2e7330c
Merge branch 'master' of https://github.com/CopperCableIsolator/gobli…
charlotte-brandt Feb 18, 2025
8daa4de
Move interfaces to their respective files
charlotte-brandt Feb 18, 2025
282cc24
Moved ConvenienceOps into RatOps file
charlotte-brandt Feb 18, 2025
f86845a
Removed unnecessary Batteries assignments
charlotte-brandt Feb 18, 2025
053e537
Move interfaces to the files where they are implemented
charlotte-brandt Feb 20, 2025
0bbba47
Remove unnecessary rename of Array
charlotte-brandt Feb 20, 2025
b6fc2d0
Add Apron and No-Apron test for sparseMatrix
kadameit Feb 21, 2025
a8e1987
Update dead link to dune alternative dependencies
kadameit Feb 21, 2025
3efe923
Add option for affeq side effect analysis
kadameit Feb 22, 2025
3d1b152
Bump minimum dune version to 3.13
sim642 Feb 24, 2025
bceccd4
Move affeq tests back to subdir and avoid cyclic dependencies with du…
kadameit Feb 24, 2025
6fa6c92
Remove old affeq test files
kadameit Feb 25, 2025
514ffcb
Add copy_files stanzas to affeq-test dune
kadameit Feb 25, 2025
65d0c12
replaced term "side effects" with alternative description of function…
CopperCableIsolator Feb 25, 2025
5326e2b
renamed domain to fit goblint scheme
CopperCableIsolator Feb 25, 2025
abbde00
Change affeq sparse config from side_effect to sparse with default true
kadameit Feb 25, 2025
4176d52
Remove debug files
kadameit Feb 25, 2025
e3cbcf7
Fix affeq analysis sparse config param and dune file
kadameit Feb 25, 2025
463f360
Fix docs/api-build CI of AffineEqualityDenseDomain
kadameit Feb 26, 2025
0a5fe07
Merge branch 'master' into master
DrMichaelPetter Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 3.7)
(lang dune 3.13)
(using dune_site 0.1)
(cram enable)
(name goblint)
Expand Down
2 changes: 1 addition & 1 deletion goblint.opam
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ homepage: "https://goblint.in.tum.de"
doc: "https://goblint.readthedocs.io/en/latest/"
bug-reports: "https://github.com/goblint/analyzer/issues"
depends: [
"dune" {>= "3.7"}
"dune" {>= "3.13"}
"ocaml" {>= "4.14"}
"goblint-cil" {>= "2.0.5"}
"batteries" {>= "3.5.1"}
Expand Down
21 changes: 20 additions & 1 deletion src/analyses/apron/affineEqualityAnalysis.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,30 @@

open Analyses

open SparseVector
open ListMatrix

open ArrayVector
open ArrayMatrix

include RelationAnalysis

(* There are two versions of the affeq domain.
1. Sparse without side effects
2. Dense Array with side effects
Default: sparse implementation
The array implementation with side effects of the affeq domain is used when the --disable ana.affeq.sparse option is set *)
let get_domain: (module RelationDomain.RD) Lazy.t =
lazy (
if GobConfig.get_bool "ana.affeq.sparse" then
(module AffineEqualityDomain.D2 (SparseVector) (ListMatrix))
else
(module AffineEqualityDenseDomain.D2 (ArrayVector) (ArrayMatrix))
)

let spec_module: (module MCPSpec) Lazy.t =
lazy (
let module AD = AffineEqualityDomain.D2 (VectorMatrix.ArrayVector) (VectorMatrix.ArrayMatrix) in
let module AD = (val Lazy.force get_domain) in
let module Priv = (val RelationPriv.get_priv ()) in
let module Spec =
struct
Expand Down
Loading
Loading