Guest User

Untitled

a guest
Feb 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rm -rf /tmp/inconsistent-assumptions
  4. mkdir -p /tmp/inconsistent-assumptions
  5. cd /tmp/inconsistent-assumptions
  6.  
  7. echo 'module A = Lib__A module B = Lib__B' > lib.ml
  8. echo 'type t = int' > a.ml
  9. echo 'let x : A.t = 1' > b.ml
  10. function build {
  11. ocamlopt -w -49 $@ -no-alias-deps -c lib.ml &&
  12. ocamlopt -w -49 $@ -no-alias-deps -open Lib -o lib__A -c a.ml &&
  13. ocamlopt -w -49 $@ -no-alias-deps -open Lib -o lib__B -c b.ml
  14. }
  15. build "$@"
  16. # now change the interface of A:
  17. echo 'type t = float' > a.ml
  18. build "$@"
Add Comment
Please, Sign In to add comment