Science topic

Program Analysis - Science topic

Explore the latest questions and answers in Program Analysis, and find Program Analysis experts.
Questions related to Program Analysis
  • asked a question related to Program Analysis
Question
2 answers
If you want to do any collaborations, feel free to contact with my team.
Relevant answer
Answer
Well 😕, the work looks very academic if not "school-like". Every professional C++ programmer should know all the optimization techniques given and use them practically in everyday coding.
It would be useful to at least compare how much time each technique reduces when used together, and not just compare it to the obvious worst recursive case.
The function calculating the Fibonacci sequence does not give too many possibilities to show real differences, especially in terms of memory usage. These few necessary variables easily fit in the processor registers, which in itself means that any non-recursive algorithm will be many orders of magnitude faster than a recursive one.
I would suggest using some more demanding and really useful algorithm, for example from the field of neural networks.
  • asked a question related to Program Analysis
Question
1 answer
Pseudocode: 1)Original: O 2)Epigenetic information polish: EIP 3)Recessive Privilege Distribution: RPD 4)Fertility Enhancement: FE 5) GMO: Genetically Modified Organism 6) SP: Same Person O + EIP + RPD + FE = GMO but SP.
Relevant answer
Answer
The feasibility of this pseudocode depends on the biological and genetic processes involved. Each component should be clearly defined and scientifically validated. Epigenetics and genetic modifications are complex and can have unpredictable effects. Ensure that each element is practically achievable and their interactions are well understood.
  • asked a question related to Program Analysis
Question
9 answers
Pre and Post program analysis in change of clinical judgment of senior year nursing students.
Relevant answer
Answer
Clinical judgment, which is the ability to notice, interpret, and respond to potential problems. In essence clinical judgement is most significant to Nursing Business. Despite this there are only concepts, of all the studies and literature reviews i have come across Non really confirms. I believe it (Developing tools for measuring clinical judgement) remains to be an Emerging Research area and Opportunity in Nursing as Health science.
  • asked a question related to Program Analysis
Question
3 answers
I have read several papers on change impact analysis and I understand they have validated their results generally based on True Positive (TP) and False Positive (FP) results. Furthermore they support their validation with Precision, Recall and F-measures as well. On the other hand there are some other articles that they use statistical results.
My question is that, I understand the TP and FP results, also the metrics. However, I couldn't understand the process how they obtain the TP and FP results from the open source projects. All I know is they use CVS and their repository. The problem that bugs me is, when you check out repository mostly it is free from bugs and even if there is change the impacted areas in the code are already fixed (changed). Therefore, working on real open source project does make any sense.
In other words, the question might be redirected as: How do we form or find the actual impacted set?
Any guide would be helpful?
Thank you.
Relevant answer
Nice Dear Wiem Khlif
  • asked a question related to Program Analysis
Question
24 answers
In order to develop application programs for analysis and monitoring of mechanical vibrations for condition monitoring and fault prediction, we need to analyze large, diverse datasets and build and validate models. How to obtain such datasets in the first place?
Relevant answer
  • asked a question related to Program Analysis
Question
4 answers
I am working on Program Analysis project that is related to coding quality. I was wondering which tool do you recommend, FindBug, PMD or some other tools to use? and why?
Relevant answer
Answer
We use Code Collaborator, by SmartBear Software. It presents the code diff to each reviewer and allows them to comment, accept, reject, etc. It is the only tool I am familiar with.
  • asked a question related to Program Analysis
Question
6 answers
why when use abaqus program to analysis is abroted and massage the time increment is less than the minimum specified ?
Relevant answer
Answer
thanks
  • asked a question related to Program Analysis
Question
6 answers
Hello everyone. I'm trying to simulate my model(about beam position monitor) but the error appeared. it said the discrete port is inside the perfect conducting material. So i checked the locations many time and it's not inside the perfect conducting material. Can anyone help me with this ?
Thank you very much.
Relevant answer
Answer
Hi
Make your conductor small enough that it must not be outside of defined port. Further
check boundry settings in CsT . Make them all to none.
It may work for you.
  • asked a question related to Program Analysis
Question
2 answers
Program Slicing
Program Analysis
Relevant answer
Answer
Many thanks Yasir. I will have a look at your papers.
I introduce a new way of slicing called "Clause Slicing". It will be nice to have a look at the paper and give me your opinion.
Best regards,
Mohammad
  • asked a question related to Program Analysis
Question
3 answers
I want to reconstruct temperature based on tree rings of conifer. I need help in the basic steps and statistical program for analysis?
Relevant answer
Answer
Dear Tanvir Hussain,
Please have a look at these useful PDF attachments.
Good luck
  • asked a question related to Program Analysis
Question
4 answers
I am working on finding visualized flow graph of c program for that I want to get basic block form llvm and Clang.
Relevant answer
Answer
I have question what is the meaning of LBB in ASSEMBLY CODE generated with clnag
  • asked a question related to Program Analysis
Question
5 answers
I can open program,  enter data, write some statement and some analysis  but i am not professional I want to apple use SAS program as professional in analysis data of poultry breeding," wights, BWG,egg production traits, blood biochemicals"  how calculate Correlation, means, GLM....   whats your advise?   
Relevant answer
Answer
Dear Esteftah
The SAS Software is very good tool for statistical analysis but needs good training, so you can do your training with exercises in the following link:
The SPSS is simple and efficient software and need short training 
Good Luck
  • asked a question related to Program Analysis
Question
4 answers
I measured 20 times the runtime of three different C++ programs and I've got the following results (average):
runtime_program_1 = 26,43 ms;
runtime_program_2 = 27,02 ms;
runtime_program_3 = 13,56 ms.
Qualitatively, program 3 is faster than the other two, but how can I use quantitative analysis to support this statement? i.e., is program 3 significantly faster than programs 1 and 2? Also, is program 1 significantly faster than program 3? Thank you very much!
Relevant answer
Answer
Dear Erick
You can go for ANOVA (Treat = 3; Replication = 20), as you would like to test three means. Based on the analysis of 20 observations for the three program, you can conclude the fastness of the program.
Regards
rajiv
  • asked a question related to Program Analysis
Question
1 answer
I've been trying to use deep learning to find defects in computer source code based on intuition from the paper "Building Program Vector Representations for Deep Learning" (see attachment).  Send me a message if you are interested in collaborating!  Thanks.
Relevant answer
Answer
First, if you are looking to publish, I suggest you get written permission from your legal department with a fixed length evaluation. My experience says that lawyers don't like public discussion of defects. This is why there are only positive case study results.
It appears that the technique focus on analyzing stochastic results; which is interesting. However, most programs do not produce stochastic results. Meaning that the general application of the concept may not be possible.
Count me ask skeptical, but interested. One question that was not addressed in the paper was training time. Also, you may want to look into Dynamic Slice.
  • asked a question related to Program Analysis
Question
3 answers
please provide me the steps to implement slicing in any of the slicing tool
Relevant answer
Answer
The question is too abstract for me to understand what you want to do -- but if you would like to know and customize program slicing, in my opinion, you should try GrammaTech CodeSurfer first. Its academic license is free (an application is needed).
The tool enables you to slice C programs on GUI.  The tool also provides a Scheme interpreter that allows your script to access system/program dependence graphs of a program and compute a slice.   Hence, you can see actual slices on GUI and then start to write your own algorithm to do something using SDG-based slicing.
  • asked a question related to Program Analysis
Question
3 answers
Dependency injection (DI) is a great pattern/principle to make code better configurable and testable. 
Using a framework (in Java) such as Guice (or any other JSR 330 implementation), or some other so called "inversion of control (IOC) container", really simplifies using DI. But even the most simple usages are often problematic. E.g. (with an JSR330 annotation with field injection):
class C {  @Inject X x; }
This class must not be created via new in normal client code, because then x cannot be injected. Also, assuming X is an interface, there needs to be a configuration (binding) for X.
I'm wondering if there exist any work on verifying these kind of situations. Are there any IDEs or tools implementing such verification (e.g., creating at least a warning if, given the example above, C is created via new or if no binding for X is detected)? Of course there are many more problems, such as DI cycles etc. 
Do yo know any research addressing these and other issues?
So far, I have only found a single paper [HH13], but this paper only scratches the surface. It defines two constraints which are to be satisfied: Compatibility (a binding T to an injected type D must be a subtype: T<:D) and completeness (for all D: exists binding T). Unfortunately, the paper does not handle cases such as scoping, multiple modules etc. And even the simple case of new constructor call as shown in the example is not handled.
[HH13] Hudli, Shrinidhi R. ; Hudli, Raghu V.: A Verification Strategy for Dependency Injection. DOI 10.7763/LNSE.2013.V1.16. In: Lecture Notes on Software Engineering 1 (2013), Nr. 1, S. 71–74
Relevant answer
Answer
The „Scoping” is an important part of any DI-based framework. Scope is about managing the state of objects. And no need to explain why the State is important in applications. So every verification method for DI should aim „Scoping”. Maybe in mentioned paper the Scope is some kind of meta-condition?
Anyway, the scoping implies that the bean to be a context-sensitive type. Under these circumstances, I recommend papers like [1]. The paper targets verification of safety properties for functional programs. However, this paper can be useful to understand how to define a good verification strategy using a compositional technique. In the context of this approach, to handle cases such as scoping, many modules, etc, You should focus on the dependent types (with refinements). Good injections! :)
[1] He Zhu, Suresh Jagannathan, Compositional and Lightweight Dependent Type Inference for ML, Verification, Model Checking, and Abstract Interpretation (14th International Conference, VMCAI 2013, Rome, Italy, January 20-22, 2013. Proceedings), DOI 10.1007/978-3-642-35873-9_19, In: Lecture Notes in Computer Science (2013), pp 295-314
  • asked a question related to Program Analysis
Question
6 answers
Many commercially available pre-processors and solvers for finite element analysis of forming operation are available. Incremental forming being an unconventional forming method, there are no solvers specifically designed for this machining process. As I understand it, there will be some innovation needed during pre-processing but I need to know which software will be most suitable. 
Relevant answer
Answer
It is true that each software is a little bit orianted to a speciality (Adina : dynamic) (Abaqus : cevil engeneering) (Ansys : mecanics).
You need some one have been using them all to say which one could get your job easier.
  • asked a question related to Program Analysis
Question
6 answers
I know that forward slicing is only for static program analysis while taint analysis can be used for both static and dynamic program analysis. Can anyone tell me the difference for static analysis? I can only see that both of them can explore all the variables influenced by the input.
Relevant answer
Answer
Hey Peter, I will just describe my thought with the function below.
void foo(int x)
{
int y=3;
int p=x+y;
int z=y*3;
if(p==0)
z=y-1;
}
So the forward slices for input parameter x are as follows: (Please forgive me that I use the word forward again.)
int p=x+y;
if(p==0)
z=y-1
However, if we use taint analysis to track the impact of x, you will also find variable p needs to access the memory address of x. And since the value of p could determine the value of z, so z is also indirectly impact by x. So the results of taint analysis are similar with the above one.
I cannot tell the difference and when I should use taint analysis or I should use forward slicing. So would you please talk about their usage when doing program analysis? And it would be better if you have good papers that is related to them,
  • asked a question related to Program Analysis
Question
3 answers
Dominance relationships are used in compilers and Extended Finite State Machines (EFSM). In compilers, they indicate which statements are necessarily executed before others while in EFSM, they are used in determining control dependence between transitions. Pre-dominance and Post-dominance are the two types of dominance relationship.
Kindly, I have a question regarding control dependency. in all the articles I have read so far, the post-dominance is always mentioned for control dependency in EFSM. My question is " can we use pre-dominance instead of post-dominance in EFSM control dependency? If yes, what are the conditions for determining the control dependence between two transitions in EFSM". Thank you in advance.
Relevant answer
Answer
Prof.Peter T. Breuer, Thank you very much for your answer.
What I mean by control dependence between transitions is based on many articles like " Dependence Analysis in Reduction of Requirement Based Test Suites",
Control Dependence captures the notion that one node in program control graph may affect the execution of another node. This definition is extended on the above article to Extended Finite State Machine "EFSM".
Control dependence in EFSM exits between transitions and captures the notion that one transition may affect traversal of another transition.
The article states that control dependence between transitions is defined similarly as control dependence between nodes of program control graph, i.e, in terms of the concept of post-dominance.
Node Z post-dominates node Y iff Z is on every path from Y to the exit node.
However there is another type of dominance called pre-dominance
Node Z pre-dominates node Y iff Z is on every path from the initial node to Y.
Therefore, as I understand, post-dominance is on a relation with exit node wile pre-dominance is with initial node.
My question is " can we use pre-dominance instead of post-dominance in EFSM control dependency? If yes, what are the conditions for determining the control dependence between two transitions in EFSM". Thank you in advance.
  • asked a question related to Program Analysis
Question
1 answer
How do you compare in a numerical sense the importance of spending money for instance, spending money on public transportation as opposed to after school programs? what data points are the common denominator for comparison?
Relevant answer
Answer
There is a really good (and very straighforward book titled "Cost Effectiveness Analysis 2nd edition" by Henry Levin and Patrick J McEwan that answers a lot of those questions.
  • asked a question related to Program Analysis
Question
7 answers
I want to create a project which analyzes the source code of the program and gives analysis related results.
Relevant answer
Answer
When I was still actively using C, I did use cflow for control flow analysis. It is useful for a coder in some cases. (There are also variants like bsdcflow, gnucflow.)
CodeViz looks good, but I have too limited experience, just tried it once. Also google for egypt and for CCTree, these are often named in relation to CFA.
I cannot help for data flow analysis.
By the way, I do not see any reason for connecting analysis to compilation. Control and data flow analyses a are just additional tools for a developer or an architect, in my opinion. What is your rationale for binding them together?
Good luck!
  • asked a question related to Program Analysis
Question
18 answers
Is it possible to design a programming language that supports self verification at the compilation and run-time for programs written in that language?
Relevant answer
Answer
Have a look at the ProCos work from Tony Hoare in the early 90s. I cannot remember the precise details but the language mixed contracts with statements in a clear algebraic fashion, and was compiled by bootstrapping.
  • asked a question related to Program Analysis
Question
1 answer
I am using windows 7, and trying to install cygwin1.dll and cygz.dll.
I got lots of error alarm during software installation.
Relevant answer
Answer
Are you logged into Win7 as an Administrator? This might be necessary.
You can google "cygwin1.dll installation troubleshooting" for many hints and tips.