summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-05-28 13:46:36 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-05-28 13:46:36 +0200
commit1a64a73c47394dab7b10e6fd87fb8390df3ad89c (patch)
treef642480f7149f2c539813049874f42ff3204f4c0
parent3ead43a313414ee523364f18e6aba25f863b312e (diff)
...
-rw-r--r--99_general.txt2
-rw-r--r--src/hastabel2idp/idp/Theory.java6
2 files changed, 5 insertions, 3 deletions
diff --git a/99_general.txt b/99_general.txt
index 9dee3df..4f0e7c7 100644
--- a/99_general.txt
+++ b/99_general.txt
@@ -1,4 +1,4 @@
procedure main(){
- printmodels(allmodels(T,S,Vout))
+ printmodels(onemodel(T,S,Vout))
}
diff --git a/src/hastabel2idp/idp/Theory.java b/src/hastabel2idp/idp/Theory.java
index 52f4ee4..282c518 100644
--- a/src/hastabel2idp/idp/Theory.java
+++ b/src/hastabel2idp/idp/Theory.java
@@ -33,6 +33,8 @@ public class Theory
{
boolean is_first;
+ out.write(" ");
+
for (final Variable argument: arguments)
{
out.write("!");
@@ -59,9 +61,9 @@ public class Theory
out.write(argument.get_name());
}
- out.write(") <=> ");
+ out.write(") <=> (");
out.write(hastabel2idp.idp.lang.Formula.convert(formula).toString());
- out.write(".");
+ out.write(").");
out.insert_newline();
}