<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    > 3) Does Clang Static Analyzer consider any specific target
    (X86, arm, ...etc) during the analysis<br>
    <br>
    Yes, it assumes the same target that the file is compiled against.
    It influences the analysis in a few ways, eg. the static analyzer
    assumes integer sizes to be appropriate for the target. If you want
    to analyze for a different target you need to build for that target.<br>
    <br>
    Most clang tools that work on the AST (eg. clang-tidy) will work the
    same. You cannot build the AST without specifying the target, and
    the resulting AST will be specific to that target.<br>
    <br>
    <div class="moz-cite-prefix">On 11/28/21 8:59 AM, salim yahia kissi
      via cfe-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMYgD+1xE1pL3rMJK6QTEqRi9a+U=4abAh5AjDK-uC1dyDjisQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Dear everyone,
        <div>First of all, I would like to thank all Chairs, organizers,
          speakers and the community for making LLVM DEVELOPERS' MEETING
          such an amazing event.   </div>
        <div><br>
          <div>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                lang="EN-US">I'm a beginner to clang
                libtooling so basically i'm building a tool using
                RecursiveAstVistor and i have
                a couple questions (please correct me if i'm not on the
                right way or not using the right library) to detect some
                bugs reaching <b>a program point</b> (given as entry
                for the analysis) and include some reasoning about the
                potential exploit using an smt solver </span>such z3 <span
                style="font-size:11pt">: </span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">1)</span><span
                style="font-size:11pt" lang="EN-US"><span
style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times
                  New Roman""> </span></span><span
                style="font-size:11pt" lang="EN-US">Is there
                a way to track the possible values that a variable can
                take on each program's point execution ? (open source</span><span
                style="font-size:11pt">)</span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt" lang="EN-US">I got an answer
                during the "Round Table - Clang Static Analyzer" about
                the new google's dataflow framework as well as some
                details in the mailing list but the framework is not yet
                accessible.</span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">2) is there a way to get possible
                substitutions of a variable at a specific program point
                as shown in the following example :</span><br>
            </p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif">void foo(){</font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif">  v1=expr1;</font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><span
                style="font-size:11pt"><font face="verdana, sans-serif"> 
                  if(cond1){</font></span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif">    v1=expr2;</font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif">  }</font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif"><span style="font-size:11pt">  bar(v1); <span
                    style="background-color:rgb(255,255,0)">// v1 ==
                    expr1 || expr2</span></span><br>
              </font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt"><font face="verdana,
                sans-serif">}</font></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">3)
              Does Clang Static Analyzer consider any specific target
              (X86, arm, ...etc) during the analysis :<span
                style="font-size:11pt">  </span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">   - only the machine's target in
                which the analysis is performed?</span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"> 
               - no specific target is considered?</p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"> 
               - the target can be customized?</p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><br>
            </p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">4) Is there any
                document/ressource that helps newcomers/beginners to map
                the right tool/lib or possible alternatives for any
                specific need whether for (optimizations, bug detection,
                etc).</span><br>
            </p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt"><br>
              </span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">Best regards.</span><br>
            </p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                style="font-size:11pt">Salim .Y Kissi </span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                lang="EN-US"> </span></p>
            <p class="MsoNormal" style="margin:0cm 0cm
              8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span
                lang="EN-US"><br>
              </span></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>