Skip to content

Commit

Permalink
dummy libASL to reduce conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jun 25, 2024
1 parent ca9100d commit d3d378b
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 18 deletions.
1 change: 1 addition & 0 deletions bin/asli.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(** ASL interactive frontend *)

open LibASL
open LibASL_base

open Asl_ast
open Value
Expand Down
12 changes: 6 additions & 6 deletions bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(modes exe byte)
(modules asli)
(flags (-cclib -lstdc++))
(libraries libASL libASL_native linenoise pprint)
(libraries asli.libASL linenoise pprint)
)

(executable
Expand All @@ -14,7 +14,7 @@
(modes exe)
(modules server)
(flags (-cclib -lstdc++))
(libraries libASL libASL_native pprint lwt.unix yojson cohttp-lwt cohttp-lwt-unix))
(libraries asli.libASL pprint lwt.unix yojson cohttp-lwt cohttp-lwt-unix))


(executable
Expand All @@ -23,28 +23,28 @@
; (public_name test_asl_lexer)
(modules testlexer)
(flags (-cclib -lstdc++))
(libraries libASL))
(libraries asli.libASL))

(executable
(name processops)
(modes exe)
; (public_name test_asl_lexer)
(modules processops)
(flags (-cclib -lstdc++))
(libraries libASL unix))
(libraries asli.libASL unix))

(executable
(name offline_coverage)
(public_name asloff-coverage)
(modes exe)
(modules offline_coverage)
(flags (-cclib -lstdc++))
(libraries libASL libASL_native offlineASL))
(libraries asli.libASL offlineASL))

(executable
(name offline_sem)
(public_name asloff-sem)
(modes exe)
(modules offline_sem)
(flags (-cclib -lstdc++))
(libraries libASL libASL_native offlineASL))
(libraries asli.libASL offlineASL))
1 change: 1 addition & 0 deletions bin/offline_coverage.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open LibASL
open LibASL_base
open Testing
open Asl_ast
open Value
Expand Down
1 change: 1 addition & 0 deletions bin/offline_sem.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open LibASL
open LibASL_base
open Asl_ast
open Asl_utils

Expand Down
1 change: 1 addition & 0 deletions bin/processops.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open LibASL
open LibASL_base

module Bindings = Asl_utils.Bindings

Expand Down
1 change: 1 addition & 0 deletions bin/server.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open LibASL
open LibASL_base


open Yojson
Expand Down
1 change: 1 addition & 0 deletions bin/testlexer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(** ASL lexer test harness *)

open LibASL
open LibASL_base

module Lexer = Lexer
module TC = Tcheck
Expand Down
16 changes: 10 additions & 6 deletions libASL/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@
(with-stdout-to asl_parser.mly (run cat asl_parser_head.mly asl_parser_tail.mly)))))

(library
(name libASL_ast)
(public_name asli.libASL-ast)
(name libASL_base)
(public_name asli.libASL-base)
(flags (:standard -w -27))
(wrapped false)
(modules asl_ast asl_parser asl_parser_pp asl_utils asl_visitor visitor utils)
(libraries pprint (re_export zarith)))

(library
(name libASL)
(public_name asli.libASL)
(public_name asli.libASL-virtual)
(flags
(:standard -w -27 -cclib -lstdc++))
(:standard -w -27 -cclib -lstdc++ -open LibASL_base))
(modules cpu dis elf eval
lexer lexersupport loadASL monad primops rws symbolic tcheck testing transforms value
symbolic_lifter decoder_program call_graph req_analysis
Expand All @@ -35,5 +34,10 @@
)
(preprocessor_deps (alias ../asl_files))
(preprocess (pps ppx_blob))
(libraries libASL_support (re_export libASL_ast) str))
(libraries libASL_support str))

(library
(name libASL_dummy)
(public_name asli.libASL)
(modules)
(libraries (re_export libASL) libASL_native))
2 changes: 1 addition & 1 deletion libASL/support/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
(library
(name libASL_support)
(public_name asli.libASL-support)
(libraries libASL_ast)
(libraries libASL_base)
(virtual_modules solver))
3 changes: 2 additions & 1 deletion libASL/support/native/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(library
(name libASL_native)
(public_name asli.libASL-support-native)
(implements libASL_support)
(libraries z3 libASL_ast))
(libraries z3 libASL_base))
3 changes: 2 additions & 1 deletion libASL/support/native/solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
we can reason that "F(x) == F(x)" without knowing "F".
*)

module AST = Asl_ast
module AST = LibASL_base.Asl_ast
module Asl_utils = LibASL_base.Asl_utils

let verbose = false

Expand Down
2 changes: 1 addition & 1 deletion libASL/support/solver.mli
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
(****************************************************************)

(** check that bs => cs *)
val check_constraints : (Asl_ast.expr list) -> (Asl_ast.expr list) -> bool
val check_constraints : (LibASL_base.Asl_ast.expr list) -> (LibASL_base.Asl_ast.expr list) -> bool
2 changes: 1 addition & 1 deletion libASL/support/web/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
(name libASL_web)
(public_name asli.libASL-web)
(implements libASL_support)
(libraries libASL_ast zarith_stubs_js))
(libraries libASL_base zarith_stubs_js))
2 changes: 1 addition & 1 deletion libASL/support/web/solver.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

module AST = Asl_ast
module AST = LibASL_base.Asl_ast

let check_constraints (_bs: AST.expr list) (_cs: AST.expr list): bool = true
1 change: 1 addition & 0 deletions offlineASL/offline_utils.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open LibASL
open LibASL_base
open Asl_ast
open Primops

Expand Down
1 change: 1 addition & 0 deletions tests/test_asl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
****************************************************************)

open LibASL
open LibASL_base
open Asl_utils
open AST

Expand Down

0 comments on commit d3d378b

Please sign in to comment.