This file contains hidden or 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
| struct allocsite_entry | |
| { | |
| void *next; | |
| void *prev; | |
| void *allocsite; | |
| struct uniqtype *uniqtype; | |
| }; | |
| struct allocsite_entry allocsites[] = { | |
| { (void*)0, (void*)0, (void*)0, (struct uniqtype *)0 } |
This file contains hidden or 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
| tools/Makefile.allocsites:13: ALLOCSITES_BASE is /usr/lib/allocsites | |
| all_alloc_descriptors is: malloc(Zpi)p malloc(Z)p calloc(zZ)p realloc(pZ)p memalign(zZ)p alloca(Z)pmeta_instr_regexp is: ^([0-9a-f]*) <([^>]*)>.*((call|jmp).*(<((malloc)|(calloc)|(realloc)|(memalign)|(posix_memalign)|(valloc)|(__monalloca_)|(malloc)|(__wrap_malloc)|(malloc)|(__wrap_malloc)|(calloc)|(__wrap_calloc)|(realloc)|(__wrap_realloc)|(memalign)|(__wrap_memalign)|(alloca)|(__wrap_alloca))|.*\*)|.* 00 00 00 00.*callq)objdumpmeta has meta_instr_regexp: ^([0-9a-f]*) <([^>]*)>.*((call|jmp).*(<((malloc)|(calloc)|(realloc)|(memalign)|(posix_memalign)|(valloc)|(__monalloca_)|(malloc)|(__wrap_malloc)|(malloc)|(__wrap_malloc)|(calloc)|(__wrap_calloc)|(realloc)|(__wrap_realloc)|(memalign)|(__wrap_memalign)|(alloca)|(__wrap_alloca))|.*\*)|.* 00 00 00 00.*callq)Written allocsites output to /tmp/root/tmp.aBS0DEDe | |
| Written objdump output to /tmp/root/tmp.5nWZmKiT | |
| Found allocation sites:· | |
| ffffffff80cc73a7 cam_quirkmatch +0x2a | |
| ffffffff80cc7a4b ca |
This file contains hidden or 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
| all_alloc_descriptors is: malloc(Z)p calloc(zZ)p realloc(pZ)p memalign(zZ)p alloca(Z)p | |
| meta_instr_regexp is: ^([0-9a-f]*) <([^>]*)>.*((call|jmp).*(<((malloc)|(calloc)|(realloc)|(memalign)|(posix_memalign)|(valloc)|(__monalloca_)|( malloc)|(__wrap_malloc)|(calloc)|(__wrap_calloc)|(realloc)|(__wrap_realloc)|(memalign)|(__wrap_memalign)|(alloca)|(__wrap_alloca))|.*\*)|.* 00 00 00 00.*callq) | |
| objdumpmeta has meta_instr_regexp: ^([0-9a-f]*) <([^>]*)>.*((call|jmp).*(<((malloc)|(calloc)|(realloc)|(memalign)|(posix_memalign)|(valloc)|(__monalloca_)|( malloc)|(__wrap_malloc)|(calloc)|(__wrap_calloc)|(realloc)|(__wrap_realloc)|(memalign)|(__wrap_memalign)|(alloca)|(__wrap_alloca))|.*\*)|.* 00 00 00 00.*callq) | |
| Written allocsites output to /tmp/root/tmp.ko6S5mnF | |
| Written objdump output to /tmp/root/tmp.1ccPdjSJ | |
| Found allocation sites: | |
| 00000000004005d6 atexit@plt -0xa | |
| 00000000004005e0 atexit@plt | |
| 00000000004005f0 free@plt | |
| 0000000000400600 puts@plt |
This file contains hidden or 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
| SQL Query: | |
| SELECT name, title | |
| FROM wikiarticles | |
| INNER JOIN trends_wikiarticles_junction | |
| ON wikiarticles.wikiarticle_id = trends_wikiarticles_junction.wikiarticle_id | |
| INNER JOIN trends | |
| ON trends.trend_id = trends_wikiarticles_junction.trend_id; | |
| Some of the English trends and the articles they had stored under them: |
This file contains hidden or 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
| // Quick sort, worst case, O(n^2), average, O(nlogn), unstable | |
| package sorting; | |
| public class Quick extends Sorter { | |
| java.util.Random rand; | |
| private void recurse(int[] a, int L, int R) { |
This file contains hidden or 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
| (* 1 *) | |
| fun propercuts (x::xs) = | |
| let fun propcut (y::ys) ac = (rev (ac), y::ys) :: (propcut ys (y::ac)) | |
| | propcut [] _ = [] | |
| in propcut xs [x] | |
| end | |
| | propercuts _ = []; | |
This file contains hidden or 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
| #include <cstdio> | |
| #include <iostream> | |
| #include <cstring> | |
| using namespace std; | |
| int T, N, num[1000]; | |
| int dp[1000][2]; | |
This file contains hidden or 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
| #include <fstream> | |
| #include <iostream> | |
| #include <vector> | |
| #include <map> | |
| #include <string> | |
| #include <algorithm> | |
| using namespace std; | |
| ifstream wordsin ("words.txt"); | |
| ifstream anagin ("anagin.txt"); |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int N; | |
| int a, b, c; | |
| cin>>N; |
This file contains hidden or 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
| #include <fstream> | |
| using namespace std; | |
| #define MAXN 100000 | |
| ifstream fin ("frogin.txt"); | |
| ofstream fout ("frogout.txt"); | |
| int N, h[MAXN], best=0, dpl[MAXN]={0}, dpr[MAXN]={0}; | |
NewerOlder