Skip to content
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

Fill the gap to treat t_sup and t_inf for bitstr between Dialyzer and Fialyzer #281

Open
yuezato opened this issue Aug 9, 2019 · 0 comments
Assignees

Comments

@yuezato
Copy link
Collaborator

yuezato commented Aug 9, 2019

The current version of Fialyzer does not implement the following parts:
https://github.com/erlang/otp/blob/OTP-22.0.7/lib/hipe/cerl/erl_types.erl#L2567-L2568
https://github.com/erlang/otp/blob/OTP-22.0.7/lib/hipe/cerl/erl_types.erl#L2876-L2889

Therefore, for example, the current implementation rejects the following, which is accepted by Dialyzer:

-module(binary_test).
-export([main/1]).

main(X) ->
    _ = binary_to_integer(X), %% binary -> integer.
    _ = bit_size(X). %% bitstring -> integer >= 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant