blob: 82d0f5ec48c1978ebf17a299845f15527d1d8c85 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
##----------------------------------------------------------------------------
## File: README
## Author(s): Tobias Lindahl <tobias.lindahl@it.uu.se>
## Kostis Sagonas <kostis@it.uu.se>
##
## Copyright: Held by the authors; all rights reserved (2004 - 2010).
##----------------------------------------------------------------------------
The DIALYZER, a DIscrepany AnaLYZer for ERlang programs.
-----------------------------------------------
--
-- Starting the Dialyzer
--
-----------------------------------------------
You can use Dialyzer either in its GUI mode, simply by:
./dialyzer
or in its command-line mode, as e.g. by:
./dialyzer -r OTP_DIR/lib/inets
which analyzes all the bytecode (.beam) files of the "inets" application of
the Erlang/OTP installation for discrepancies.
The complete set of Dialyzer options is:
dialyzer [--help] [--version] [--shell] [--quiet] [--verbose]
[-pa dir]* [--plt plt] [-Ddefine]* [-I include_dir]*
[--output_plt file] [-Wwarn]* [--src]
[-c applications] [-r applications] [-o outfile]
[--build_plt] [--add_to_plt] [--remove_from_plt] [--check_plt]
[--plt_info] [--get_warnings]
Use "dialyzer --help" to see an explanation of these options as well as
a description of the various options to turn on or suppress certain types
of warnings (for the latter only type "dialyzer -Whelp").
The Persistent Lookup Table
===========================
Most Dialyzer uses require information about functions in the Erlang/OTP
standard libraries. This information is stored in a Persistent Lookup
Table (PLT) and is the starting point for later analyses. Before the
first use of Dialyzer, the PLT needs to be built explicitly by the user
using a command of the form:
dialyzer --build_plt -r lib/kernel/ebin lib/stdlib/ebin ... OTHER LIBS
At each subsequent startup of Dialyzer the validity of this PLT is checked,
and if something has changed in the libraries and applications that were
included in it when the PLT was initially created, the PLT will be rebuilt.
It is possible to have multiple PLTs and select dynamically among them.
It is also possible to build PLTs incrementally. For more information
refer to the documentation of the relevant options.
-----------------------------------------------
--
-- More information about using the Dialyzer
--
-----------------------------------------------
Start up the Dialyzer and click on its Help menu (in the upmost right corner)
to read a brief overview and a user manual.
-----------------------------------------------
--
-- Feedback & bug reports
--
-----------------------------------------------
We welcome all sorts of user feedback (even wish-lists!). If you notice
something weird, please send an error report describing the symptoms and
how to reproduce them to:
tobias.lindahl@it.uu.se, kostis@it.uu.se
|