Comments (2)
Solved via:
expr_simp.enable_passes(ExpressionSimplifier.PASS_HIGH_TO_EXPLICIT)
ircfg.simplify(expr_simp)
from miasm.
How to resolve this vmcpu?
AttributeError Traceback (most recent call last)
Cell In[36], line 9
6 func.init_fc()
8 # IRCFG is imported, without the final "ret void"
----> 9 func.from_ircfg(ircfg, append_ret=False)
11 # Finish the function
12 func.builder.ret_void()
File [~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1922](https://file+.vscode-resource.vscode-cdn.net/media/hadrian/int1TB/workspace/MasterArbeit/miasm/~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1922), in LLVMFunction_IRCompilation.from_ircfg(self, ircfg, append_ret)
1920 for label, irblock in viewitems(ircfg.blocks):
1921 self.builder.position_at_end(self.get_basic_block_by_loc_key(label))
-> 1922 self.gen_irblock(irblock)
1924 # Branch the entry BBL on the IRCFG head
1925 self.builder.position_at_end(self.entry_bbl)
File [~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1910](https://file+.vscode-resource.vscode-cdn.net/media/hadrian/int1TB/workspace/MasterArbeit/miasm/~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1910), in LLVMFunction_IRCompilation.gen_irblock(self, irblock)
1908 attributes = [Attributes() for _ in range(len(irblock.assignblks))]
1909 instr_offsets = None
-> 1910 return super(LLVMFunction_IRCompilation, self).gen_irblock(
1911 instr_attrib, attributes, instr_offsets, irblock
1912 )
File [~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1569](https://file+.vscode-resource.vscode-cdn.net/media/hadrian/int1TB/workspace/MasterArbeit/miasm/~/miniconda3/envs/miasm/lib/python3.12/site-packages/miasm/jitter/llvmconvert.py:1569), in LLVMFunction.gen_irblock(self, instr_attrib, attributes, instr_offsets, irblock)
1567 case2dst, case_value = self.expr2cases(src)
...
(...)
612 ]
613 )
AttributeError: 'LLVMContext_IRCompilation' object has no attribute 'vmcpu'
from miasm.
Related Issues (20)
- x86-64 out of order IR block (add_asmblock_to_ircfg -> add_instr_to_current_state) HOT 2
- Miasm mn_x86.fromstring does not recognize JE/JNE instructions HOT 1
- CMP and CMOV? analysis HOT 2
- [ARM-semantic] Implement carry flag for basic shifters HOT 2
- Rebasing program in graph HOT 2
- Error when using iterator from DependencyGraph object HOT 2
- Unrolling of loop in SSA through symbolic execution HOT 10
- Exporting `AsmCFG` to `dot` format might generate `dot` code that fails to parse if the `HTML` node label if it contains `>]<`
- miasm in Rust #2 HOT 2
- confusing doc on how to compile on windows. doc added on readme
- FreeBSD Build Error HOT 3
- ImportError: cannot import name 'JitCore_x86' from 'miasm.jitter.arch' HOT 2
- Early stop of IR CFG's Symbolic Execution (stops at SHR instruction) HOT 12
- Apply repo-review suggestions?
- Make disassembly output AT&T syntax? HOT 1
- Getting access to miasm-rs
- jit error HOT 3
- [ARCH64] Jit/sem instruction SUBS (extended register) :-( HOT 3
- RIP relative instruction assembly fails with 4 bytes values on x86 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miasm.