- Reindent script was improved (and consequences added)
This commit is contained in:
parent
5d2d836d07
commit
d3f2971181
@ -26,11 +26,14 @@ protocolHidelevel (const System sys, const Term t)
|
|||||||
unsigned int l;
|
unsigned int l;
|
||||||
|
|
||||||
l = termHidelevel (t, rd->from);
|
l = termHidelevel (t, rd->from);
|
||||||
if (l < minlevel) minlevel = l;
|
if (l < minlevel)
|
||||||
|
minlevel = l;
|
||||||
l = termHidelevel (t, rd->to);
|
l = termHidelevel (t, rd->to);
|
||||||
if (l < minlevel) minlevel = l;
|
if (l < minlevel)
|
||||||
|
minlevel = l;
|
||||||
l = termHidelevel (t, rd->message);
|
l = termHidelevel (t, rd->message);
|
||||||
if (l < minlevel) minlevel = l;
|
if (l < minlevel)
|
||||||
|
minlevel = l;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -122,7 +125,8 @@ hidelevelCompute (const System sys)
|
|||||||
|
|
||||||
|
|
||||||
//! Given a term, iterate over all factors
|
//! Given a term, iterate over all factors
|
||||||
int iterate_interesting (const System sys, const Term goalterm, int (*func) ())
|
int
|
||||||
|
iterate_interesting (const System sys, const Term goalterm, int (*func) ())
|
||||||
{
|
{
|
||||||
Hiddenterm ht;
|
Hiddenterm ht;
|
||||||
|
|
||||||
@ -147,9 +151,11 @@ int iterate_interesting (const System sys, const Term goalterm, int (*func) ())
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Determine whether a goal might be interesting from the viewpoint of hide levels (the highest minimum is best)
|
//! Determine whether a goal might be interesting from the viewpoint of hide levels (the highest minimum is best)
|
||||||
int hidelevelInteresting (const System sys, const Term goalterm)
|
int
|
||||||
|
hidelevelInteresting (const System sys, const Term goalterm)
|
||||||
{
|
{
|
||||||
int uninteresting (unsigned int l, unsigned int lmin, unsigned int lprot, unsigned int lknow)
|
int uninteresting (unsigned int l, unsigned int lmin, unsigned int lprot,
|
||||||
|
unsigned int lknow)
|
||||||
{
|
{
|
||||||
if (lmin > 0)
|
if (lmin > 0)
|
||||||
{
|
{
|
||||||
@ -163,9 +169,11 @@ int hidelevelInteresting (const System sys, const Term goalterm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Determine whether a goal is impossible to satisfy because of the hidelevel lemma.
|
//! Determine whether a goal is impossible to satisfy because of the hidelevel lemma.
|
||||||
int hidelevelImpossible (const System sys, const Term goalterm)
|
int
|
||||||
|
hidelevelImpossible (const System sys, const Term goalterm)
|
||||||
{
|
{
|
||||||
int possible (unsigned int l, unsigned int lmin, unsigned int lprot, unsigned int lknow)
|
int possible (unsigned int l, unsigned int lmin, unsigned int lprot,
|
||||||
|
unsigned int lknow)
|
||||||
{
|
{
|
||||||
if (l < lmin)
|
if (l < lmin)
|
||||||
{
|
{
|
||||||
@ -177,4 +185,3 @@ int hidelevelImpossible (const System sys, const Term goalterm)
|
|||||||
|
|
||||||
return !iterate_interesting (sys, goalterm, possible);
|
return !iterate_interesting (sys, goalterm, possible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,4 +13,3 @@ int hidelevelInteresting (const System sys, const Term goalterm);
|
|||||||
int hidelevelImpossible (const System sys, const Term goalterm);
|
int hidelevelImpossible (const System sys, const Term goalterm);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
#
|
#
|
||||||
# Indent any changed files, ending in .c or .h
|
# Indent any changed files, ending in .c or .h
|
||||||
#
|
#
|
||||||
svn st | grep "^M.*\.[ch]$"| awk '{print $2}' | xargs indent
|
svn st | grep "^[MA].*\.[ch]$"| awk '{print $2}' | xargs indent
|
||||||
|
Loading…
Reference in New Issue
Block a user