projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c05268
)
fixed commutativity rule
author
Peizhao Ou
<peizhaoo@uci.edu>
Thu, 21 Jul 2016 00:49:47 +0000
(17:49 -0700)
committer
Peizhao Ou
<peizhaoo@uci.edu>
Thu, 21 Jul 2016 00:49:47 +0000
(17:49 -0700)
src/edu/uci/eecs/codeGenerator/CodeGeneratorUtils.java
patch
|
blob
|
history
diff --git
a/src/edu/uci/eecs/codeGenerator/CodeGeneratorUtils.java
b/src/edu/uci/eecs/codeGenerator/CodeGeneratorUtils.java
index e6fd383e249390613d9fff2fab9905650fc5e9b0..f85ec8e674176997d696414b19517167db700377 100644
(file)
--- a/
src/edu/uci/eecs/codeGenerator/CodeGeneratorUtils.java
+++ b/
src/edu/uci/eecs/codeGenerator/CodeGeneratorUtils.java
@@
-569,9
+569,9
@@
public class CodeGeneratorUtils {
code.addLine(TabbedLine(
DeclareDefine(structName2, "*M2", "(" + structName2
+ "*) m2->value"), 2));
- code.addLine(TabbedLine("return
" + rule.condition + "
;", 2));
+ code.addLine(TabbedLine("return
!(" + rule.condition + ")
;", 2));
code.addLine(TabbedLine("}"));
- code.addLine(TabbedLine("return
fals
e;"));
+ code.addLine(TabbedLine("return
tru
e;"));
code.addLine("}");
code.addLine("");