mirror of
https://github.com/ProgramSnail/pass_strategy_synthesis.git
synced 2025-12-27 11:18:43 +00:00
semantic interpreter v1, semantic interpreter tests, fixes
This commit is contained in:
parent
1c74f0c3ef
commit
a2d4bb93e6
4 changed files with 350 additions and 4 deletions
|
|
@ -17,7 +17,6 @@ correct_body_on_arg_borrow(ARGT, B, [Call(F, FARGT, ARGS)|XT], I) :-
|
|||
not_in_list(I, ARGS), correct_body_on_arg_borrow(ARGT, B, XT, I).
|
||||
/* func call only correct in all args are not I */
|
||||
|
||||
/* TODO: correct_args_map(ARGT, B, FARGT, ARGS) */
|
||||
correct_args_map(ARGT, B, [], []).
|
||||
correct_args_map(ARGT, B, BT, [Ref|TS], [I|IS]) :-
|
||||
arg_tags_neq(ARGT, I, ConstRef),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue