projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d774a
)
print out brackets for array count to show humans
author
jjenista
<jjenista>
Fri, 13 May 2011 20:13:38 +0000
(20:13 +0000)
committer
jjenista
<jjenista>
Fri, 13 May 2011 20:13:38 +0000
(20:13 +0000)
Robust/src/IR/Flat/FlatNew.java
patch
|
blob
|
history
diff --git
a/Robust/src/IR/Flat/FlatNew.java
b/Robust/src/IR/Flat/FlatNew.java
index 8b1a0bbb8212b32d47b9e4357055aba92b21f5d9..c94684b1d6a3ed3d19c8da8c1bdeb286a4448696 100644
(file)
--- a/
Robust/src/IR/Flat/FlatNew.java
+++ b/
Robust/src/IR/Flat/FlatNew.java
@@
-65,8
+65,18
@@
public class FlatNew extends FlatNode {
public String toString() {
String str = "FlatNew_"+dst.toString()+"= NEW "+type.toString();
- if (size!=null)
+
+ int numEmptyBrackets = type.getArrayCount();
+ if( size != null ) {
+ --numEmptyBrackets;
+ }
+ for( int i = 0; i < numEmptyBrackets; ++i ) {
+ str += "[]";
+ }
+ if( size != null ) {
str += "["+size.toString()+"]";
+ }
+
return str;
}