- Re-indented the files.

This commit is contained in:
ccremers
2004-11-16 12:07:55 +00:00
parent a38925c9c2
commit 506e42f841
18 changed files with 518 additions and 479 deletions

View File

@@ -60,11 +60,11 @@ solve (const struct solvepass sp, Constraintlist solvecons)
cl = constraintlistDuplicate (solvecons);
cl =
constraintlistAdd (cl,
makeConstraint (TermOp1(deVar (activeco->term)),
makeConstraint (TermOp1 (deVar (activeco->term)),
activeco->know));
cl =
constraintlistAdd (cl,
makeConstraint (TermOp2(deVar (activeco->term)),
makeConstraint (TermOp2 (deVar (activeco->term)),
activeco->know));
solvecons = cl;
flag = solve (sp, solvecons) || flag;
@@ -192,11 +192,11 @@ solve (const struct solvepass sp, Constraintlist solvecons)
cl = constraintlistDuplicate (oldcl);
cl =
constraintlistAdd (cl,
makeConstraint (TermOp(activeco->term),
makeConstraint (TermOp (activeco->term),
activeco->know));
cl =
constraintlistAdd (cl,
makeConstraint (TermKey(activeco->term),
makeConstraint (TermKey (activeco->term),
activeco->know));
solvecons = cl;
flag = solve (sp, solvecons) || flag;
@@ -368,8 +368,8 @@ sendAdd_clp (const System sys, const int run, const Termlist tl)
{
/* tuple */
tl2 = termlistShallow (tl->next);
tl2 = termlistAdd (tl2, TermOp1(t));
tl2 = termlistAdd (tl2, TermOp2(t));
tl2 = termlistAdd (tl2, TermOp1 (t));
tl2 = termlistAdd (tl2, TermOp2 (t));
sendAdd_clp (sys, run, tl2);
termlistDelete (tl2);
}
@@ -378,15 +378,15 @@ sendAdd_clp (const System sys, const int run, const Termlist tl)
/* encrypt */
Term invkey;
invkey = inverseKey (sys->know->inverses, TermKey(t));
invkey = inverseKey (sys->know->inverses, TermKey (t));
if (!hasTermVariable (invkey))
{
/* simple case: no variable inside */
knowledgeAddTerm (sys->know, t);
tl2 = termlistShallow (tl->next);
if (inKnowledge (sys->know, invkey)
&& hasTermVariable (TermOp(t)))
tl2 = termlistAdd (tl2, TermOp(t));
&& hasTermVariable (TermOp (t)))
tl2 = termlistAdd (tl2, TermOp (t));
sendAdd_clp (sys, run, tl2);
termlistDelete (tl2);
}
@@ -418,7 +418,7 @@ sendAdd_clp (const System sys, const int run, const Termlist tl)
sys->constraints = constraintlistAdd (clbuf, co);
/* we _could_ explore first if this is solveable */
knowledgeAddTerm (sys->know, t);
tl2 = termlistAdd (tl2, TermOp(t));
tl2 = termlistAdd (tl2, TermOp (t));
sendAdd_clp (sys, run, tl2);
termlistDelete (tl2);