Hi CPAchecker team,
I used -clang option to use LLVM frontend and executed CPAchecker with this option like:
```
$ bash scripts/cpa.sh -predicateAnalysis -clang doc/examples/example_bug.c
Running CPAchecker with default heap size (1200M). Specify a larger value with -heap if you have more RAM.
Running CPAchecker with default stack size (1024k). Specify a larger value with -stack if needed.
Language C detected and set for analysis (CPAMain.detectFrontendLanguageIfNecessary, INFO)
Using the following resource limits: CPU-time limit of 900s (ResourceLimitChecker.fromConfiguration, INFO)
CPAchecker 2.3.1-svn / predicateAnalysis (OpenJDK 64-Bit Server VM 17.0.10) started (CPAchecker.run, INFO)
Parsing CFA from file(s) "doc/examples/example_bug.c" (CPAchecker.parse, INFO)
Exception in thread "main" java.lang.AssertionError: Unhandled cast of array type (const char)[56] to (signed int : 8)*
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.castToExpectedType(CFABuilder.java:1518)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.getExpression(CFABuilder.java:1186)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.handleCall(CFABuilder.java:816)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.visitInstruction(CFABuilder.java:705)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.handleInstructions(CFABuilder.java:585)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.iterateOverBasicBlocks(CFABuilder.java:341)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.iterateOverFunctions(CFABuilder.java:260)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.visit(CFABuilder.java:180)
at org.sosy_lab.cpachecker.cfa.parser.llvm.CFABuilder.build(CFABuilder.java:163)
at org.sosy_lab.cpachecker.cfa.parser.llvm.LlvmParser.buildCfa(LlvmParser.java:102)
at org.sosy_lab.cpachecker.cfa.parser.llvm.LlvmParser.parseFile(LlvmParser.java:64)
at org.sosy_lab.cpachecker.cfa.LlvmParserWithClang.parse0(LlvmParserWithClang.java:89)
at org.sosy_lab.cpachecker.cfa.LlvmParserWithClang.parseSingleFile(LlvmParserWithClang.java:76)
at org.sosy_lab.cpachecker.cfa.LlvmParserWithClang.parseFiles(LlvmParserWithClang.java:53)
at org.sosy_lab.cpachecker.cfa.CFACreator.parseToCFAs(CFACreator.java:741)
at org.sosy_lab.cpachecker.cfa.CFACreator.parseFileAndCreateCFA(CFACreator.java:505)
at org.sosy_lab.cpachecker.core.CPAchecker.parse(CPAchecker.java:454)
at org.sosy_lab.cpachecker.core.CPAchecker.run(CPAchecker.java:319)
at org.sosy_lab.cpachecker.cmdline.CPAMain.main(CPAMain.java:171)
```
I also run $ clang-9 -S -emit-llvm doc/examples/example_bug.c -o example_bug.ll
and found that standard library calls with several arguments such as "assert(0)" and "printf("any")" lead to the same error above.
Is there any solution to avoid this error? (by configuring some options of clang?)
Regards,
Yoel Kim