mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 07:45:09 +00:00
Do some work on this. It still doesn't compile, let
followvars.nl: Do some work on this. It still doesn't compile, let alone work. mode_info.nl: Fix bug in last change. hlds_out.nl: A couple of very minor fixes. switch_detection.nl: Fix a bug so that 2nd-argument indexing works.
This commit is contained in:
@@ -219,14 +219,12 @@ partition_disj_2([Goal | Goals], Var, Cases0, Cases) :-
|
||||
:- mode find_unify_var_functor(in, in, out) is semidet.
|
||||
|
||||
find_unify_var_functor([Goal - _GoalInfo | Goals], Var, Functor) :-
|
||||
( Goal = unify(term__variable(Var0), term__functor(Name, Args, _),
|
||||
( Goal = unify(term__variable(Var), term__functor(Name, Args, _),
|
||||
_, _, _) ->
|
||||
Var = Var0,
|
||||
list__length(Args, Arity),
|
||||
make_functor_cons_id(Name, Arity, Functor)
|
||||
; Goal = unify(term__functor(Name, Args, _), term__variable(Var0),
|
||||
; Goal = unify(term__functor(Name, Args, _), term__variable(Var),
|
||||
_, _, _) ->
|
||||
Var = Var0,
|
||||
list__length(Args, Arity),
|
||||
make_functor_cons_id(Name, Arity, Functor)
|
||||
; Goal = unify(_, _, _, _, _) ->
|
||||
|
||||
Reference in New Issue
Block a user