Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5334523
(invalid)tests-context.lp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 21, 4:58 AM
Size
597 B
Mime Type
text/x-c
Expires
Mon, Nov 23, 4:58 AM (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
310987
Attached To
rXR Xreate
(invalid)tests-context.lp
View Options
#include "control-context.lp".
%body
function(a).
function(b).
function(c).
scope(0..3).
cfa_call(0, c).
cfa_call(1, c).
cfa_parent(0, function(a)).
cfa_parent(1, function(b)).
cfa_parent(2, function(c)).
cfa_parent(3, scope(2)).
bind_scope(0, weak(a)).
bind_scope(1, weak(b)).
bind_scope(0, hard).
bind_scope(1, hard).
%test weak and hard context
:- bind_scope(2, weak(_)).
:- not bind_scope(2, hard).
%test rules:
bind_scope(X, rule) :- bind_scope(X, hard), context_rule_visibility(X, 2).
:- not bind_scope(3, rule).
Event Timeline
Log In to Comment