repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
mangesh2102000/Programming-Lab-CS112
CS lab/Assignment 3/prog3.c
<filename>CS lab/Assignment 3/prog3.c // Name of coder: <NAME> // Roll No: 1801CS16 // Date created: 29/01/2019 // Brief objective of the program: Returns the smallest prime number p >= n of form 4k+1 (p = a2 + b2). Prints the values of p, a, b. #include <stdio.h> #include <math.h> int is_prime(long long int p); voi...
mangesh2102000/Programming-Lab-CS112
CS lab/Assignment 4/prog4.c
<reponame>mangesh2102000/Programming-Lab-CS112 // Name of coder : <NAME> // Roll No : 1801cs16 // Date created : 05/02/2019 // Brief objective of the program: Decimal to Binary Conversion, Calculating The Hamming Distance, Binary to Gray Conversion. #include <stdio.h> #include <math.h> // XOR function int XO...
mangesh2102000/Programming-Lab-CS112
CS lab/endsem/endsem.c
<filename>CS lab/endsem/endsem.c // Name of coder: <NAME> // Roll No. : 1801cs16 // Date Created : 23RD APR 2019 // Brief Objective of the program : Initializing a matrix with given conditions and Printing it clockwise spirally #include<stdio.h> //Global Declaration of 2D array as Matrix int M[25][25]; //Functio...
mangesh2102000/Programming-Lab-CS112
CS lab/Assignment 2/prog2b.c
<gh_stars>0 // Name of coder: <NAME> // Roll No: 1801CS16 // Date created: 22/01/2019 // Brief objective of the program:Find the time taken by the trains to cross each other completely. #include <stdio.h> void main() { // Declare variables float x, y, time; // Prompt the user for input printf("Enter x and y in...
mangesh2102000/Programming-Lab-CS112
CS lab/Assignment 10/prog10.c
// Name : <NAME> // Roll No. : 1801cs16 // Date created : 10/04/2019 // Breif Objective: Task in given assignment #include<stdio.h> #include<stdlib.h> #define MAXITERATION 100 /* int isequal(float a[],float b[], int n) { int i; for(i=0;i<n;i++) { if(a[i]-b[i]) return 0; } return 1; } */ i...
mangesh2102000/Programming-Lab-CS112
CS lab/Assignment 6/prog6.c
<gh_stars>0 // Name of coder : <NAME> // Roll No : 1801CS16 // Date created : 19/02/2019 // Brief objective of the program : Program that completes all the tasks in Assignment 6 #include <stdio.h> #include <math.h> // Function to check perfect square int is_perfect_square(int y) { if (sqrt(y) == (int)...
zatkh/sandboxed-api
sandboxed_api/util/status.h
<filename>sandboxed_api/util/status.h<gh_stars>0 // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Un...
zatkh/sandboxed-api
sandboxed_api/sandbox2/executor.h
<reponame>zatkh/sandboxed-api<gh_stars>0 // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
zatkh/sandboxed-api
sandboxed_api/var_void.h
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
zatkh/sandboxed-api
sandboxed_api/sandbox2/network_proxy_server.h
<reponame>zatkh/sandboxed-api // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
zatkh/sandboxed-api
sandboxed_api/var_reg.h
<reponame>zatkh/sandboxed-api // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
zatkh/sandboxed-api
sandboxed_api/var_ptr.h
<reponame>zatkh/sandboxed-api<gh_stars>0 // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
ArduinoSpace/TrafficLight
sketch/people.h
<filename>sketch/people.h<gh_stars>0 #ifndef People_h #define People_h #include "Arduino.h" class People { public: People(int pinRed, int pinGreen); void enableRed(); void disableRed(); void enableGreen(); void disableGreen(); private: int _pinRed; int _pinGreen; void...
ArduinoSpace/TrafficLight
sketch/car.h
#ifndef Car_h #define Car_h #include "Arduino.h" class Car { public: Car(int pinRed, int pinYellow, int pinGreen); void enableRed(); void disableRed(); void enableYellow(); void disableYellow(); void enableGreen(); void disableGreen(); private: int _pinRed; int _pi...
openharmony-sig-ci/third_party_NuttX
fs/vfs/fs_close.c
/**************************************************************************** * fs/vfs/fs_close.c * * Copyright (C) 2007-2009, 2012, 2016 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
openharmony-sig-ci/third_party_NuttX
fs/vfs/fs_rmdir.c
<filename>fs/vfs/fs_rmdir.c /**************************************************************************** * fs/vfs/fs_rmdir.c * * Copyright (C) 2007-2009, 2014, 2017 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, ...
openharmony-sig-ci/third_party_NuttX
drivers/usbdev/gadget/cdcacm.c
<filename>drivers/usbdev/gadget/cdcacm.c<gh_stars>0 /**************************************************************************** * drivers/usbdev/cdcacm.c * * Copyright (C) 2011-2013, 2016-2017 <NAME>. All rights reserved. * Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved. * Autho...
openharmony-sig-ci/third_party_NuttX
fs/mount/fs_mount.c
/**************************************************************************** * fs/mount/fs_mount.c * * Copyright (C) 2007-2009, 2011-2013, 2015, 2017-2019 <NAME>. All * rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are...
openharmony-sig-ci/third_party_NuttX
fs/vfs/fs_rename.c
/**************************************************************************** * fs/vfs/fs_rename.c * * Copyright (C) 2007-2009, 2014, 2017 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
openharmony-sig-ci/third_party_NuttX
fs/romfs/fs_romfs.c
<reponame>openharmony-sig-ci/third_party_NuttX<gh_stars>0 /**************************************************************************** * rm/romfs/fs_romfs.h * * Copyright (C) 2008-2009, 2011, 2017-2018 <NAME>. All rights * reserved. * Author: <NAME> <<EMAIL>> * * References: Linux/Documentation/filesyst...
HoldenHc/bluecove
src/main/c-gpl/BlueCoveBlueZ_SDPServer.c
/** * BlueCove BlueZ module - Java library for Bluetooth on Linux * Copyright (C) 2008 <NAME> * Copyright (C) 2008 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either versio...
HoldenHc/bluecove
src/main/c/intelbth/OSXStackRFCOMM.h
/** * BlueCove - Java library for Bluetooth * Copyright (C) 2007-2008 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licens...
HoldenHc/bluecove
src/main/c/intelbth/BlueSoleilStack.h
/** * BlueCove - Java library for Bluetooth * Copyright (C) 2006-2008 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licens...
HoldenHc/bluecove
src/main/c/intelbth/OSXStackRFCOMMServer.h
<filename>src/main/c/intelbth/OSXStackRFCOMMServer.h /** * BlueCove - Java library for Bluetooth * Copyright (C) 2007-2008 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informati...
HoldenHc/bluecove
src/main/c/intelbth/OSXStackDiscovery.h
/** * BlueCove - Java library for Bluetooth * Copyright (C) 2007-2008 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licens...
HoldenHc/bluecove
src/main/c-gpl/BlueCoveBlueZ.h
<reponame>HoldenHc/bluecove /** * BlueCove BlueZ module - Java library for Bluetooth on Linux * Copyright (C) 2008 <NAME> * Copyright (C) 2008 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Softwa...
HoldenHc/bluecove
src/main/c/intelbth/common.h
<gh_stars>0 /** * BlueCove - Java library for Bluetooth * Copyright (C) 2006-2008 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownersh...
HoldenHc/bluecove
src/main/c-gpl/common.c
/** * BlueCove - Java library for Bluetooth * Copyright (C) 2008 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opt...
XueBaoPeng/workBlog
Codes/Data_Structures/Week_2/Reversing_Linked_List.c
// See PAT_B 1025 #include <stdio.h> #include <stdlib.h> typedef int ElementType; typedef struct _node { union { int Address; int K; } Meta; int Data; int NextAddress; struct _node* Next; }Node, *List; List Read(); List Sort(List L); List Reverse(List L); void Print(List L); int main() { List L; L ...
TarekVito/ParticleSwarmOpt
PSO/Particle_DWPSO.h
<gh_stars>1-10 #ifndef PARTICLE_RPSO_H #define PARTICLE_RPSO_H #include<vector> #include"Particle.h" #include"PSO_DWPSO.h" using namespace std; class Particle_DWPSO : public Particle { private: float dLow, dHigh, Ws, We, c1, c2, cN; public: Particle_DWPSO(int numberOfFeatures) : Particle(numberOfFeatures) {} virtu...
TarekVito/ParticleSwarmOpt
PSO/Particle_TVACPSO.h
<gh_stars>1-10 #ifndef PARTICLE_TVACPSO_H #define PARTICLE_TVACPSO_H #include<vector> #include"Particle.h" #include"PSO_TVACPSO.h" using namespace std; class Particle_TVACPSO : public Particle { private: float Ws, We, c1s, c2s, c1e, c2e, cN; public: Particle_TVACPSO(int numberOfFeatures) : Particle(numberOfFeatures)...
TarekVito/ParticleSwarmOpt
PSO/PSO_TVACPSO.h
<reponame>TarekVito/ParticleSwarmOpt #ifndef PSO_TVACPSO_H #define PSO_TVACPSO_H #include<vector> #include"PSO_AlgorithmParam.h" using namespace std; class PSO_TVACPSO : public PSO_AlgorithmParam { private: float Ws, We, c1s, c2s, c1e, c2e, cN; public: PSO_TVACPSO(){} PSO_TVACPSO(float _Ws, float _We, float _c1s, f...
TarekVito/ParticleSwarmOpt
PSO/Particle.h
<filename>PSO/Particle.h #ifndef PARTICLE_H #define PARTICLE_H #include<vector> #include"PSO_AlgorithmParam.h" using namespace std; class Particle { private: void updatePBest(); protected: Particle* pBest = NULL; float fittnessValue; vector<float> features, velocity; vector<float> minVelocity, maxVelocity, maxPo...
TarekVito/ParticleSwarmOpt
PSO/PSO_DWPSO.h
#ifndef PSO_TVACPSO_H #define PSO_TVACPSO_H #include<vector> #include"PSO_AlgorithmParam.h" using namespace std; class PSO_DWPSO : public PSO_AlgorithmParam { private: float dLow, dHigh, Ws, We, c1, c2, cN; public: PSO_DWPSO(){} PSO_DWPSO(float _dLow, float _dHigh, float _Ws, float _We, float _c1, float _c2, float...
TarekVito/ParticleSwarmOpt
PSO/PSO_DEFAULT.h
#ifndef PSO_DEFAULT_H #define PSO_DEFAULT_H #include<vector> #include"PSO_AlgorithmParam.h" using namespace std; class PSO_DEFAULT : public PSO_AlgorithmParam { private: float w, c1, c2, cN; public: PSO_DEFAULT(){} PSO_DEFAULT(float _w, float _c1, float _c2, float _cN) : w(_w), c1(_c1), c2(_c2), cN(_cN) { } vo...
TarekVito/ParticleSwarmOpt
PSO/Particle_DEFAULT.h
#ifndef PARTICLE_RPSO_H #define PARTICLE_RPSO_H #include<vector> #include"Particle.h" #include"PSO_DEFAULT.h" using namespace std; class Particle_DEFAULT : public Particle { private: float w, c1, c2, cN; public: Particle_DEFAULT(int numberOfFeatures) : Particle(numberOfFeatures) {} virtual void Particle::update...
TarekVito/ParticleSwarmOpt
PSO/Particle_RPSO.h
#ifndef PARTICLE_RPSO_H #define PARTICLE_RPSO_H #include<vector> #include"Particle.h" #include"PSO_RPSO.h" #include"PSO.h" using namespace std; class Particle_RPSO : public Particle { private: float dLow, dHigh, w, c1, c2, cN; public: Particle_RPSO(int numberOfFeatures) : Particle(numberOfFeatures) {} virtual voi...
TarekVito/ParticleSwarmOpt
PSO/ParticleSinTest.h
<filename>PSO/ParticleSinTest.h #ifndef ParticleSinTest_H #define ParticleSinTest_H #include<vector> #include"Particle_RPSO.h" using namespace std; class ParticleSinTest : public Particle_RPSO { public: ParticleSinTest(int numberOfFeatures) : Particle_RPSO(numberOfFeatures) { for (int i = 0; i < numberOfFeatures;...
TarekVito/ParticleSwarmOpt
PSO/PSO_RPSO.h
<gh_stars>1-10 #ifndef PSO_RPSO_H #define PSO_RPSO_H #include<vector> #include"PSO_AlgorithmParam.h" using namespace std; class PSO_RPSO : public PSO_AlgorithmParam { private: float dLow, dHigh, w, c1, c2, cN; public: PSO_RPSO(){} PSO_RPSO(float _dLow, float _dHigh, float _w, float _c1, float _c2, float _cN) : d...
TarekVito/ParticleSwarmOpt
PSO/PSO_AlgorithmParam.h
<reponame>TarekVito/ParticleSwarmOpt #ifndef PSO_ALGORITHMPARAM_H #define PSO_ALGORITHMPARAM_H #include<vector> #include"Particle.h" using namespace std; class PSO_AlgorithmParam{}; #endif
TarekVito/ParticleSwarmOpt
PSO/PSO.h
<gh_stars>1-10 #ifndef PSO_H #define PSO_H #include<vector> #include"Particle.h" #include"PSO_AlgorithmParam.h" #include <fstream> using namespace std; enum ParticleType { Default }; class PSO { private: static vector<Particle*> particles; pair<vector<float>&, float> getLocalBest(int particleIdx, int NoNeighbors); ...
waddlesplash/HaikuPlot
HaikuPlot/HaikuPlot.h
<gh_stars>0 /* * Copyright 2015 <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT license. */ #ifndef HAIKUPLOT_H #define HAIKUPLOT_H #include <Bitmap.h> #include <Directory.h> #include <Entry.h> #include <FilePanel.h> #include <MenuBar.h> #include <Node.h> #include <Path.h> #include <S...
abin1525/rose-edg
projects/MultiLevelMemory/tests/stencil-CNS.c
<reponame>abin1525/rose-edg<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include <math.h> #define min(a,b) (((a)<(b))?(a):(b)) #define max(a,b) (((a)>(b))?(a):(b)) #define REAL double //#define ntotal 16 #define nghost 4 #define ncube 4 #define nc 5 #define nxL0 (3) // 1...
abin1525/rose-edg
projects/ShiftCalculus2/mpiCodeGenerator.h
/* * * * V 0.2 using real frontend parser and dedicated OpenMP-like AST nodes for program representation * This is necessary to parse complex extended map clause with dist_data info. * The previous version's MPI_PragmaAttribute is no longer used. * * Liao 12/11/2015 * * V 0.1 * Parsing pragmas and ge...
abin1525/rose-edg
projects/MultiLevelMemory/tests/jacobi.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #define REAL float //#define ntotal 16 #define nghost 1 #define ncube 2 // 2 + 2 * nghost #define nxL0 (3) // 1 + 2*nghost #define nyL0 (3) // 1 + 2*nghost #define nxL1 (4) // 2 + 2*nghost #define nyL1 (4) // 2 + 2*nghost #define nxL2 (6) // 4 + 2*nghost #defi...
abin1525/rose-edg
projects/CodeThorn/src/AnalysisAstAnnotator.h
#ifndef ANALYSIS_AST_ANNOTATOR_H #define ANALYSIS_AST_ANNOTATOR_H #include "AstAnnotator.h" #include "DFAnalysisBase.h" class AnalysisAstAnnotator : public SPRAY::AstAnnotator { public: AnalysisAstAnnotator(SPRAY::Labeler* labeler); AnalysisAstAnnotator(SPRAY::Labeler* labeler, SPRAY::VariableIdMapping* variableI...
abin1525/rose-edg
projects/CodeThorn/src/EquivalenceChecking.h
#ifndef EQUIVALENCE_CHECKING_H #define EQUIVALENCE_CHECKING_H #include "Labeler.h" #include "VariableIdMapping.h" #include "Specialization.h" class SgNode; class SgPragmaDeclaration; class EquivalenceChecking { public: typedef map<SgForStatement*,SgPragmaDeclaration*> ForStmtToOmpPragmaMap; static bool isInsid...
abin1525/rose-edg
src/util/Sawyer/SharedPointer.h
<gh_stars>1-10 // WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #ifndef Sawyer_SharedPtr_H #define Sawyer_SharedPtr_H #include <Sawyer/Assert.h> ...
abin1525/rose-edg
src/util/Sawyer/Access.h
// WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #ifndef Sawyer_Access_H #define Sawyer_Access_H namespace Sawyer { namespace Access { /** Bits ...
abin1525/rose-edg
projects/simulator2/RSIM_Printer.h
#ifndef ROSE_RSIM_Print_H #define ROSE_RSIM_Print_H class RSIM_Thread; /** Holds information about how to translate a constant or flag to a string. Some of the printing functions take an array * of these objects, and the array is terminated with value having a null pointer for the 'str' member. The T() and E_END ...
abin1525/rose-edg
src/frontend/Partitioner2/OwnedDataBlock.h
#ifndef ROSE_Partitioner2_OwnedDataBlock_H #define ROSE_Partitioner2_OwnedDataBlock_H #include <Partitioner2/BasicBlock.h> #include <Partitioner2/BasicTypes.h> #include <Partitioner2/DataBlock.h> #include <Partitioner2/Function.h> #include <Sawyer/Map.h> #include <boost/serialization/access.hpp> #include <boost/seri...
abin1525/rose-edg
src/util/Sawyer/Lexer.h
<gh_stars>1-10 // WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #ifndef Sawyer_Lexer_H #define Sawyer_Lexer_H #include <Sawyer/AllocatingBuffer.h...
abin1525/rose-edg
src/3rdPartyLibraries/MSTL/AttributeMechanism.h
<reponame>abin1525/rose-edg // Author: <NAME> // $Id: AttributeMechanism.h,v 1.4 2006/04/24 00:21:27 dquinlan Exp $ // This class template was removed because nothing in the ROSE library, ROSE tests, or associated ROSE projects uses it. If // you're trying to store attributes in a Sage IR node ("Sg*" class) then use t...
abin1525/rose-edg
src/ROSETTA/src/GrammarFile.h
#ifndef GRAMMAR_FILE_H #define GRAMMAR_FILE_H // DQ (3/12/2006): We want to remove config.h from being placed in every source file #include <rose_config.h> #include "fileoffsetbits.h" // DQ (3/22/2009): Added MSVS support for ROSE. #include "rose_msvc.h" #include "rose_paths.h" #include <stdio.h> #include <stdlib.h>...
abin1525/rose-edg
src/midend/binaryAnalyses/BinaryBestMapAddress.h
#ifndef ROSE_BinaryAnalysis_BestMapAddress #define ROSE_BinaryAnalysis_BestMapAddress #include <Diagnostics.h> #include <Partitioner2/Engine.h> #include <Sawyer/Set.h> namespace rose { namespace BinaryAnalysis { /** Finds best address for mapping code. * * This analysis looks at function addresses and function ca...
abin1525/rose-edg
src/frontend/SageIII/manglingSupport.h
<gh_stars>1-10 #ifndef mangling_support_INCLUDED #define mangling_support_INCLUDED // DQ (10/31/2015): Adding new namespace to organize mangled name handling. namespace MangledNameSupport { // Although the purpose of this namespace is to eventually have most or all of // the mangled name support function below...
abin1525/rose-edg
projects/CodeThorn/src/CodeThornException.h
#ifndef CODETHORN_EXCEPTION #define CODETHORN_EXCEPTION #include <exception> namespace CodeThorn { class Exception : public std::exception { public: Exception(std::string text) { this->text=text; } const char* what() const throw() { return text.c_str(); } ~Exception() throw() { ...
abin1525/rose-edg
src/midend/binaryAnalyses/BinaryPointerDetection.h
<gh_stars>1-10 #ifndef ROSE_BinaryAnalysis_PointerDetection_H #define ROSE_BinaryAnalysis_PointerDetection_H #include <BaseSemantics2.h> #include <MemoryCellList.h> #include <Sawyer/Set.h> namespace rose { namespace BinaryAnalysis { // Forwards class Disassembler; namespace Partitioner2 { class Partitioner; ...
abin1525/rose-edg
src/util/Combinatorics.h
#ifndef ROSE_Combinatorics_H #define ROSE_Combinatorics_H #include "LinearCongruentialGenerator.h" #include <algorithm> #include <cassert> #include <list> #include <stdint.h> #include <string> #include <vector> namespace Combinatorics { /** Returns the factorial of @p n. */ template<typename T> static T factorial(T...
abin1525/rose-edg
projects/simulator2/RSIM_ColdFire.h
<gh_stars>1-10 #ifndef ROSE_RSIM_ColdFire_H #define ROSE_RSIM_ColdFire_H #include "RSIM_Simulator.h" class RSIM_ColdFire: public RSIM_Simulator { public: RSIM_ColdFire() { init(); } virtual void updateExecutablePath() ROSE_OVERRIDE; virtual SgAsmInterpretation* parseMainExecutable(RSIM_Proces...
abin1525/rose-edg
projects/CodeThorn/src/ArrayElementAccessData.h
#ifndef ARRAY_ELEMENT_ACCESS_DATA #define ARRAY_ELEMENT_ACCESS_DATA #include <set> #include "VariableIdMapping.h" struct ArrayElementAccessData { SPRAY::VariableId varId; std::vector<int> subscripts; SPRAY::VariableId getVariable() const; int getSubscript(int numOfDimension) const; int getDimensions() const...
abin1525/rose-edg
projects/MultiLevelMemory/src/mlmapi.h
<reponame>abin1525/rose-edg #ifndef _MLMAPI_H #define _MLMAPI_H #include <rose.h> #include "polyopt/PolyOpt.hpp" namespace MLMAPIInsertion { class mlmAttribute : public AstAttribute { private: void init() { mlmType = 0; } public: int mlmType; mlmAttribute() { init(); } mlmAttribute(int type) ...
abin1525/rose-edg
config/preinclude-cuda.h
<filename>config/preinclude-cuda.h // TV (7/24/2015): including cstdlib causes: // rose/src/backend/unparser/nameQualificationSupport.C:5293: // virtual NameQualificationInheritedAttribute NameQualificationTraversal::evaluateInheritedAttribute(SgNode*, NameQualificationInheritedAttribute): // ...
abin1525/rose-edg
projects/autoParallelization/tests/references/rose_slowInput_47.c
<reponame>abin1525/rose-edg<gh_stars>1-10 #include "omp.h" typedef double real8; /************************************************************************ * Function : StressZero * * Purpose : ************************************************************************/ void StressZero(real8 *newSxx,real8 *newSy...
abin1525/rose-edg
src/frontend/Experimental_OpenFortranParser_ROSE_Connection/UntypedTraversal.h
#ifndef UNTYPED_TRAVERSAL_H #define UNTYPED_TRAVERSAL_H //----------------------------------------------------------------------------------- // The SgUntyped::UntypedTraversal class is used to traverse SgUntypedNodes and // convert them to regular SgNodes. //-----------------------------------------------------------...
abin1525/rose-edg
projects/ShiftCalculus/shiftCalculusCompiler.h
<filename>projects/ShiftCalculus/shiftCalculusCompiler.h // Header file for Stencil Calculus Compiler // void generateStencilCode(StencilEvaluation_SynthesizedAttribute & result_stencilEval); // Liao, a flag to control if CUDA code should be generated extern bool b_gen_cuda;
abin1525/rose-edg
projects/BinaryAnalysisTools/bROwSE/Application.h
#ifndef bROwSE_Application_H #define bROwSE_Application_H #include <bROwSE/bROwSE.h> #include <Partitioner2/Partitioner.h> #include <Sawyer/CommandLine.h> #include <Wt/WApplication> #include <Wt/WEnvironment> namespace bROwSE { class Application: public Wt::WApplication { public: enum Phase { SplashPhas...
abin1525/rose-edg
src/frontend/SageIII/sageInterface/sageBuilder.h
<reponame>abin1525/rose-edg #ifndef ROSE_SAGE_BUILDER_INTERFACE #define ROSE_SAGE_BUILDER_INTERFACE #include <string> /*! \defgroup frontendSageHighLevelInterface High level AST builders \ingroup ROSE_FrontEndGroup \brief This namespace contains high level SAGE III AST node and subtree builders Building AST ...
abin1525/rose-edg
src/frontend/Disassemblers/InstructionEnumsMips.h
/* Enum constants for MIPS architectures */ #ifndef ROSE_ENUMS_MIPS_H #define ROSE_ENUMS_MIPS_H /** MIPS major register numbers. */ enum MipsRegisterClass { mips_regclass_gpr, /**< General purpose registers. Minors are 0..31. */ mips_regclass_spr, /**< Special purpose registers. Minors are th...
abin1525/rose-edg
projects/CodeThorn/src/AnalysisAbstractionLayer.h
#ifndef ANALYSISABSTRACTIONLAYER_H #define ANALYSISABSTRACTIONLAYER_H // Author: <NAME>, 2013. #include "VariableIdMapping.h" #include "PointerAnalysisInterface.h" namespace AnalysisAbstractionLayer { SPRAY::VariableIdSet globalVariables(SgProject* project, SPRAY::VariableIdMapping* variableIdMapping); SPRAY::Va...
abin1525/rose-edg
src/util/Sawyer/SharedObject.h
<reponame>abin1525/rose-edg // WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #ifndef Sawyer_SharedObject_H #define Sawyer_SharedObject_H #include...
abin1525/rose-edg
projects/CodeThorn/src/Normalization.h
namespace SPRAY { class Normalization { public: static void normalizeAst(SgNode* root); private: static void convertAllForsToWhiles (SgNode* top); /* If the given statement contains any break statements in its body, add a new label below the statement and change the breaks into gotos to that new label. */ ...
abin1525/rose-edg
projects/simulator2/RSIM_Thread.h
#ifndef ROSE_RSIM_Thread_H #define ROSE_RSIM_Thread_H #include "RSIM_Semantics.h" #include "RSIM_Process.h" /** Class to represent a single simulated thread. * * Each simulated thread runs in a single thread of the simulator. When a specimen creates a new simulated thread, ROSE creates * a new real thread to sim...
abin1525/rose-edg
src/midend/binaryAnalyses/BinaryString.h
<gh_stars>1-10 #ifndef ROSE_BinaryAnalysis_String_H #define ROSE_BinaryAnalysis_String_H #include <MemoryMap.h> #include <Sawyer/CommandLine.h> #include <Sawyer/Optional.h> namespace rose { namespace BinaryAnalysis { /** Suport for finding strings in memory. * * This namespace provides support for various kinds o...
abin1525/rose-edg
projects/autoParallelization/tests/references/rose_struct.c
// Test if the same data member accesses from two different objects // are treated as different memory location access. // // In AST, both varRefExps are pointing to the same variable symbol. // This can be confusing to analysis. // Liao 7/7/2016 struct VectorXY { double x; double y; } ; struct VectorXY v1[10]; s...
abin1525/rose-edg
projects/CodeThorn/src/IntervalPropertyState.h
<filename>projects/CodeThorn/src/IntervalPropertyState.h #ifndef INTERVAL_PROPERTY_STATE_H #define INTERVAL_PROPERTY_STATE_H #include <iostream> #include "VariableIdMapping.h" #include "NumberIntervalLattice.h" #include "PropertyState.h" namespace SPRAY { class IntervalPropertyState : public Lattice { public: Inter...
abin1525/rose-edg
projects/ArithmeticMeasureTool/src/ai_tool_runtime.c
<reponame>abin1525/rose-edg<gh_stars>1-10 #include "ai_tool_runtime.h" int * _loop_counters; int _loop_count; char* _ofilename; static void allocAndCopyStr(char** dest, const char* src) { *dest = (char*) malloc((strlen(src)+1)*sizeof(char)); strcpy (*dest, src); assert (strlen(src) == strlen (*dest)); } void a...
abin1525/rose-edg
projects/CodeThorn/src/ParProTransitionGraph.h
// Author: <NAME>, 2016. #ifndef PAR_PRO_TRANSITION_GRAPH_H #define PAR_PRO_TRANSITION_GRAPH_H #include "sage3basic.h" // SPRAY includes // #include "Flow.h" #include "StateRepresentations.h" // CodeThorn includes // BOOST includes #include "boost/lexical_cast.hpp" #include "boost/unordered_set.hpp" #include "boo...
abin1525/rose-edg
projects/CodeThorn/src/VariableValueMonitor.h
<gh_stars>1-10 #ifndef VARIABLE_VALUE_MONITOR #define VARIABLE_VALUE_MONITOR #include "VariableIdMapping.h" namespace CodeThorn { class Analyzer; class EState; class PState; class VariableValueMonitor { public: enum VariableMode { VARMODE_FORCED_TOP, VARMODE_ADAPTIVE_TOP, VARMODE_PRECISE, VARMODE_FORC...
abin1525/rose-edg
projects/CodeThorn/src/SpotConnection.h
#ifndef SPOT_CONNECTION_H #define SPOT_CONNECTION_H //to-do: license, author etc. #include <iostream> #include <fstream> #include <string> #include <cassert> #include <algorithm> //CodeThorn includes #include "StateRepresentations.h" #include "SpotTgba.h" #include "ParProSpotTgba.h" #include "PropertyValueTable.h" ...
abin1525/rose-edg
src/frontend/SageIII/astTokenStream/tokenStreamMapping.h
#ifndef TOKEN_STREAM_SEQUENCE_MAPPING_HEADER #define TOKEN_STREAM_SEQUENCE_MAPPING_HEADER class TokenStreamSequenceToNodeMapping_key { // The purpose of this class is to support when to share the TokenStreamSequenceToNodeMapping // objects across multiple IR nodes of the AST. Token sequences of IR nodes in th...
abin1525/rose-edg
projects/autoParallelization/tests/references/rose_outer_only.c
/* Only the outmost loop can be parallelized */ #include "omp.h" void foo() { int n = 100; int m = 100; double b[n][m]; int i; int j; #pragma omp parallel for private (i,j) firstprivate (n,m) for (i = 0; i <= n - 1; i += 1) { for (j = 0; j <= m - 1; j += 1) { b[i][j] = b[i][j - 1]; } }...
abin1525/rose-edg
src/util/rose_paths.h
<reponame>abin1525/rose-edg #ifndef ROSE_PATHS_H #define ROSE_PATHS_H // DQ (4/21/2009): If this is not set then set it here. // For most of ROSE usage this is set in sage3.h, but initial // construction or ROSETTA used to generate ROSE requires // it as well. #if !defined(_FILE_OFFSET_BITS) #define _FILE_OFFSET_B...
abin1525/rose-edg
projects/CodeThorn/src/ParProSpotTgba.h
<reponame>abin1525/rose-edg<gh_stars>1-10 #ifndef PAR_PRO_SPOT_TGBA_HH #define PAR_PRO_SPOT_TGBA_HH #include <cassert> //CodeThorn includes #include "ParProSpotState.h" #include "ParProSpotSuccIter.h" #include "StateRepresentations.h" // BOOST includes #include "boost/unordered_set.hpp" //SPOT includes #include "tg...
abin1525/rose-edg
projects/BinaryAnalysisTools/bROwSE/WAddressComboBox.h
#ifndef bROwSE_WAddressComboBox_H #define bROwSE_WAddressComboBox_H #include <bROwSE/bROwSE.h> #include <Sawyer/Map.h> #include <Wt/WContainerWidget> namespace bROwSE { /** A combo box containing labels corresponding to addresses. * * The entries in the combo box are sorted by label, and activating an entry will ...
abin1525/rose-edg
src/midend/abstractHandle/abstract_handle.h
#ifndef abstract_handle_INCLUDED #define abstract_handle_INCLUDED #include <string> #include <utility> #include <limits.h> #include <map> #include "rosedll.h" #ifdef _MSC_VER // DQ (11/26/2009): Required for definition of PATH_MAX in MSVC. #include "rose_msvc.h" #endif // DQ (4/17/2016): This appears to be needed fo...
abin1525/rose-edg
projects/bugSeeding/bugSeedingAttributes.h
<reponame>abin1525/rose-edg class SecurityFlaw; // class SecurityFlaw::Vulnerability; // Note that instead of having multiple classes we could have one and use an enum for the value // data member to distinquish the functionality. class SecurityVulnerabilityAttribute : public AstAttribute { // This is the persis...
abin1525/rose-edg
src/midend/binaryAnalyses/BinaryStackVariable.h
<reponame>abin1525/rose-edg #ifndef ROSE_BinaryAnalysis_StackVariable_H #define ROSE_BinaryAnalysis_StackVariable_H #include <BaseSemantics2.h> #include <MemoryCellList.h> #include <Sawyer/Interval.h> #include <boost/serialization/access.hpp> namespace rose { namespace BinaryAnalysis { /** Information about the loca...
abin1525/rose-edg
src/midend/programAnalysis/sideEffectAnalysis/SqliteDatabaseGraph.h
/****************************************************************************** * * ROSE Global Database Connection * * graph database storage class definition * *****************************************************************************/ #ifndef SQLITE_DATABASEGRAPH_H #define SQLITE_DATABASEGRAPH_H // for gr...
abin1525/rose-edg
src/midend/programTransformation/loopProcessing/driver/LoopTransformOptions.h
#ifndef SliceOptions_h #define SliceOptions_h #include <iostream> #include <string> #include <vector> #include <SinglyLinkedList.h> #include <AstInterface.h> class ArrangeNestingOrder; class LoopNestFusion; class LoopBlocking; class LoopPar; class CopyArrayOperator; class AstNodePtr; class LoopTransformInterface; cl...
abin1525/rose-edg
projects/autoParallelization/tests/references/rose_true_l2.c
/* * Outer loop: no dependence: * Inner loop: loop-carried dependence * * final dependence graph: * dep SgExprStatement:(a[i])[j] =(((a[i])[j - 1]) + 1); * SgExprStatement:(a[i])[j] =(((a[i])[j - 1]) + 1); * 2*2TRUE_DEP; commonlevel = 2 +precise CarryLevel = 1 * SgPntrArrRefExp:(a[i])[j] * SgP...
abin1525/rose-edg
projects/simulator2/RSIM_Adapter.h
#ifndef RSIM_Adapter_H #define RSIM_Adapter_H /** Adapters. * * An adapter is an object that can be attached to a simulator to change the simulator's behavior, and then detached to * restore the simulator to its original behavior. * * An example of an adapter is TraceIO, which monitors data transfers on specif...
abin1525/rose-edg
projects/CodeThorn/src/CommandLineOptions.h
#ifndef COMMAND_LINE_OPTIONS_H #define COMMAND_LINE_OPTIONS_H #include <string> #include <map> #include <cstdio> #include <cstring> //preparation for using the Sawyer command line parser //#define USE_SAWYER_COMMANDLINE #ifdef USE_SAWYER_COMMANDLINE #include "Sawyer/CommandLineBoost.h" #else #include <boost/program_o...
abin1525/rose-edg
src/midend/binaryAnalyses/BinarySymbolicExprParser.h
#ifndef ROSE_BinaryAnalysis_SymbolicExprParser_H #define ROSE_BinaryAnalysis_SymbolicExprParser_H #include <BinarySymbolicExpr.h> #include <Sawyer/SharedPointer.h> namespace rose { namespace BinaryAnalysis { /** Parses symbolic expressions from text. * * Parses symbolic expressions using a simple LISP-like syntax...
abin1525/rose-edg
src/util/stringSupport/string_functions.h
#include <StringUtility.h>
abin1525/rose-edg
src/frontend/MatlabFrontend/parser_support/StatementList.h
<reponame>abin1525/rose-edg<gh_stars>1-10 #ifndef __STATEMENT_LIST #define __STATEMENT_LIST #include <vector> /*A simple container to temporarily hold a list of statements.*/ class StatementList : public SgScopeStatement { public: StatementList(); StatementList(SgStatement* statement); void appendStatement(S...
abin1525/rose-edg
projects/CodeThorn/src/DotGraphCfgFrontend.h
<filename>projects/CodeThorn/src/DotGraphCfgFrontend.h // Author: <NAME>, 2016. #ifndef DOT_GRAPH_CFG_FRONTEND_H #define DOT_GRAPH_CFG_FRONTEND_H #include <iostream> #include <fstream> #include "sage3basic.h" // SPRAY includes #include "Flow.h" // CodeThorn includes // BOOST includes #include "boost/lexical_cast....
abin1525/rose-edg
projects/ArithmeticMeasureTool/src/instrumentor_lib.c
#include <stdio.h> #include <assert.h> void __ci_writeResultsToFile (char* input_file_name, char* output_file_name, int* loop_iter_counters, int loop_count) { FILE * input_file = fopen(input_file_name, "r"); if (input_file == NULL) { printf ("Error: cannot open input program information file!"); assert (...
abin1525/rose-edg
src/frontend/SageIII/astFileIO/AstSerialization.h
<filename>src/frontend/SageIII/astFileIO/AstSerialization.h #ifndef ROSE_AstSerialization_H #define ROSE_AstSerialization_H #ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB #include <Cxx_GrammarSerialization.h> // the compile-time generated support namespace rose { /** Save an AST to an archive. * * Si...
abin1525/rose-edg
src/midend/astUtil/annotation/OperatorDescriptors.h
#ifndef ___OPERATION_DESCRIPTORS_H #define ___OPERATION_DESCRIPTORS_H #include "TypeAnnotation.h" #include "AnnotExpr.h" #include "FunctionObject.h" //!Paramter names typedef ContainerDescriptor<std::vector<NameDescriptor>, NameDescriptor,',','(',')'> ParamDescriptor; //!Parameter types typedef ContainerDescr...