-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unexpected Output from delete from array (#700)
Changed how the non-flat array gets copied from the CopySubarray function. The changes are done for non-flat type arrays and for flat type it's still the same. I have used what we have for elementType->CopyData so that a proper copy(deep copy) happens.
- Loading branch information
Showing
4 changed files
with
110 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test-it/ExpectedResults/ArrayDeleteMultiDimensionString.vtr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Loop no - 1 | ||
Input 4D Array of String | ||
(((('a1' 'a2' 'a3' 'a4') ('b1' 'b2' 'b3' 'b4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) | ||
Deleted Array | ||
((('b1' 'b2' 'b3' 'b4'))) | ||
Output Array | ||
(((('a1' 'a2' 'a3' 'a4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) | ||
Loop no - 2 | ||
Input 4D Array of String | ||
(((('a1' 'a2' 'a3' 'a4') ('b1' 'b2' 'b3' 'b4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) | ||
Deleted Array | ||
((('b1' 'b2' 'b3' 'b4'))) | ||
Output Array | ||
(((('a1' 'a2' 'a3' 'a4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) | ||
Loop no - 3 | ||
Input 4D Array of String | ||
(((('a1' 'a2' 'a3' 'a4') ('b1' 'b2' 'b3' 'b4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) | ||
Deleted Array | ||
((('b1' 'b2' 'b3' 'b4'))) | ||
Output Array | ||
(((('a1' 'a2' 'a3' 'a4') ('c1' 'c2' 'c3' 'c4') ('d1' 'd2' 'd3' 'd4') ('e1' 'e2' 'e3' 'e4') ('f1' 'f2' 'f3' 'f4') ('g1' 'g2' 'g3' 'g4')))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
define (WebApp%3A%3Aindex%2Egviweb dv(.VirtualInstrument ( | ||
Locals: c( // Data Space | ||
e(dv(.String 'WebApp::index.gviweb')local0) | ||
ce(dv(.Int32 3)c1) | ||
ce(dv(.Int32 0)c2) | ||
e(.Int32 local3) | ||
e(.Int32 local4) | ||
ce(dv(.Int32 10)c5) | ||
e(.UInt32 local6) | ||
ce(dv(.Int32 1)c7) | ||
ce(dv(a(.String * * * *) (((('a1' 'a2' 'a3' 'a4' )('b1' 'b2' 'b3' 'b4' )('c1' 'c2' 'c3' 'c4' )('d1' 'd2' 'd3' 'd4' )('e1' 'e2' 'e3' 'e4' )('f1' 'f2' 'f3' 'f4' )('g1' 'g2' 'g3' 'g4' )))))c8) | ||
e(a(.String * * * *) local9) | ||
e(a(.String * * *) local10) | ||
de(a(.String * * *) dataItem_DeletedPortion) | ||
e(a(.String * * *) local12) | ||
de(a(.String * * * *) dataItem_ArrayWithSubsetDeleted) | ||
e(a(.String * * * *) local14) | ||
e(.UInt32 local15) | ||
e(.Boolean local16) | ||
ce(dv(.Int32 0)c17) | ||
e(dv(.Int32 2)local18) | ||
) | ||
clump(1 | ||
DebugPoint("1;{::VireoDevSystem::Interactive::WebApp::index.gviweb::#12##WebApp;}" c1) | ||
IsGE(c2 c1 local16) | ||
BranchIfTrue(1 local16) | ||
Branch(2) | ||
Perch(2) | ||
Copy(c17 local3) | ||
Copy(c1 local4) | ||
Perch(3) | ||
Convert(c5 local6) | ||
DebugPoint("1;{::VireoDevSystem::Interactive::WebApp::index.gviweb::#23d77726c0714674bcf64c1054667ee4##WebApp;}" c5 c7 c8) | ||
ArrayDelete(local9 local10 c8 * c7 local18 ) | ||
Copy(local10 dataItem_DeletedPortion) | ||
DebugPoint("1;{::VireoDevSystem::Interactive::WebApp::index.gviweb::#110262b5adda4912928eedd243f5bf67##WebApp;}" local9 local10) | ||
Copy(local9 dataItem_ArrayWithSubsetDeleted) | ||
WaitMilliseconds(local6 * ) | ||
DebugPoint("1;{::VireoDevSystem::Interactive::WebApp::index.gviweb::#58099fec38a94a8297cf980d7e70ae5a##WebApp;}" ) | ||
Increment(local3 local3 ) | ||
Printf("Loop no - ") | ||
Printf("%d\n" local3) | ||
Println("Input 4D Array of String") | ||
Println(c8) | ||
Println("Deleted Array") | ||
Println(dataItem_DeletedPortion) | ||
Println("Output Array") | ||
Println(dataItem_ArrayWithSubsetDeleted) | ||
BranchIfGE(4 local3 local4) | ||
Branch(3) | ||
Perch(4) | ||
Branch(0) | ||
Perch(1) | ||
Branch(0) | ||
Perch(0) | ||
DebugPoint("1;{::VireoDevSystem::Interactive::WebApp::index.gviweb::#e9c42849feb046fabc82ca61e2684d21##WebApp;}" ) | ||
/* Clump Ended. */ ) | ||
))) | ||
enqueue (WebApp%3A%3Aindex%2Egviweb) | ||
//Finished!! :D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters